minix/lib/libsys/sys_settime.c
Lionel Sambuc 55d9e9954b Extending time_t to 64bits.
Change-Id: Ia96b8bfba19cb8179a0237a7d2122d415c24d73f
2014-03-03 20:45:28 +01:00

16 lines
270 B
C

#include "syslib.h"
#include <time.h>
int sys_settime(int now, clockid_t clk_id, time_t sec, long nsec)
{
message m;
int r;
m.T_SETTIME_NOW = now;
m.T_CLOCK_ID = clk_id;
m.T_TIME_SEC = sec;
m.T_TIME_NSEC = nsec;
r = _kernel_call(SYS_SETTIME, &m);
return r;
}