122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef __ASM_GENERIC_POLL_H 2022851890Sopenharmony_ci#define __ASM_GENERIC_POLL_H 2122851890Sopenharmony_ci#define POLLIN 0x0001 2222851890Sopenharmony_ci#define POLLPRI 0x0002 2322851890Sopenharmony_ci#define POLLOUT 0x0004 2422851890Sopenharmony_ci#define POLLERR 0x0008 2522851890Sopenharmony_ci#define POLLHUP 0x0010 2622851890Sopenharmony_ci#define POLLNVAL 0x0020 2722851890Sopenharmony_ci#define POLLRDNORM 0x0040 2822851890Sopenharmony_ci#define POLLRDBAND 0x0080 2922851890Sopenharmony_ci#ifndef POLLWRNORM 3022851890Sopenharmony_ci#define POLLWRNORM 0x0100 3122851890Sopenharmony_ci#endif 3222851890Sopenharmony_ci#ifndef POLLWRBAND 3322851890Sopenharmony_ci#define POLLWRBAND 0x0200 3422851890Sopenharmony_ci#endif 3522851890Sopenharmony_ci#ifndef POLLMSG 3622851890Sopenharmony_ci#define POLLMSG 0x0400 3722851890Sopenharmony_ci#endif 3822851890Sopenharmony_ci#ifndef POLLREMOVE 3922851890Sopenharmony_ci#define POLLREMOVE 0x1000 4022851890Sopenharmony_ci#endif 4122851890Sopenharmony_ci#ifndef POLLRDHUP 4222851890Sopenharmony_ci#define POLLRDHUP 0x2000 4322851890Sopenharmony_ci#endif 4422851890Sopenharmony_ci#define POLLFREE (__force __poll_t) 0x4000 4522851890Sopenharmony_ci#define POLL_BUSY_LOOP (__force __poll_t) 0x8000 4622851890Sopenharmony_cistruct pollfd { 4722851890Sopenharmony_ci int fd; 4822851890Sopenharmony_ci short events; 4922851890Sopenharmony_ci short revents; 5022851890Sopenharmony_ci}; 5122851890Sopenharmony_ci#endif 52