17#ifndef TOOLBOX_IO_EPOLL_HPP
18#define TOOLBOX_IO_EPOLL_HPP
91 std::error_code&
ec)
noexcept
163 return static_cast<int>(
ev.data.u64 & 0xffffffff);
167 return static_cast<int>(
ev.data.u64 >> 32);
170 : epfd_{os::epoll_create1(
flags)}
239 void mod(
int fd,
int sid,
unsigned events, std::error_code&
ec)
noexcept
256 ev.data.u64 =
static_cast<std::uint64_t
>(
sid) << 32 |
fd;