Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __ASM_GENERIC_POLL_H
0003 #define __ASM_GENERIC_POLL_H
0004 
0005 /* These are specified by iBCS2 */
0006 #define POLLIN      0x0001
0007 #define POLLPRI     0x0002
0008 #define POLLOUT     0x0004
0009 #define POLLERR     0x0008
0010 #define POLLHUP     0x0010
0011 #define POLLNVAL    0x0020
0012 
0013 /* The rest seem to be more-or-less nonstandard. Check them! */
0014 #define POLLRDNORM  0x0040
0015 #define POLLRDBAND  0x0080
0016 #ifndef POLLWRNORM
0017 #define POLLWRNORM  0x0100
0018 #endif
0019 #ifndef POLLWRBAND
0020 #define POLLWRBAND  0x0200
0021 #endif
0022 #ifndef POLLMSG
0023 #define POLLMSG     0x0400
0024 #endif
0025 #ifndef POLLREMOVE
0026 #define POLLREMOVE  0x1000
0027 #endif
0028 #ifndef POLLRDHUP
0029 #define POLLRDHUP       0x2000
0030 #endif
0031 
0032 #define POLLFREE    (__force __poll_t)0x4000
0033 
0034 #define POLL_BUSY_LOOP  (__force __poll_t)0x8000
0035 
0036 struct pollfd {
0037     int fd;
0038     short events;
0039     short revents;
0040 };
0041 
0042 #endif  /* __ASM_GENERIC_POLL_H */