/* SPDX-License-Identifier: Unlicense */ #ifndef __ZINNIA_UAPI_POLL_H #define __ZINNIA_UAPI_POLL_H #include #define __POLLIN 0x01 #define __POLLOUT 0x02 #define __POLLPRI 0x04 #define __POLLHUP 0x08 #define __POLLERR 0x10 #define __POLLRDHUP 0x20 #define __POLLNVAL 0x40 #define __POLLRDNORM 0x80 #define __POLLRDBAND 0x100 #define __POLLWRNORM 0x200 #define __POLLWRBAND 0x400 typedef intptr_t __nfds_t; struct __pollfd { int fd; int16_t events; int16_t revents; }; #endif