8000 minix/lib/posix/_time.c at R3.1.2 · philipdongfei/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
executable file
·
13 lines (11 loc) · 224 Bytes

_time.c

File metadata and controls

executable file
·
13 lines (11 loc) · 224 Bytes
#include <lib.h>
#define time _time
#include <time.h>
PUBLIC time_t time(tp)
time_t *tp;
{
message m;
if (_syscall(MM, TIME, &m) < 0) return( (time_t) -1);
if (tp != (time_t *) 0) *tp = m.m2_l1;
return(m.m2_l1);
}
0