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
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
settimeofday.c
blob
2e47e9eedf4b82b7c95f4e6055944bf04ee236a0
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <sys/time.h>
6
#include <time.h>
7
8
int
settimeofday
(
const struct
timeval
*
tp
,
const void
*
tzp
)
9
{
10
/* Use intermediate variable because stime param is not const */
11
time_t
sec
=
tp
->
tv_sec
;
12
13
/* Ignore time zones */
14
return
stime
(&
sec
);
15
}