minix/lib/libsys/sys_settime.c
Lionel Sambuc c59c5caceb Message type for SYS_SETTIME
Change-Id: I10c2c27c0c9749b49d70735175e530b4341440dc
2014-07-28 17:05:48 +02:00

16 lines
336 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.m_lsys_krn_sys_settime.now = now;
m.m_lsys_krn_sys_settime.clock_id = clk_id;
m.m_lsys_krn_sys_settime.sec = sec;
m.m_lsys_krn_sys_settime.nsec = nsec;
r = _kernel_call(SYS_SETTIME, &m);
return r;
}