repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
stime.c
blob
67527dd83efee65972c7a31bc24a09285daa7665
1
#include <sys/cdefs.h>
2
3
#include
"namespace.h"
4
5
#include <minix/sysutil.h>
6
#include <lib.h>
7
#include <string.h>
8
#include <time.h>
9
10
int
stime
(
time_t
*
top
)
11
{
12
message m
;
13
14
memset
(&
m
,
0
,
sizeof
(
m
));
15
m
.
m_lc_pm_time
.
sec
= *
top
;
16
return
(
_syscall
(
PM_PROC_NR
,
PM_STIME
, &
m
));
17
}