File:  [MW Coherent from dump] / coherent / a / usr / include.b4ps2 / sys / select.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* (-lgl
 * 	COHERENT 386 Device Driver Kit release 2.0
 * 	Copyright (c) 1982, 1992 by Mark Williams Company.
 * 	All rights reserved. May not be copied without permission.
 -lgl) */
#include <sys/param.h>

#if NOFILE <= 32
typedef int fd_set;

#define FD_ZERO(fdp)	{*fdp = 0;}
#define FD_SET(b,fdp)	(*fdp |= 1 << (b))
#define FD_ISSET(b,fdp)	(*fdp & 1 << (b))
#define FD_SETSIZE 32
#else
typedef int fd_set[2];

#define FD_ZERO(fdp)	{(*fdp)[0]=(*fdp)[1]=0;}
#define FD_SET(b,fdp)	((*fdp)[((b)>>5)&1] |= 1 << ((b)&0x1F))
#define FD_ISSET(b,fdp)	((*fdp)[((b)>>5)&1] & 1 << ((b)&0x1F))
#define FD_SETSIZE 64
#endif

unix.superglobalmegacorp.com

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