Annotation of coherent/f/usr/include.78/sys/select.h, revision 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: #ifndef __SYS_SELECT_H__
        !             7: #define __SYS_SELECT_H__
        !             8: 
        !             9: #include <sys/param.h>
        !            10: 
        !            11: #if NOFILE <= 32
        !            12: typedef int fd_set;
        !            13: 
        !            14: #define FD_ZERO(fdp)   {*fdp = 0;}
        !            15: #define FD_SET(b,fdp)  (*fdp |= 1 << (b))
        !            16: #define FD_ISSET(b,fdp)        (*fdp & 1 << (b))
        !            17: #define FD_SETSIZE 32
        !            18: #else
        !            19: typedef int fd_set[2];
        !            20: 
        !            21: #define FD_ZERO(fdp)   {(*fdp)[0]=(*fdp)[1]=0;}
        !            22: #define FD_SET(b,fdp)  ((*fdp)[((b)>>5)&1] |= 1 << ((b)&0x1F))
        !            23: #define FD_ISSET(b,fdp)        ((*fdp)[((b)>>5)&1] & 1 << ((b)&0x1F))
        !            24: #define FD_SETSIZE 64
        !            25: 
        !            26: #endif
        !            27: #endif

unix.superglobalmegacorp.com

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