rminnichinitial68276fd16 years agoHistory
34 lines · 779 B · C
RawDownload
#ifndef __SELECT_H#define __SELECT_H#ifndef _BSD_EXTENSION    This header file is an extension to ANSI/POSIX#endif#pragma lib "/$M/lib/ape/libap.a" #ifndef _FD_SET_T#define _FD_SET_T/* BSD select, and adjunct types and macros */ /* assume 96 fds is sufficient for fdset size */ typedef struct fd_set {	long fds_bits[3];} fd_set; #define FD_SET(n,p)	((p)->fds_bits[(n)>>5] |= (1 << ((n) &0x1f)))#define FD_CLR(n,p)	((p)->fds_bits[(n)>>5] &= ~(1 << ((n) &0x1f)))#define FD_ISSET(n,p)	((p)->fds_bits[(n)>>5] & (1 << ((n) &0x1f)))#define FD_ZERO(p)	((p)->fds_bits[0] =0, (p)->fds_bits[1] =0, (p)->fds_bits[2] =0)#endif #ifdef __cplusplusextern "C" {#endif extern int select(int, fd_set*, fd_set*, fd_set*, struct timeval *); #ifdef __cplusplus}#endif #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t