xref: /original-bsd/sys/sys/select.h (revision 333da485)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)select.h	8.2 (Berkeley) 01/04/94
8  */
9 
10 #ifndef _SYS_SELECT_H_
11 #define	_SYS_SELECT_H_
12 
13 /*
14  * Used to maintain information about processes that wish to be
15  * notified when I/O becomes possible.
16  */
17 struct selinfo {
18 	pid_t	si_pid;		/* process to be notified */
19 	short	si_flags;	/* see below */
20 };
21 #define	SI_COLL	0x0001		/* collision occurred */
22 
23 #ifdef KERNEL
24 struct proc;
25 
26 void	selrecord __P((struct proc *selector, struct selinfo *));
27 void	selwakeup __P((struct selinfo *));
28 #endif
29 
30 #endif /* !_SYS_SELECT_H_ */
31