summaryrefslogtreecommitdiffstats
path: root/osdep/polldev.h
Commit message (Collapse)AuthorAgeFilesLines
* osdep: rename polldev to poll_wrapperDudemanguy2023-10-101-7/+0
| | | | | | | Originally, this was added as purely a shim for macOS. However since we want to do high resolution polling which is not neccesarily available on all platforms, making this a generic wrapper for poll functions is useful so rename it.
* osdep: remove erroneous POLLERR emulationNRK2023-06-291-1/+1
| | | | | | | | | | | | first of all, POLLERR is supposed to be ignored in `.events` and only returned in `.revents`. secondly select()'s exceptfds does not have a 1:1 correspondence with POLLERR. thankfully, the only caller of this function (in terminal-unix) never set the POLLERR flag so the errorfds were unused anyways. so go ahead and remove it entirely instead of pretending we can emulate something that's not possible.
* osdep: add poll shim for macOSDrew DeVault2017-12-091-0/+7
This implements a poll-compatible interface, backed by select on macOS, suitable for polling on device files - which are not supported by macOS's implementation of poll. This is a (long-standing) bug in macOS, so hopefully we can eventually remove this shim.