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

This commit is contained in:
Erik van der Kouwe 2009-09-23 08:46:17 +00:00
parent dd0ea3aba0
commit 789c8a6ee4
3 changed files with 11 additions and 4 deletions

View file

@ -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 */

View file

@ -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));

View file

@ -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;