2 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
3 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
5 #if defined(HAVE_EPOLL_WAIT) && ! MOG_LIBKQUEUE
9 * EPOLLERR and EPOLLHUP are always set by default,
10 * but there's no harm in setting them here
12 #define MY_EP_FLAGS (EPOLLONESHOT|EPOLLHUP|EPOLLERR)
14 MOG_QEV_RD
= EPOLLIN
| MY_EP_FLAGS
| EPOLLET
,
15 MOG_QEV_WR
= EPOLLOUT
| MY_EP_FLAGS
| EPOLLET
,
16 MOG_QEV_RW
= EPOLLIN
| EPOLLOUT
| MY_EP_FLAGS
18 #endif /* HAVE_EPOLL_WAIT */