Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/c-libs/posix-procenv/time.c
ViewVC logotype

Annotation of /sml/trunk/src/runtime/c-libs/posix-procenv/time.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 250 - (view) (download) (as text)

1 : monnier 249 /* time.c
2 :     *
3 :     * COPYRIGHT (c) 1995 by AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "ml-base.h"
7 :     #include "ml-values.h"
8 :     #include "ml-objects.h"
9 :     #include "ml-c.h"
10 :     #include "cfun-proto-list.h"
11 :     #include <time.h>
12 :    
13 :     /* _ml_P_ProcEnv_time: unit -> Int32.int
14 :     *
15 :     * Return time in seconds from 00:00:00 UTC, January 1, 1970
16 :     */
17 :     ml_val_t _ml_P_ProcEnv_time (ml_state_t *msp, ml_val_t arg)
18 :     {
19 :     time_t t;
20 :     ml_val_t res;
21 :    
22 :     t = time (NIL(time_t*));
23 :    
24 :     INT32_ALLOC(msp, res, t);
25 :     return res;
26 :    
27 :     } /* end of _ml_P_ProcEnv_time */
28 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0