minix/lib/libc/posix/_time.c
2010-06-08 13:58:01 +00:00

13 lines
232 B
C

#include <lib.h>
#define time _time
#include <time.h>
PUBLIC time_t time(tp)
time_t *tp;
{
message m;
if (_syscall(PM_PROC_NR, TIME, &m) < 0) return( (time_t) -1);
if (tp != (time_t *) 0) *tp = m.m2_l1;
return(m.m2_l1);
}