source:
trunk/minix/lib/other/settimeofday.c@
12
| Last change on this file since 12 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 202 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | /* |
| 2 | settimeofday.c | |
| 3 | */ | |
| 4 | ||
| 5 | #define stime _stime | |
| 6 | ||
| 7 | #include <sys/time.h> | |
| 8 | #include <time.h> | |
| 9 | ||
| 10 | int settimeofday(const struct timeval *tp, const void *tzp) | |
| 11 | { | |
| 12 | /* Ignore time zones */ | |
| 13 | return stime(&tp->tv_sec); | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.