summaryrefslogtreecommitdiffstats
path: root/osdep/polldev.h
blob: 50b6db29bcaa5e7c3a80555f9db228aced6afbc1 (plain)
1
2
3
4
5
6
7
#pragma once

#include <poll.h>

// Behaves like poll(3) but works for device files on macOS.
// Only supports POLLIN, POLLOUT, and POLLERR.
int polldev(struct pollfd fds[], nfds_t nfds, int timeout);