Skip to content
Snippets Groups Projects
Commit 89e12d88 authored by Nadav Har'El's avatar Nadav Har'El
Browse files

epoll: make epoll-poll event conversion more explicit

epoll and poll() use different event names (e.g., EPOLLIN vs. POLLIN),
but in practice the bits are identical. Make this conversion more
explicit, and add static_assert()s that the bits are indeed identical.

We still have dynamic assert() that the bits we don't support -
EPOLLET (for edge triggered behavior) and EPOLLONESHOT - aren't
used.

This patch only makes the code cleaner, but doesn't change anything
in its behavior.`
parent 71be883c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment