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/branches/num64/runtime/c-libs/posix-procenv/time.c
ViewVC logotype

Annotation of /sml/branches/num64/runtime/c-libs/posix-procenv/time.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5229 - (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 :    
21 :     t = time (NIL(time_t*));
22 :    
23 : jhr 5229 return INT32_CtoML(msp, t);
24 : monnier 249
25 :     } /* end of _ml_P_ProcEnv_time */
26 :    

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