From a1bc48d15a5d6e78efe744eb7b27b6421cb7222f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 16 Aug 2006 10:54:06 +0000 Subject: Convert to using ppoll() and pselect() --- common/ppoll.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 common/ppoll.h (limited to 'common/ppoll.h') 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); +} -- cgit