make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / sys_settime.c
blobacb491a2a69727f6c9951b3362027ccba6c8ccce
1 #include "syslib.h"
2 #include <time.h>
4 int sys_settime(int now, clockid_t clk_id, time_t sec, long nsec)
6 message m;
7 int r;
9 m.T_SETTIME_NOW = now;
10 m.T_CLOCK_ID = clk_id;
11 m.T_TIME_SEC = sec;
12 m.T_TIME_NSEC = nsec;
14 r = _kernel_call(SYS_SETTIME, &m);
15 return r;