From: Philip Homburg Date: Tue, 7 Aug 2007 11:52:15 +0000 (+0000) Subject: Added prototypes for sys_stime and getuptime2 (tell the kernel about the X-Git-Tag: v3.1.4~360 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-keyfromlabel.html?a=commitdiff_plain;h=bf6620d2850025aa1452acf367a0366b7bcc095d;p=minix.git Added prototypes for sys_stime and getuptime2 (tell the kernel about the boot time and return the boot time together with the uptime) --- diff --git a/include/minix/syslib.h b/include/minix/syslib.h index dd716a677..639fe78aa 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -50,6 +50,7 @@ _PROTOTYPE( int sys_vm_map, (endpoint_t proc_nr, int do_map, phys_bytes base, phys_bytes size, phys_bytes offset)); _PROTOTYPE( int sys_readbios, (phys_bytes address, void *buf, size_t size)); +_PROTOTYPE( int sys_stime, (time_t boottime)); /* Shorthands for sys_sdevio() system call. */ #define sys_insb(port, proc_nr, buffer, count) \ diff --git a/include/minix/sysutil.h b/include/minix/sysutil.h index ad4dac0d7..8702ea8c2 100644 --- a/include/minix/sysutil.h +++ b/include/minix/sysutil.h @@ -45,6 +45,7 @@ _PROTOTYPE( void kputc, (int c)); _PROTOTYPE( void report, (char *who, char *mess, int num)); _PROTOTYPE( void panic, (char *who, char *mess, int num)); _PROTOTYPE( int getuptime, (clock_t *ticks)); +_PROTOTYPE( int getuptime2, (clock_t *ticks, time_t *boottime)); _PROTOTYPE( int tickdelay, (clock_t ticks)); _PROTOTYPE( int micro_delay_calibrate, (void)); _PROTOTYPE( int micro_delay, (u32_t micros));