| 1 |
/************************************************************************** |
| 2 |
* This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is * |
| 3 |
* provided by Jonathan and Jovehacks without charge and without * |
| 4 |
* warranty. You may copy, modify, and/or distribute JOVE, provided that * |
| 5 |
* this notice is included in all the source files and documentation. * |
| 6 |
**************************************************************************/ |
| 7 |
|
| 8 |
#ifdef USE_SELECT_H |
| 9 |
# include <sys/select.h> |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef FD_SET /* usually set in sys/types.h (AIX: sys/select.h) */ |
| 13 |
|
| 14 |
typedef long fd_set; |
| 15 |
|
| 16 |
# ifndef FD_SETSIZE |
| 17 |
# define FD_SETSIZE 32 |
| 18 |
# endif |
| 19 |
|
| 20 |
# define FD_SET(fd, fdset) (*(fdset) |= (1L << (fd))) |
| 21 |
# define FD_CLR(fd, fdset) (*(fdset) &= ~(1L << (fd)) |
| 22 |
# define FD_ISSET(fd, fdset) (*(fdset) & (1L << (fd))) |
| 23 |
# define FD_ZERO(fdset) (*(fdset) = 0) |
| 24 |
|
| 25 |
#endif /* FD_SET */ |
| 26 |
|
| 27 |
extern fd_set global_fd; |
| 28 |
extern int global_maxfd; |