From: Erik van der Kouwe Date: Wed, 23 Sep 2009 08:46:17 +0000 (+0000) Subject: Fixed compilation errors in ps.c and rs/manager.c. The former was fixed by disabling... X-Git-Tag: v3.1.5~98 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=789c8a6ee42b9658a5b11ab01e72d4507f3422df;p=minix.git Fixed compilation errors in ps.c and rs/manager.c. The former was fixed by disabling code using no-longer-existant flags and the latter by removing the spurious parameter i from sys_privctl --- diff --git a/commands/ps/ps.c b/commands/ps/ps.c index b482126d3..8531818fc 100644 --- a/commands/ps/ps.c +++ b/commands/ps/ps.c @@ -245,6 +245,7 @@ struct pstat *bufp; else if (bufp->ps_mflags & SIGSUSPENDED) blkstr = "sigsusp"; } else if (bufp->ps_recv == FS_PROC_NR) { +#if 0 /* these flags no longer exist, should find this out another way */ if (-bufp->ps_ftask == XPIPE) blkstr = "pipe"; else if (-bufp->ps_ftask == XPOPEN) @@ -255,7 +256,9 @@ struct pstat *bufp; blkstr = "flock"; else if(-bufp->ps_ftask == XSELECT) blkstr = "select"; - else if(-bufp->ps_ftask >= 0) + else +#endif + if(-bufp->ps_ftask >= 0) blkstr = taskname(-bufp->ps_ftask); else blkstr = "??"; @@ -526,7 +529,11 @@ int endpoints; else if (ps_proc[p_ki].p_rts_flags == 0) bufp->ps_state = R_STATE; /* in run-queue */ else if (ps_mproc[p_nr].mp_flags & (WAITING | PAUSED | SIGSUSPENDED) || - ps_fproc[p_nr].fp_suspended == SUSPENDED) +#if 0 /* this field and this flag no longer exist, get this info elsewhere */ + ps_fproc[p_nr].fp_suspended == SUSPENDED) +#else + 0) +#endif bufp->ps_state = S_STATE; /* sleeping */ else bufp->ps_state = W_STATE; /* a short wait */ diff --git a/include/minix/syslib.h b/include/minix/syslib.h index 4c2a025f6..355e82adb 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -40,7 +40,7 @@ _PROTOTYPE( int sys_newmap, (endpoint_t proc_ep, struct mem_map *ptr)); _PROTOTYPE( int sys_exit, (endpoint_t proc_ep)); _PROTOTYPE( int sys_trace, (int req, endpoint_t proc_ep, long addr, long *data_p)); -_PROTOTYPE( int sys_privctl, (endpoint_t proc_ep, int req, int i, void *p)); +_PROTOTYPE( int sys_privctl, (endpoint_t proc_ep, int req, void *p)); _PROTOTYPE( int sys_setgrant, (cp_grant_t *grants, int ngrants)); _PROTOTYPE( int sys_nice, (endpoint_t proc_ep, int priority)); diff --git a/lib/syslib/sys_privctl.c b/lib/syslib/sys_privctl.c index b3a61588a..c53a7d6c4 100644 --- a/lib/syslib/sys_privctl.c +++ b/lib/syslib/sys_privctl.c @@ -1,6 +1,6 @@ #include "syslib.h" -int sys_privctl(endpoint_t proc_ep, int request, int i, void *p) +int sys_privctl(endpoint_t proc_ep, int request, void *p) { message m;