My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
poll.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <3ds/types.h>
4 
5 /* only POLLIN confirmed to work so far */
6 #define POLLIN 0x001
7 #define POLLPRI 0x002
8 #define POLLOUT 0x004
9 #define POLLERR 0x008
10 #define POLLHUP 0x010
11 #define POLLNVAL 0x020
12 #define POLLRDNORM 0x040
13 #define POLLRDBAND 0x080
14 #define POLLWRNORM 0x100
15 #define POLLWRBAND 0x200
16 
17 typedef u32 nfds_t;
18 
19 struct pollfd
20 {
21  int fd;
22  int events;
23  int revents;
24 };
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30  int poll(struct pollfd *fds, nfds_t nfsd, int timeout);
31 
32 #ifdef __cplusplus
33 }
34 #endif
int revents
Definition: poll.h:23
int fd
Definition: poll.h:21
uint32_t u32
Definition: types.h:23
int events
Definition: poll.h:22
Definition: poll.h:19
int poll(struct pollfd *fds, nfds_t nfsd, int timeout)
Definition: soc_poll.c:4
u32 nfds_t
Definition: poll.h:17