repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make vfs & filesystems use failable copying
[minix3.git]
/
lib
/
libsys
/
sys_settime.c
blob
acb491a2a69727f6c9951b3362027ccba6c8ccce
1
#include
"syslib.h"
2
#include <time.h>
3
4
int
sys_settime
(
int
now
,
clockid_t clk_id
,
time_t
sec
,
long
nsec
)
5
{
6
message m
;
7
int
r
;
8
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
;
13
14
r
=
_kernel_call
(
SYS_SETTIME
, &
m
);
15
return
r
;
16
}