Annotation of coherent/a/usr/include.b4ps2/sys/select.h, revision 1.1.1.1

1.1       root        1: /* (-lgl
                      2:  *     COHERENT 386 Device Driver Kit release 2.0
                      3:  *     Copyright (c) 1982, 1992 by Mark Williams Company.
                      4:  *     All rights reserved. May not be copied without permission.
                      5:  -lgl) */
                      6: #include <sys/param.h>
                      7: 
                      8: #if NOFILE <= 32
                      9: typedef int fd_set;
                     10: 
                     11: #define FD_ZERO(fdp)   {*fdp = 0;}
                     12: #define FD_SET(b,fdp)  (*fdp |= 1 << (b))
                     13: #define FD_ISSET(b,fdp)        (*fdp & 1 << (b))
                     14: #define FD_SETSIZE 32
                     15: #else
                     16: typedef int fd_set[2];
                     17: 
                     18: #define FD_ZERO(fdp)   {(*fdp)[0]=(*fdp)[1]=0;}
                     19: #define FD_SET(b,fdp)  ((*fdp)[((b)>>5)&1] |= 1 << ((b)&0x1F))
                     20: #define FD_ISSET(b,fdp)        ((*fdp)[((b)>>5)&1] & 1 << ((b)&0x1F))
                     21: #define FD_SETSIZE 64
                     22: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.