2017-12-09 14:41:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <poll.h>
|
|
|
|
|
|
|
|
// Behaves like poll(3) but works for device files on macOS.
|
2023-06-27 06:25:17 +00:00
|
|
|
// Only supports POLLIN and POLLOUT.
|
2017-12-09 14:41:09 +00:00
|
|
|
int polldev(struct pollfd fds[], nfds_t nfds, int timeout);
|