change fields of struct selinfo from si_ to sel_ so that the don't conflict
with siginfo members.
This commit is contained in:
parent
0cce063c0c
commit
410171110f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: select.h,v 1.13 2002/10/23 09:15:00 jdolecek Exp $ */
|
/* $NetBSD: select.h,v 1.14 2002/11/26 19:08:06 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -46,9 +46,9 @@
|
|||||||
* notified when I/O becomes possible.
|
* notified when I/O becomes possible.
|
||||||
*/
|
*/
|
||||||
struct selinfo {
|
struct selinfo {
|
||||||
pid_t si_pid; /* process to be notified */
|
pid_t sel_pid; /* process to be notified */
|
||||||
struct klist si_klist; /* knotes attached to this selinfo */
|
struct klist sel_klist; /* knotes attached to this selinfo */
|
||||||
short si_flags; /* see below */
|
short sel_flags; /* see below */
|
||||||
};
|
};
|
||||||
#define SI_COLL 0x0001 /* collision occurred */
|
#define SI_COLL 0x0001 /* collision occurred */
|
||||||
|
|
||||||
@ -62,9 +62,9 @@ static __inline void
|
|||||||
selnotify(struct selinfo *sip, long knhint)
|
selnotify(struct selinfo *sip, long knhint)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (sip->si_pid != 0)
|
if (sip->sel_pid != 0)
|
||||||
selwakeup(sip);
|
selwakeup(sip);
|
||||||
KNOTE(&sip->si_klist, knhint);
|
KNOTE(&sip->sel_klist, knhint);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user