We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186b9e8 commit 5747c74Copy full SHA for 5747c74
gc/network.h
@@ -195,12 +195,16 @@ struct linger {
195
#define ip4_addr4(ipaddr) ((u32)(ntohl((ipaddr)->s_addr)) & 0xff)
196
#endif
197
198
-#define POLLIN 0x0001
199
-#define POLLPRI 0x0002
200
-#define POLLOUT 0x0004
201
-#define POLLERR 0x0008
202
-#define POLLHUP 0x0010
203
-#define POLLNVAL 0x0020
+#define POLLRDNORM 0x0001
+#define POLLRDBAND 0x0002
+#define POLLPRI 0x0004
+#define POLLWRNORM 0x0008
+#define POLLWRBAND 0x0010
+#define POLLERR 0x0020
204
+#define POLLHUP 0x0040
205
+#define POLLNVAL 0x0080
206
+#define POLLIN (POLLRDNORM|POLLRDBAND)
207
+#define POLLOUT POLLWRNORM
208
209
#ifdef __cplusplus
210
extern "C" {
0 commit comments