SCCS-vsn: sys/sys/proc.h 7.33
SCCS-vsn: sys/kern/kern_synch.c 7.23
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kern_synch.c 7.22 (Berkeley) %G%
+ * @(#)kern_synch.c 7.23 (Berkeley) %G%
* be interrupted by the signal (return EINTR).
*/
tsleep(chan, pri, wmesg, timo)
* be interrupted by the signal (return EINTR).
*/
tsleep(chan, pri, wmesg, timo)
int pri;
char *wmesg;
int timo;
int pri;
char *wmesg;
int timo;
return (0);
}
#ifdef DIAGNOSTIC
return (0);
}
#ifdef DIAGNOSTIC
- if (chan == 0 || p->p_stat != SRUN || p->p_rlink)
+ if (chan == NULL || p->p_stat != SRUN || p->p_rlink)
panic("tsleep");
#endif
p->p_wchan = chan;
panic("tsleep");
#endif
p->p_wchan = chan;
* Short-term, non-interruptable sleep.
*/
sleep(chan, pri)
* Short-term, non-interruptable sleep.
*/
sleep(chan, pri)
int pri;
{
register struct proc *p = curproc;
int pri;
{
register struct proc *p = curproc;
#ifdef DIAGNOSTIC
if (pri > PZERO) {
printf("sleep called with pri %d > PZERO, wchan: %x\n",
#ifdef DIAGNOSTIC
if (pri > PZERO) {
printf("sleep called with pri %d > PZERO, wchan: %x\n",
panic("old sleep");
}
#endif
panic("old sleep");
}
#endif
return;
}
#ifdef DIAGNOSTIC
return;
}
#ifdef DIAGNOSTIC
- if (chan==0 || p->p_stat != SRUN || p->p_rlink)
+ if (chan == NULL || p->p_stat != SRUN || p->p_rlink)
panic("sleep");
#endif
p->p_wchan = chan;
panic("sleep");
#endif
p->p_wchan = chan;
* sleeping on chan to run state.
*/
wakeup(chan)
* sleeping on chan to run state.
*/
wakeup(chan)
{
register struct slpque *qp;
register struct proc *p, **q;
{
register struct slpque *qp;
register struct proc *p, **q;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)proc.h 7.32 (Berkeley) %G%
+ * @(#)proc.h 7.33 (Berkeley) %G%
int whichqs; /* bit mask summarizing non-empty qs's */
int whichqs; /* bit mask summarizing non-empty qs's */
-int sleep __P((caddr_t chan, int pri));
-int tsleep __P((caddr_t chan, int pri, char *wmesg, int timo));
+int sleep __P((void *chan, int pri));
+int tsleep __P((void *chan, int pri, char *wmesg, int timo));
int unsleep __P((struct proc *));
int unsleep __P((struct proc *));
-int wakeup __P((caddr_t));
+int wakeup __P((void *chan));
int setrun __P((struct proc *));
int setpri __P((struct proc *));
int setrun __P((struct proc *));
int setpri __P((struct proc *));