partial impl of epoll