1 2 3 4 5 6 7
#include <sys/time.h> #include "syscall.h" int settimeofday(const struct timeval *tv, void *tz) { return syscall2(__NR_settimeofday, (long)tv, 0); }