From: Matthias Kruk Date: Wed, 2 Oct 2019 07:15:46 +0000 (+0900) Subject: Add include/poll.h header X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=f29ce841866ad345890884951b7b82b9d0838cab;p=corax Add include/poll.h header --- diff --git a/include/poll.h b/include/poll.h new file mode 100644 index 0000000..fce84e5 --- /dev/null +++ b/include/poll.h @@ -0,0 +1,20 @@ +#ifndef __POLL_H +#define __POLL_H + +typedef unsigned long nfds_t; + +struct pollfd { + int fd; + short events; + short revents; +}; + +#define POLLIN (1 << 0) +#define POLLOUT (1 << 1) +#define POLLPRI (1 << 2) +#define POLLRDHUP (1 << 3) +#define POLLERR (1 << 4) +#define POLLHUP (1 << 5) +#define POLLNVAL (1 << 6) + +#endif /* __POLL_H */