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
isblank() implementation.
[minix.git]
/
lib
/
libc
/
posix
/
_time.c
blob
9a0d8beaad80a6a2c95a4c49cc18cfd086d30e09
1
#include <lib.h>
2
#define time _time
3
#include <time.h>
4
5
PUBLIC
time_t
time
(
tp
)
6
time_t
*
tp
;
7
{
8
message m
;
9
10
if
(
_syscall
(
MM
,
TIME
, &
m
) <
0
)
return
( (
time_t
) -
1
);
11
if
(
tp
!= (
time_t
*)
0
) *
tp
=
m
.
m2_l1
;
12
return
(
m
.
m2_l1
);
13
}