diff options
Diffstat (limited to 'src/libc/include/sys/select.h')
-rw-r--r-- | src/libc/include/sys/select.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libc/include/sys/select.h b/src/libc/include/sys/select.h new file mode 100644 index 0000000..3c1bb90 --- /dev/null +++ b/src/libc/include/sys/select.h @@ -0,0 +1,13 @@ +#pragma once +#include <stdint.h> +#include <sys/time.h> + +typedef uint64_t fd_set; + +#define FD_SETSIZE 64 +void FD_CLR(int fd, fd_set *set); +int FD_ISSET(int fd, fd_set *set); +void FD_SET(int fd, fd_set *set); +void FD_ZERO(fd_set *set); + +int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); |