source: trunk/minix/lib/posix/_time.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 224 bytes
RevLine 
[9]1#include <lib.h>
2#define time _time
3#include <time.h>
4
5PUBLIC time_t time(tp)
6time_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}
Note: See TracBrowser for help on using the repository browser.