wut  v1.7.0
Wii U Toolchain
poll.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define POLLIN 0x01
4 #define POLLPRI 0x02
5 #define POLLOUT 0x04
6 #define POLLERR 0x08
7 #define POLLHUP 0x10
8 #define POLLNVAL 0x20
9 
10 typedef unsigned long 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
24 poll(struct pollfd *fds,
25  nfds_t nfds,
26  int timeout);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
unsigned long nfds_t
Definition: poll.h:10
int fd
Definition: poll.h:14
int revents
Definition: poll.h:16
int events
Definition: poll.h:15
int poll(struct pollfd *fds, nfds_t nfds, int timeout)
Definition: poll.h:13