Skip to content

Commit c3ec3b7

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

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

libctru/include/poll.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
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 POLLRDNORM 0x01
4+
#define POLLRDBAND 0x02
5+
#define POLLPRI 0x04
6+
#define POLLWRNORM 0x08
7+
#define POLLWRBAND 0x10
8+
#define POLLERR 0x20
9+
#define POLLHUP 0x40
10+
#define POLLNVAL 0x80
11+
#define POLLIN (POLLRDNORM | POLLRDBAND)
12+
#define POLLOUT POLLWRNORM
913

1014
typedef unsigned int nfds_t;
1115

0 commit comments

Comments
 (0)