mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
04b9dc2d30
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
14 lines
389 B
C
14 lines
389 B
C
#pragma once
|
|
|
|
#define FD_SETSIZE 64
|
|
#define FD_ZERO(set) memset((set), 0, sizeof(fd_set));
|
|
#define FD_CLR(fd, set) ((set)->bits[(fd / 8)] &= ~(1 << (fd) % 8))
|
|
#define FD_SET(fd, set) ((set)->bits[(fd / 8)] |= (1 << (fd) % 8))
|
|
#define FD_ISSET(fd, set) ((set)->bits[(fd / 8)] & (1 << (fd) % 8))
|
|
|
|
struct __fd_set {
|
|
unsigned char bits[FD_SETSIZE / 8];
|
|
};
|
|
|
|
typedef struct __fd_set fd_set;
|