mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
5f3a7ebc35
It is similar to epoll_wait, with the difference the timeout has nanosecond resoluting by using struct timespec instead of int. Although Linux interface only provides 64 bit time_t support, old 32 bit interface is also provided (so keep in sync with current practice and to no force opt-in on 64 bit time_t). Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Florian Weimer <fweimer@redhat.com>
18 lines
392 B
C
18 lines
392 B
C
#ifndef _SYS_EPOLL_H
|
|
#include_next <sys/epoll.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
libc_hidden_proto (epoll_pwait)
|
|
#if __TIMESIZE == 64
|
|
# define __epoll_pwait2_time64 epoll_pwait2
|
|
#else
|
|
extern int __epoll_pwait2_time64 (int fd, struct epoll_event *ev, int maxev,
|
|
const struct __timespec64 *tmo,
|
|
const sigset_t *s);
|
|
libc_hidden_proto (__epoll_pwait2_time64)
|
|
#endif
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif
|