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 /* $Id: fd_set.h,v 35004.15 2007/01/13 23:12:39 kkeys Exp $ */ 9 10 #ifndef FD_SET_H 11 #define FD_SET_H 12 13 #ifndef FD_ZERO 14 /* For BSD 4.2 systems. */ 15 VEC_TYPEDEF(fd_vector, 256); /* fd_vector in case fd_set is already typedef'd */ 16 # undef fd_set /* in case fd_set is already #define'd */ 17 # define fd_set fd_vector 18 # define FD_SET(n, p) VEC_SET(n, p) 19 # define FD_CLR(n, p) VEC_CLR(n, p) 20 # define FD_ISSET(n, p) VEC_ISSET(n, p) 21 # define FD_ZERO(p) VEC_ZERO(p) 22 extern int select(); 23 #endif 24 25 #endif /* FD_SET_H */ 26