Re: LIST_NEXT()

2001-07-06 Thread John Baldwin
; int >> prfw_setflags(p, uap) >> struct proc *p; >> struct prfw_setflags_args *uap; >> { >> ... >> if (uap->id) { >> while (uap->id != p->p_pid) >> LIST_NEXT(p, p_list); >> } > > Well, first, you're using LIST_NEXT(), not SL

Re: LIST_NEXT()

2001-07-06 Thread Eugene L. Vorokov
t; What am I doing wrong? I've read the manpages on queue and looked at the proc >structure. > > Here's the code: > int > prfw_setflags(p, uap) > struct proc *p; > struct prfw_setflags_args *uap; > { > ... > if (uap->id) { > while (uap->id != p

Re: LIST_NEXT()

2001-07-06 Thread Peter Pentchev
mpile it: > > warning: statement with mo effect > > What am I doing wrong? I've read the manpages on queue and looked at the proc >structure. > > Here's the code: > int > prfw_setflags(p, uap) > struct proc *p; > struct prfw_setflags_args *uap; > {

LIST_NEXT()

2001-07-06 Thread Evan Sarmiento
anpages on queue and looked at the proc structure. Here's the code: int prfw_setflags(p, uap) struct proc *p; struct prfw_setflags_args *uap; { ... if (uap->id) { while (uap->id != p->p_pid) LIST_NEXT(p, p_list); } ... } Thanks a lot. Evan Sarmiento To Unsubscribe: send mail t