My Project
Main Page
Modules
Data Structures
Files
File List
Globals
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
types.h
pollfd::revents
int revents
Definition:
poll.h:23
pollfd::fd
int fd
Definition:
poll.h:21
u32
uint32_t u32
Definition:
types.h:23
pollfd::events
int events
Definition:
poll.h:22
pollfd
Definition:
poll.h:19
poll
int poll(struct pollfd *fds, nfds_t nfsd, int timeout)
Definition:
soc_poll.c:4
nfds_t
u32 nfds_t
Definition:
poll.h:17
include
poll.h
Generated on Mon Nov 24 2014 23:37:58 for My Project by
1.8.8