4 /*===========================================================================*
6 *===========================================================================*/
7 int no_sys(message
*pfs_m_in
, message
*pfs_m_out
)
9 /* Somebody has used an illegal system call number */
10 printf("no_sys: invalid call 0x%x to pfs\n", req_nr
);
15 /*===========================================================================*
17 *===========================================================================*/
20 /* This routine returns the time in seconds since 1.1.1970. MINIX is an
21 * astrophysically naive system that assumes the earth rotates at a constant
22 * rate and that such things as leap seconds do not exist.
26 clock_t uptime
; /* Uptime in ticks */
29 if ((r
= getuptime2(&uptime
, &boottime
)) != OK
)
30 panic("clock_time: getuptme2 failed: %d", r
);
32 return( (time_t) (boottime
+ (uptime
/sys_hz())));