55d9e9954b
Change-Id: Ia96b8bfba19cb8179a0237a7d2122d415c24d73f
16 lines
270 B
C
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;
|
|
}
|