Added global variable boottime, prototype for do_stime, and table entry for

SYS_STIME.
This commit is contained in:
Philip Homburg 2007-08-07 12:21:40 +00:00
parent fab77fd01f
commit 6ef2e9b866
3 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,7 @@ EXTERN int do_serial_debug;
EXTERN endpoint_t who_e; /* message source endpoint */
EXTERN int who_p; /* message source proc */
EXTERN int sys_call_code; /* kernel call number in SYSTEM */
EXTERN time_t boottime;
/* VM */
EXTERN phys_bytes vm_base;

View file

@ -177,6 +177,7 @@ PRIVATE void initialize(void)
/* Clock functionality. */
map(SYS_TIMES, do_times); /* get uptime and process times */
map(SYS_SETALARM, do_setalarm); /* schedule a synchronous alarm */
map(SYS_STIME, do_stime); /* set the boottime */
/* System control. */
map(SYS_ABORT, do_abort); /* abort MINIX */

View file

@ -173,6 +173,8 @@ _PROTOTYPE( int do_setalarm, (message *m_ptr) );
#define do_setalarm do_unused
#endif
_PROTOTYPE( int do_stime, (message *m_ptr) );
_PROTOTYPE( int do_safecopy, (message *m_ptr) );
_PROTOTYPE( int do_vsafecopy, (message *m_ptr) );
_PROTOTYPE( int do_iopenable, (message *m_ptr) );