diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-08-16 10:54:06 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-08-16 10:54:06 +0000 |
commit | a1bc48d15a5d6e78efe744eb7b27b6421cb7222f (patch) | |
tree | a7880f87c2585311975e4087d36255c9f1f0b7ec /common/ppoll.h | |
parent | a23442be507d9384175898a28fb72c35f790fbd1 (diff) |
Convert to using ppoll() and pselect()
Diffstat (limited to 'common/ppoll.h')
-rw-r--r-- | common/ppoll.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/ppoll.h b/common/ppoll.h new file mode 100644 index 00000000..6d84a2e8 --- /dev/null +++ b/common/ppoll.h @@ -0,0 +1,5 @@ +static inline int ppoll(struct pollfd *fds, nfds_t nfds, + const struct timespec *timeout, const sigset_t *sigmask) +{ + return poll(fds, nfds, timeout ? timeout->tv_sec * 1000 : 500); +} |