/netbsd/tests/kernel/ |
H A D | t_epoll.c | 92 int epfd; in ATF_TC_BODY() local 95 RL(epfd = epoll_create1(0)); in ATF_TC_BODY() 112 int epfd, fd; in ATF_TC_BODY() local 115 RL(epfd = epoll_create1(0)); in ATF_TC_BODY() 135 int epfd, fd; in ATF_TC_BODY() local 138 RL(epfd = epoll_create1(0)); in ATF_TC_BODY() 160 int epfd; in ATF_TC_BODY() local 163 RL(epfd = epoll_create1(0)); in ATF_TC_BODY() 164 ATF_REQUIRE_EQ_MSG(epoll_ctl(epfd, EPOLL_CTL_ADD, epfd, &event), -1, in ATF_TC_BODY() 198 int epfd, tmp; in ATF_TC_BODY() local [all …]
|
/netbsd/sys/kern/ |
H A D | sys_epoll.c | 68 int epfd; member 135 kevent->kext_epfd = epfd; in epoll_to_kevent() 143 kevent->kext_epfd = epfd; in epoll_to_kevent() 268 epfp = fd_getfile(epfd); in epoll_ctl_common() 273 fd_putfile(epfd); in epoll_ctl_common() 298 if (epfd == fd) { in epoll_ctl_common() 401 epfp = fd_getfile(epfd); in epoll_wait_common() 406 fd_putfile(epfd); in epoll_wait_common() 575 edges[nedges_so_far].epfd = in epoll_recover_watch_tree() 620 if (edges[i].epfd != currfd) in epoll_dfs() [all …]
|
/netbsd/external/bsd/ntp/dist/sntp/libevent/ |
H A D | epoll.c | 91 int epfd; member 145 int epfd = -1; in epoll_init() local 150 epfd = epoll_create1(EPOLL_CLOEXEC); in epoll_init() 152 if (epfd == -1) { in epoll_init() 155 if ((epfd = epoll_create(32000)) == -1) { in epoll_init() 160 evutil_make_socket_closeonexec(epfd); in epoll_init() 164 close(epfd); in epoll_init() 168 epollop->epfd = epfd; in epoll_init() 174 close(epfd); in epoll_init() 532 if (epollop->epfd >= 0) in epoll_dealloc() [all …]
|
H A D | epoll_sub.c | 54 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) in epoll_ctl() argument 57 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 61 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 64 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 66 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
H A D | configure.ac | 581 int epfd; 583 epfd = epoll_create(256); 584 exit (epfd == -1 ? 1 : 0);
|
/netbsd/external/bsd/libevent/dist/ |
H A D | epoll.c | 92 int epfd; member 146 int epfd = -1; in epoll_init() local 151 epfd = epoll_create1(EPOLL_CLOEXEC); in epoll_init() 153 if (epfd == -1) { in epoll_init() 156 if ((epfd = epoll_create(32000)) == -1) { in epoll_init() 161 evutil_make_socket_closeonexec(epfd); in epoll_init() 165 close(epfd); in epoll_init() 169 epollop->epfd = epfd; in epoll_init() 175 close(epfd); in epoll_init() 537 if (epollop->epfd >= 0) in epoll_dealloc() [all …]
|
H A D | epoll_sub.c | 53 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) in epoll_ctl() argument 56 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 60 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 63 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 65 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
/netbsd/sys/sys/ |
H A D | epoll.h | 77 int epoll_ctl_common(struct lwp *l, register_t *retval, int epfd, int op, 79 int epoll_wait_common(struct lwp *l, register_t *retval, int epfd, 87 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); 88 int epoll_wait(int epfd, struct epoll_event *events, int maxevents, 90 int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, 92 int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents,
|
/netbsd/lib/libc/sys/ |
H A D | epoll.c | 50 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 52 return epoll_pwait(epfd, events, maxevents, timeout, NULL); in epoll_wait() 56 epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, in epoll_pwait() argument 68 return epoll_pwait2(epfd, events, maxevents, tsp, sigmask); in epoll_pwait()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_interceptors.cc | 1776 if (epfd >= 0) in TSAN_INTERCEPTOR() 1777 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1778 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 1781 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 1788 if (epfd >= 0) in TSAN_INTERCEPTOR() 1789 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1791 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR() 1792 FdAcquire(thr, pc, epfd); in TSAN_INTERCEPTOR() 1799 if (epfd >= 0) in TSAN_INTERCEPTOR() 1800 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_interceptors.cc | 1818 if (epfd >= 0) in TSAN_INTERCEPTOR() 1819 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1820 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 1823 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 1830 if (epfd >= 0) in TSAN_INTERCEPTOR() 1831 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1833 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR() 1834 FdAcquire(thr, pc, epfd); in TSAN_INTERCEPTOR() 1841 if (epfd >= 0) in TSAN_INTERCEPTOR() 1842 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_interceptors.cc | 1776 if (epfd >= 0) in TSAN_INTERCEPTOR() 1777 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1778 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 1781 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 1788 if (epfd >= 0) in TSAN_INTERCEPTOR() 1789 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1791 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR() 1792 FdAcquire(thr, pc, epfd); in TSAN_INTERCEPTOR() 1799 if (epfd >= 0) in TSAN_INTERCEPTOR() 1800 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() [all …]
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_misc.c | 1769 return epoll_ctl_common(l, retval, SCARG(uap, epfd), SCARG(uap, op), in linux_sys_epoll_ctl() 1789 SCARG(&ea, epfd) = SCARG(uap, epfd); in linux_sys_epoll_wait() 1804 linux_epoll_pwait2_common(struct lwp *l, register_t *retval, int epfd, in linux_epoll_pwait2_common() argument 1836 error = epoll_wait_common(l, retval, epfd, eep, maxevents, tsp, in linux_epoll_pwait2_common() 1881 return linux_epoll_pwait2_common(l, retval, SCARG(uap, epfd), in linux_sys_epoll_pwait() 1913 return linux_epoll_pwait2_common(l, retval, SCARG(uap, epfd), in linux_sys_epoll_pwait2()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1208 #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event) \ argument 1209 __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \ 1211 #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \ argument 1212 __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events), \ 1214 #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents, \ argument 1223 #define __sanitizer_syscall_post_epoll_pwait(res, epfd, events, maxevents, \ argument 1226 res, (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ 2685 void __sanitizer_syscall_pre_impl_epoll_ctl(long epfd, long op, long fd, 2687 void __sanitizer_syscall_post_impl_epoll_ctl(long res, long epfd, long op, 2689 void __sanitizer_syscall_pre_impl_epoll_wait(long epfd, long events, [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1210 #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event) \ argument 1211 __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \ 1213 #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \ argument 1214 __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events), \ 1216 #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents, \ argument 1225 #define __sanitizer_syscall_post_epoll_pwait(res, epfd, events, maxevents, \ argument 1228 res, (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ 2687 void __sanitizer_syscall_pre_impl_epoll_ctl(long epfd, long op, long fd, 2689 void __sanitizer_syscall_post_impl_epoll_ctl(long res, long epfd, long op, 2691 void __sanitizer_syscall_pre_impl_epoll_wait(long epfd, long events, [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1208 #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event) \ argument 1209 __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \ 1211 #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \ argument 1212 __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events), \ 1214 #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents, \ argument 1223 #define __sanitizer_syscall_post_epoll_pwait(res, epfd, events, maxevents, \ argument 1226 res, (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ 2685 void __sanitizer_syscall_pre_impl_epoll_ctl(long epfd, long op, long fd, 2687 void __sanitizer_syscall_post_impl_epoll_ctl(long res, long epfd, long op, 2689 void __sanitizer_syscall_pre_impl_epoll_wait(long epfd, long events, [all …]
|
/netbsd/sys/compat/linux/arch/powerpc/ |
H A D | linux_syscallargs.h | 863 syscallarg(int) epfd; 871 syscallarg(int) epfd; 1054 syscallarg(int) epfd; 1197 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/amd64/ |
H A D | linux_syscallargs.h | 929 syscallarg(int) epfd; 937 syscallarg(int) epfd; 1055 syscallarg(int) epfd; 1196 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/i386/ |
H A D | linux_syscallargs.h | 972 syscallarg(int) epfd; 980 syscallarg(int) epfd; 1168 syscallarg(int) epfd; 1292 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/m68k/ |
H A D | linux_syscallargs.h | 919 syscallarg(int) epfd; 927 syscallarg(int) epfd; 1129 syscallarg(int) epfd; 1272 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/mips/ |
H A D | linux_syscallargs.h | 966 syscallarg(int) epfd; 974 syscallarg(int) epfd; 1167 syscallarg(int) epfd; 1316 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/alpha/ |
H A D | linux_syscallargs.h | 959 syscallarg(int) epfd; 967 syscallarg(int) epfd; 1157 syscallarg(int) epfd; 1298 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/arm/ |
H A D | linux_syscallargs.h | 925 syscallarg(int) epfd; 933 syscallarg(int) epfd; 1121 syscallarg(int) epfd; 1274 syscallarg(int) epfd;
|
/netbsd/sys/compat/linux/arch/aarch64/ |
H A D | linux_syscallargs.h | 141 syscallarg(int) epfd; 149 syscallarg(int) epfd; 1030 syscallarg(int) epfd;
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/msan/ |
H A D | msan_interceptors.cc | 856 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 859 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() 871 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 874 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
|