projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix some type leakage (timer_t) from x86_64 commit
[oweals/musl.git]
/
include
/
poll.h
1
#ifndef _POLL_H
2
#define _POLL_H
3
4
#ifdef __cplusplus
5
extern "C" {
6
#endif
7
8
#define POLLIN 0x001
9
#define POLLPRI 0x002
10
#define POLLOUT 0x004
11
#define POLLERR 0x008
12
#define POLLHUP 0x010
13
#define POLLNVAL 0x020
14
#define POLLRDNORM 0x040
15
#define POLLRDBAND 0x080
16
#define POLLWRNORM 0x100
17
#define POLLWRBAND 0x200
18
#define POLLMSG 0x400
19
20
typedef unsigned int nfds_t;
21
22
struct pollfd
23
{
24
int fd;
25
short events;
26
short revents;
27
};
28
29
int poll (struct pollfd *, nfds_t, int);
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif