Initial revision
This commit is contained in:
12
mach/sun2/libsys/time.c
Normal file
12
mach/sun2/libsys/time.c
Normal file
@@ -0,0 +1,12 @@
|
||||
long
|
||||
time(loc)
|
||||
long *loc;
|
||||
{
|
||||
struct { long l1,l2; } t1;
|
||||
|
||||
if (gettimeofday(&t1, (char *) 0) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (loc) *loc = t1.l1;
|
||||
return t1.l1;
|
||||
}
|
||||
Reference in New Issue
Block a user