1 /************************************************************************* 2 * TinyFugue - programmable mud client 3 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys 4 * 5 * TinyFugue (aka "tf") is protected under the terms of the GNU 6 * General Public License. See the file "COPYING" for details. 7 ************************************************************************/ 8 9 #ifndef FD_SET_H 10 #define FD_SET_H 11 12 #ifndef FD_ZERO 13 /* For BSD 4.2 systems. */ 14 VEC_TYPEDEF(fd_vector, 256); /* fd_vector in case fd_set is already typedef'd */ 15 # undef fd_set /* in case fd_set is already #define'd */ 16 # define fd_set fd_vector 17 # define FD_SET(n, p) VEC_SET(n, p) 18 # define FD_CLR(n, p) VEC_CLR(n, p) 19 # define FD_ISSET(n, p) VEC_ISSET(n, p) 20 # define FD_ZERO(p) VEC_ZERO(p) 21 extern int select(); 22 #endif 23 24 #endif /* FD_SET_H */ 25