source:
trunk/minix/lib/posix/_time.c@
15
Last change on this file since 15 was 9, checked in by , 14 years ago | |
---|---|
File size: 224 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define time _time |
3 | #include <time.h> |
4 | |
5 | PUBLIC time_t time(tp) |
6 | time_t *tp; |
7 | { |
8 | message m; |
9 | |
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); |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.