poll: add poll_requested_events() and poll_does_not_wait() functions