minix/lib/posix/_time.c
Jorrit Herder 322ec9ef8b Moved stime, time, times POSIX calls from FS to PM. Removed child time
accounting from kernel (now in PM).  Large amount of files in this commit
is due to system time problems during development.
2005-05-31 09:50:51 +00:00

14 lines
224 B
C
Executable file

#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);
}