1#ifndef __VSF_LINUX_POLL_H__
2#define __VSF_LINUX_POLL_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
11#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED & VSF_LINUX_USE_SIMPLE_TIME == ENABLED
21#if VSF_LINUX_CFG_WRAPPER == ENABLED
22#define poll VSF_LINUX_WRAPPER(poll)
23#define ppoll VSF_LINUX_WRAPPER(ppoll)
29#define __NR_ppoll ppoll
33#define POLLIN (1 << 0)
34#define POLLPRI (1 << 1)
35#define POLLOUT (1 << 2)
36#define POLLERR (1 << 3)
37#define POLLHUP (1 << 4)
38#define POLLNVAL (1 << 5)
40#define POLLRDNORM (1 << 6)
41#define POLLRDBAND (1 << 7)
42#define POLLWRNORM (1 << 8)
43#define POLLWRBAND (1 << 9)
44#define POLLRDHUP (1 << 10)
58#if VSF_LINUX_APPLET_USE_POLL == ENABLED
65# ifndef __VSF_APPLET__
70#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_POLL_LIB__))\
71 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_POLL == ENABLED
73#ifndef VSF_LINUX_APPLET_POLL_VPLT
74# if VSF_LINUX_USE_APPLET == ENABLED
75# define VSF_LINUX_APPLET_POLL_VPLT \
76 ((vsf_linux_poll_vplt_t *)(VSF_LINUX_APPLET_VPLT->poll_vplt))
78# define VSF_LINUX_APPLET_POLL_VPLT \
79 ((vsf_linux_poll_vplt_t *)vsf_vplt((void *)0))
83#define VSF_LINUX_APPLET_POLL_ENTRY(__NAME) \
84 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_POLL_VPLT, __NAME)
85#define VSF_LINUX_APPLET_POLL_IMP(...) \
86 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_POLL_VPLT, __VA_ARGS__)
90 return VSF_LINUX_APPLET_POLL_ENTRY(
poll)(fds, nfds,
timeout);
94 return VSF_LINUX_APPLET_POLL_ENTRY(
ppoll)(fds, nfds, timeout_ts, sigmask);
__le16 timeout
Definition ieee80211.h:94
int nfds_t
Definition poll.h:31
#define poll
Definition poll.h:22
__VSF_VPLT_DECORATOR__ vsf_linux_poll_vplt_t vsf_linux_poll_vplt
Definition vsf_linux_fs.c:3587
#define ppoll
Definition poll.h:23
int fd
Definition poll.h:48
void * trig
Definition poll.h:55
vsf_linux_fd_priv_callback_t * callback
Definition poll.h:54
short revents
Definition poll.h:50
short events_triggered
Definition poll.h:53
short events
Definition poll.h:49
Definition vsf_linux_fs.h:88
vsf_vplt_info_t info
Definition poll.h:60
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(poll)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(ppoll)
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165