1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __ASM_GENERIC_POLL_H
13#define __ASM_GENERIC_POLL_H
14
15#define POLLIN 0x0001
16#define POLLPRI 0x0002
17#define POLLOUT 0x0004
18#define POLLERR 0x0008
19#define POLLHUP 0x0010
20#define POLLNVAL 0x0020
21
22#define POLLRDNORM 0x0040
23#define POLLRDBAND 0x0080
24#ifndef POLLWRNORM
25#define POLLWRNORM 0x0100
26#endif
27#ifndef POLLWRBAND
28#define POLLWRBAND 0x0200
29#endif
30#ifndef POLLMSG
31#define POLLMSG 0x0400
32#endif
33#ifndef POLLREMOVE
34#define POLLREMOVE 0x1000
35#endif
36#ifndef POLLRDHUP
37#define POLLRDHUP 0x2000
38#endif
39
40struct pollfd {
41 int fd;
42 short events;
43 short revents;
44};
45
46#endif
47