-/* $OpenBSD: pcvt_drv.c,v 1.14 1996/06/10 07:35:40 deraadt Exp $ */
+/* $OpenBSD: pcvt_drv.c,v 1.15 1997/01/27 23:20:59 deraadt Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
goto out;
if (tp->t_outq.c_cc == 0 &&
- tp->t_wsel.si_pid == 0)
+ tp->t_wsel.si_selpid == 0)
{
async_update();
goto low;
-/* $OpenBSD: sys_generic.c,v 1.6 1996/10/12 01:15:44 deraadt Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.7 1997/01/27 23:21:13 deraadt Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
pid_t mypid;
mypid = selector->p_pid;
- if (sip->si_pid == mypid)
+ if (sip->si_selpid == mypid)
return;
- if (sip->si_pid && (p = pfind(sip->si_pid)) &&
+ if (sip->si_selpid && (p = pfind(sip->si_selpid)) &&
p->p_wchan == (caddr_t)&selwait)
sip->si_flags |= SI_COLL;
else
- sip->si_pid = mypid;
+ sip->si_selpid = mypid;
}
/*
register struct proc *p;
int s;
- if (sip->si_pid == 0)
+ if (sip->si_selpid == 0)
return;
if (sip->si_flags & SI_COLL) {
nselcoll++;
sip->si_flags &= ~SI_COLL;
wakeup((caddr_t)&selwait);
}
- p = pfind(sip->si_pid);
- sip->si_pid = 0;
+ p = pfind(sip->si_selpid);
+ sip->si_selpid = 0;
if (p != NULL) {
s = splhigh();
if (p->p_wchan == (caddr_t)&selwait) {
-/* $OpenBSD: bpf.c,v 1.6 1996/12/07 09:17:46 deraadt Exp $ */
+/* $OpenBSD: bpf.c,v 1.7 1997/01/27 23:21:18 deraadt Exp $ */
/* $NetBSD: bpf.c,v 1.27 1996/05/07 05:26:02 thorpej Exp $ */
/*
#if BSD >= 199103
selwakeup(&d->bd_sel);
/* XXX */
- d->bd_sel.si_pid = 0;
+ d->bd_sel.si_selpid = 0;
#else
if (d->bd_selproc) {
selwakeup(d->bd_selproc, (int)d->bd_selcoll);
-/* $OpenBSD: select.h,v 1.2 1996/03/03 12:12:16 niklas Exp $ */
+/* $OpenBSD: select.h,v 1.3 1997/01/27 23:21:21 deraadt Exp $ */
/* $NetBSD: select.h,v 1.10 1995/03/26 20:24:38 jtc Exp $ */
/*-
* notified when I/O becomes possible.
*/
struct selinfo {
- pid_t si_pid; /* process to be notified */
+ pid_t si_selpid; /* process to be notified */
short si_flags; /* see below */
};
#define SI_COLL 0x0001 /* collision occurred */
-/* $OpenBSD: siginfo.h,v 1.2 1997/01/27 03:18:09 deraadt Exp $ */
+/* $OpenBSD: siginfo.h,v 1.3 1997/01/27 23:21:22 deraadt Exp $ */
/*
* Copyright (c) 1997 Theo de Raadt
} _data;
} siginfo_t;
-/* collides with select inside the kernel */
-#define si_pid_XXX _data._proc._pid
+#define si_pid _data._proc._pid
#define si_status _data._proc._pdata._cld._status
#define si_stime _data._proc._pdata._cld._stime