blob: 73c6cc16e1e033069ca43bed6433f2d803a610a1 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __ASM_GENERIC_POLL_H
8#define __ASM_GENERIC_POLL_H
9#define POLLIN 0x0001
10#define POLLPRI 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define POLLOUT 0x0004
12#define POLLERR 0x0008
13#define POLLHUP 0x0010
14#define POLLNVAL 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define POLLRDNORM 0x0040
16#define POLLRDBAND 0x0080
17#ifndef POLLWRNORM
18#define POLLWRNORM 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070019#endif
20#ifndef POLLWRBAND
21#define POLLWRBAND 0x0200
22#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070023#ifndef POLLMSG
24#define POLLMSG 0x0400
25#endif
26#ifndef POLLREMOVE
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define POLLREMOVE 0x1000
28#endif
29#ifndef POLLRDHUP
30#define POLLRDHUP 0x2000
Ben Cheng655a7c02013-10-16 16:09:24 -070031#endif
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070032#define POLLFREE ( __poll_t) 0x4000
33#define POLL_BUSY_LOOP ( __poll_t) 0x8000
Ben Cheng655a7c02013-10-16 16:09:24 -070034struct pollfd {
Tao Baod7db5942015-01-28 10:07:51 -080035 int fd;
36 short events;
37 short revents;
Ben Cheng655a7c02013-10-16 16:09:24 -070038};
Christopher Ferris38062f92014-07-09 15:33:25 -070039#endif