vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

select.h (370B)


      1 #ifndef _SYS_SELECT_H_
      2 #define _SYS_SELECT_H_
      3 
      4 #define FD_SETSIZE 32
      5 typedef unsigned int fd_set;
      6 
      7 struct timeval;
      8 int select(int, fd_set*, fd_set*, fd_set*, struct timeval*);
      9 
     10 #define FD_SET(fd, s)  ((*s) |= (1<<(fd)))
     11 #define FD_CLR(fd, s) ((*s) &= ~(1<<(fd)))
     12 #define FD_ISSET(fd, s) (((*s) & (1<<(fd))) != 0)
     13 #define FD_ZERO(s) ((*s) = 0)
     14 
     15 #endif  // _SYS_SELECT_H_