blob: 372bc7734237cf6e123ad4fbd7fe386c8d104be6 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef __ASM_GENERIC_POLL_H
20#define __ASM_GENERIC_POLL_H
21#define POLLIN 0x0001
22#define POLLPRI 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define POLLOUT 0x0004
24#define POLLERR 0x0008
25#define POLLHUP 0x0010
26#define POLLNVAL 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define POLLRDNORM 0x0040
28#define POLLRDBAND 0x0080
29#ifndef POLLWRNORM
30#define POLLWRNORM 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070031#endif
32#ifndef POLLWRBAND
33#define POLLWRBAND 0x0200
34#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070035#ifndef POLLMSG
36#define POLLMSG 0x0400
37#endif
38#ifndef POLLREMOVE
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define POLLREMOVE 0x1000
40#endif
41#ifndef POLLRDHUP
42#define POLLRDHUP 0x2000
Ben Cheng655a7c02013-10-16 16:09:24 -070043#endif
Christopher Ferris76a1d452018-06-27 14:12:29 -070044#define POLLFREE (__force __poll_t) 0x4000
45#define POLL_BUSY_LOOP (__force __poll_t) 0x8000
Ben Cheng655a7c02013-10-16 16:09:24 -070046struct pollfd {
Tao Baod7db5942015-01-28 10:07:51 -080047 int fd;
48 short events;
49 short revents;
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
Christopher Ferris38062f92014-07-09 15:33:25 -070051#endif