132656Sminshall /* 2*62309Sbostic * Copyright (c) 1988, 1993 3*62309Sbostic * The Regents of the University of California. All rights reserved. 433685Sbostic * 542770Sbostic * %sccs.include.redist.c% 633685Sbostic * 7*62309Sbostic * @(#)fdset.h 8.1 (Berkeley) 06/06/93 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