]> Zhao Yanbai Git Server - minix.git/commitdiff
Added prototypes for sys_stime and getuptime2 (tell the kernel about the
authorPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 11:52:15 +0000 (11:52 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 11:52:15 +0000 (11:52 +0000)
boot time and return the boot time together with the uptime)

include/minix/syslib.h
include/minix/sysutil.h

index dd716a67773a11cf4f16a66c493e25c41e0e210b..639fe78aa14ca1d0643d784549c476fdf57970b1 100755 (executable)
@@ -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) \
index ad4dac0d799200269dc7b05b433600603736eeb9..8702ea8c2d76925061c3bcf7443008bebf5b0dd7 100644 (file)
@@ -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));