xref: /csrg-svn/usr.bin/telnet/fdset.h (revision 42770)
132656Sminshall /*
233685Sbostic  * Copyright (c) 1988 Regents of the University of California.
333685Sbostic  * All rights reserved.
433685Sbostic  *
5*42770Sbostic  * %sccs.include.redist.c%
633685Sbostic  *
7*42770Sbostic  *	@(#)fdset.h	1.5 (Berkeley) 06/01/90
833685Sbostic  */
933685Sbostic 
1033685Sbostic /*
1132656Sminshall  * The following is defined just in case someone should want to run
1232656Sminshall  * this telnet on a 4.2 system.
1332656Sminshall  *
1432656Sminshall  */
1532656Sminshall 
1632656Sminshall #ifndef	FD_SETSIZE
1732656Sminshall 
1832656Sminshall #define	FD_SET(n, p)	((p)->fds_bits[0] |= (1<<(n)))
1932656Sminshall #define	FD_CLR(n, p)	((p)->fds_bits[0] &= ~(1<<(n)))
2032656Sminshall #define	FD_ISSET(n, p)	((p)->fds_bits[0] & (1<<(n)))
2132656Sminshall #define FD_ZERO(p)	((p)->fds_bits[0] = 0)
2232656Sminshall 
2332656Sminshall #endif
24