Registers a new fd or raises an OSError if the fd is already registered.
fd
the target file descriptor of the operation
eventmask
a bit set composed of the various EPOLL constants
The epoll interface supports all file descriptors that support poll.