2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define time _time
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
PUBLIC time_t time(tp)
|
|
|
|
time_t *tp;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2005-05-31 11:50:51 +02:00
|
|
|
if (_syscall(MM, TIME, &m) < 0) return( (time_t) -1);
|
2005-04-21 16:53:53 +02:00
|
|
|
if (tp != (time_t *) 0) *tp = m.m2_l1;
|
|
|
|
return(m.m2_l1);
|
|
|
|
}
|