brintos

brintos / linux-shallow public Read only

0
0
Text · 863 B · f9c520c Raw
43 lines · c
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */2#ifndef __ASM_GENERIC_POLL_H3#define __ASM_GENERIC_POLL_H4 5/* These are specified by iBCS2 */6#define POLLIN		0x00017#define POLLPRI		0x00028#define POLLOUT		0x00049#define POLLERR		0x000810#define POLLHUP		0x001011#define POLLNVAL	0x002012 13/* The rest seem to be more-or-less nonstandard. Check them! */14#define POLLRDNORM	0x004015#define POLLRDBAND	0x008016#ifndef POLLWRNORM17#define POLLWRNORM	0x010018#endif19#ifndef POLLWRBAND20#define POLLWRBAND	0x020021#endif22#ifndef POLLMSG23#define POLLMSG		0x040024#endif25#ifndef POLLREMOVE26#define POLLREMOVE	0x100027#endif28#ifndef POLLRDHUP29#define POLLRDHUP       0x200030#endif31 32#define POLLFREE	(__force __poll_t)0x400033 34#define POLL_BUSY_LOOP	(__force __poll_t)0x800035 36struct pollfd {37	int fd;38	short events;39	short revents;40};41 42#endif	/* __ASM_GENERIC_POLL_H */43