libctru  v2.4.1
poll.h
1 #pragma once
2 
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
9 
10 typedef unsigned int nfds_t;
11 
12 struct pollfd
13 {
14  int fd;
15  int events;
16  int revents;
17 };
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23  int poll(struct pollfd *fds, nfds_t nfsd, int timeout);
24 
25 #ifdef __cplusplus
26 }
27 #endif
Definition: poll.h:13