Skip to content

Commit 07cf742

Browse files
committed
Fix socket poll events values
1 parent faf5162 commit 07cf742

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

libctru/include/poll.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#pragma once
22

3-
#define POLLIN 0x01
4-
#define POLLPRI 0x02
5-
#define POLLHUP 0x04 // unknown ???
6-
#define POLLERR 0x08 // probably
7-
#define POLLOUT 0x10
8-
#define POLLNVAL 0x20
3+
#define POLLIN 0x01
4+
#define POLLPRI 0x02
5+
#define POLLWRNORM 0x08
6+
#define POLLWRBAND 0x10
7+
#define POLLNVAL 0x20
8+
#define POLLHUP 0x00 // Unknown?
9+
#define POLLERR 0x00 // Unknown?
10+
#define POLLOUT POLLWRNORM
911

1012
typedef unsigned int nfds_t;
1113

0 commit comments

Comments
 (0)