isblank() implementation.
[minix.git] / lib / libc / posix / _time.c
blob9a0d8beaad80a6a2c95a4c49cc18cfd086d30e09
1 #include <lib.h>
2 #define time _time
3 #include <time.h>
5 PUBLIC time_t time(tp)
6 time_t *tp;
8 message m;
10 if (_syscall(MM, TIME, &m) < 0) return( (time_t) -1);
11 if (tp != (time_t *) 0) *tp = m.m2_l1;
12 return(m.m2_l1);