summaryrefslogtreecommitdiffstats
path: root/osdep/polldev.h
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-06-27 12:25:17 +0600
committersfan5 <sfan5@live.de>2023-06-29 13:17:56 +0200
commita61b784d90148bcd0e8e9c366dcc563c81c74026 (patch)
tree1ae29ffb53afd413f161f89470e2c5dc3af08cea /osdep/polldev.h
parent7ad76095417d1022aa4ba3c9a806ebb82004cbc4 (diff)
downloadmpv-a61b784d90148bcd0e8e9c366dcc563c81c74026.tar.bz2
mpv-a61b784d90148bcd0e8e9c366dcc563c81c74026.tar.xz
osdep: remove erroneous POLLERR emulation
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.
Diffstat (limited to 'osdep/polldev.h')
-rw-r--r--osdep/polldev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/polldev.h b/osdep/polldev.h
index 50b6db29bc..8593c1e77c 100644
--- a/osdep/polldev.h
+++ b/osdep/polldev.h
@@ -3,5 +3,5 @@
#include <poll.h>
// Behaves like poll(3) but works for device files on macOS.
-// Only supports POLLIN, POLLOUT, and POLLERR.
+// Only supports POLLIN and POLLOUT.
int polldev(struct pollfd fds[], nfds_t nfds, int timeout);