From: Jorrit Herder Date: Wed, 12 Oct 2005 15:08:45 +0000 (+0000) Subject: Minor changes for new library functions at PM. X-Git-Tag: v3.1.2a~633 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=7842d4fb260affd91b86e155495b0c48c15e0b81;p=minix.git Minor changes for new library functions at PM. --- diff --git a/include/minix/com.h b/include/minix/com.h index 3fa0030fb..fa30bd79f 100755 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -385,15 +385,13 @@ #define SRV_UP (SRV_RQ_BASE + 0) /* start system service */ #define SRV_DOWN (SRV_RQ_BASE + 1) /* stop system service */ -#define SRV_STATUS (SRV_RQ_BASE + 2) /* get service status */ +#define SRV_SHUTDOWN (SRV_RQ_BASE + 2) /* alert about shutdown */ -# define SRV_PATH_ADDR m1_p1 /* path of binary */ -# define SRV_PATH_LEN m1_i1 /* length of binary */ -# define SRV_ARGS_ADDR m1_p2 /* arguments to be passed */ -# define SRV_ARGS_LEN m1_i2 /* length of arguments */ +# define SRV_CMD_ADDR m1_p1 /* command string */ +# define SRV_CMD_LEN m1_i1 /* length of command */ +# define SRV_PID m1_i1 /* pid of system service */ +# define SRV_PERIOD m1_i2 /* heartbeat period */ # define SRV_DEV_MAJOR m1_i3 /* major device number */ -# define SRV_PRIV_ADDR m1_p3 /* privileges string */ -# define SRV_PRIV_LEN m1_i3 /* length of privileges */ /*===========================================================================* * Miscellaneous messages used by TTY * diff --git a/include/unistd.h b/include/unistd.h index 6f60b2a81..6d9a6f2db 100755 --- a/include/unistd.h +++ b/include/unistd.h @@ -109,6 +109,7 @@ _PROTOTYPE( int getgroups, (int _gidsetsize, gid_t _grouplist[]) ); _PROTOTYPE( char *getlogin, (void) ); _PROTOTYPE( pid_t getpgrp, (void) ); _PROTOTYPE( pid_t getpid, (void) ); +_PROTOTYPE( pid_t getnpid, (int proc_nr) ); _PROTOTYPE( pid_t getppid, (void) ); _PROTOTYPE( uid_t getuid, (void) ); _PROTOTYPE( int isatty, (int _fd) ); @@ -162,6 +163,8 @@ _PROTOTYPE( int fttyslot, (int _fd) ); _PROTOTYPE( char *crypt, (const char *_key, const char *_salt) ); _PROTOTYPE( int getsysinfo, (int who, int what, void *where) ); _PROTOTYPE( int getprocnr, (void) ); +_PROTOTYPE( int getnprocnr, (pid_t pid) ); +_PROTOTYPE( int getpprocnr, (void) ); _PROTOTYPE( int findproc, (char *proc_name, int *proc_nr) ); _PROTOTYPE( int allocmem, (phys_bytes size, phys_bytes *base) ); _PROTOTYPE( int freemem, (phys_bytes size, phys_bytes base) );