blob: 4137abbb83651743431fc04effbbafd4ec9c5c3f [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __ASM_GENERIC_POLL_H
20#define __ASM_GENERIC_POLL_H
21#define POLLIN 0x0001
22#define POLLPRI 0x0002
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define POLLOUT 0x0004
25#define POLLERR 0x0008
26#define POLLHUP 0x0010
27#define POLLNVAL 0x0020
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define POLLRDNORM 0x0040
30#define POLLRDBAND 0x0080
31#ifndef POLLWRNORM
32#define POLLWRNORM 0x0100
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#endif
35#ifndef POLLWRBAND
36#define POLLWRBAND 0x0200
37#endif
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#ifndef POLLMSG
40#define POLLMSG 0x0400
41#endif
42#ifndef POLLREMOVE
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define POLLREMOVE 0x1000
45#endif
46#ifndef POLLRDHUP
47#define POLLRDHUP 0x2000
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#endif
50#define POLLFREE 0x4000
Christopher Ferris38062f92014-07-09 15:33:25 -070051#define POLL_BUSY_LOOP 0x8000
Ben Cheng655a7c02013-10-16 16:09:24 -070052struct pollfd {
Elliott Hughes8cb52b02013-11-21 13:43:23 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 int fd;
55 short events;
56 short revents;
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059#endif