TODO
----

  - Look at what should be done when EAGAIN is generated by select
    or poll.

  - Move checking of timers until after select()/poll(). Also change
    things such that an alarm/timer with zero timeout takes precedence
    over file descriptors. Array of remembered file descriptors
    should still be filled up.

  - Look at adding WinSock support.
