__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / settimeofday.c
blobae0e6b5786cb8c6538354299bc7f83e4e889b0ac
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <sys/time.h>
6 #include <time.h>
8 int settimeofday(const struct timeval *tp, const void *tzp)
10 /* Use intermediate variable because stime param is not const */
11 time_t sec = tp->tv_sec;
13 /* Ignore time zones */
14 return stime(&sec);
17 #if defined(__minix) && defined(__weak_alias)
18 __weak_alias(settimeofday, __settimeofday50)
19 #endif