| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | epoll.c | 89 int epfd; member 143 int epfd = -1; in epoll_init() local 148 epfd = epoll_create1(EPOLL_CLOEXEC); in epoll_init() 150 if (epfd == -1) { in epoll_init() 153 if ((epfd = epoll_create(32000)) == -1) { in epoll_init() 158 evutil_make_socket_closeonexec(epfd); in epoll_init() 162 close(epfd); in epoll_init() 166 epollop->epfd = epfd; in epoll_init() 172 close(epfd); in epoll_init() 200 if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, fd, &epev) < 0) { in epoll_init() [all …]
|
| H A D | epoll_sub.c | 52 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) in epoll_ctl() argument 55 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 59 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
| H A D | configure.ac | 635 int epfd; 637 epfd = epoll_create(256); 638 return (epfd == -1 ? 1 : 0);
|
| /freebsd/contrib/libevent/ |
| H A D | epoll.c | 89 int epfd; member 143 int epfd = -1; in epoll_init() local 148 epfd = epoll_create1(EPOLL_CLOEXEC); in epoll_init() 150 if (epfd == -1) { in epoll_init() 153 if ((epfd = epoll_create(32000)) == -1) { in epoll_init() 158 evutil_make_socket_closeonexec(epfd); in epoll_init() 162 close(epfd); in epoll_init() 166 epollop->epfd = epfd; in epoll_init() 172 close(epfd); in epoll_init() 200 if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, fd, &epev) < 0) { in epoll_init() [all …]
|
| H A D | epoll_sub.c | 52 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) in epoll_ctl() argument 55 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 59 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
| H A D | configure.ac | 635 int epfd; 637 epfd = epoll_create(256); 638 return (epfd == -1 ? 1 : 0);
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_event.c | 302 error = fget(td, args->epfd, in linux_epoll_ctl() 370 linux_epoll_wait_ts(struct thread *td, int epfd, struct epoll_event *events, in linux_epoll_wait_ts() argument 385 error = fget(td, epfd, in linux_epoll_wait_ts() 432 linux_epoll_wait_common(struct thread *td, int epfd, struct epoll_event *events, in linux_epoll_wait_common() argument 450 return (linux_epoll_wait_ts(td, epfd, events, maxevents, tsp, uset)); in linux_epoll_wait_common() 459 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_wait() 475 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_pwait() 500 return (linux_epoll_wait_ts(td, args->epfd, args->events, in linux_epoll_pwait2_64() 524 return (linux_epoll_wait_ts(td, args->epfd, args->events, in linux_epoll_pwait2()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_posix.cpp | 2045 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) { in TSAN_INTERCEPTOR() argument 2046 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev); in TSAN_INTERCEPTOR() 2047 if (epfd >= 0) in TSAN_INTERCEPTOR() 2048 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 2049 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 2051 if (op == EPOLL_CTL_ADD && epfd >= 0) { in TSAN_INTERCEPTOR() 2052 FdPollAdd(thr, pc, epfd, fd); in TSAN_INTERCEPTOR() 2053 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 2055 int res = REAL(epoll_ctl)(epfd, op, fd, ev); in TSAN_INTERCEPTOR() 2059 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) { in TSAN_INTERCEPTOR() argument [all …]
|
| H A D | tsan_fd.cpp | 307 void FdPollAdd(ThreadState *thr, uptr pc, int epfd, int fd) { in FdPollAdd() argument 308 DPrintf("#%d: FdPollAdd(%d, %d)\n", thr->tid, epfd, fd); in FdPollAdd() 309 if (bogusfd(epfd) || bogusfd(fd)) in FdPollAdd() 321 FdDesc *epd = fddesc(thr, pc, epfd); in FdPollAdd()
|
| H A D | tsan_fd.h | 52 void FdPollAdd(ThreadState *thr, uptr pc, int epfd, int fd);
|
| /freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 1205 #define __sanitizer_syscall_pre_epoll_ctl(epfd, op, fd, event) \ argument 1206 __sanitizer_syscall_pre_impl_epoll_ctl((long)(epfd), (long)(op), (long)(fd), \ 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 1216 __sanitizer_syscall_post_impl_epoll_wait(res, (long)(epfd), (long)(events), \ 1218 #define __sanitizer_syscall_pre_epoll_pwait(epfd, events, maxevents, timeout, \ argument 1221 (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
| H A D | rtsan_test_interceptors_posix.cpp | 1584 epfd = epoll_create1(EPOLL_CLOEXEC); in SetUp() 1585 ASSERT_GE(epfd, 0); in SetUp() 1589 if (epfd >= 0) in TearDown() 1590 close(epfd); in TearDown() 1593 int GetEpollFd() { return epfd; } in GetEpollFd() 1596 int epfd = -1; member in EpollTest
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/ |
| H A D | rtsan_interceptors_posix.cpp | 1300 INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, argument 1303 return REAL(epoll_ctl)(epfd, op, fd, event); 1306 INTERCEPTOR(int, epoll_wait, int epfd, struct epoll_event *events, argument 1309 return REAL(epoll_wait)(epfd, events, maxevents, timeout); 1312 INTERCEPTOR(int, epoll_pwait, int epfd, struct epoll_event *events, argument 1315 return REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask);
|
| /freebsd/contrib/ofed/librdmacm/ |
| H A D | rsocket.c | 348 int epfd; member 602 rs->epfd = -1; in rs_alloc() 648 ret = fcntl(rs->epfd, F_SETFL, arg); in rs_set_nonblocking() 944 epoll_ctl(qp->rs->epfd, EPOLL_CTL_DEL, in ds_free_qp() 972 if (rs->epfd >= 0) in ds_free() 973 close(rs->epfd); in ds_free() 1089 rs->epfd = epoll_create(2); in ds_init() 1090 if (rs->epfd < 0) in ds_init() 1091 return rs->epfd; in ds_init() 1538 ret = epoll_ctl(rs->epfd, EPOLL_CTL_ADD, in ds_create_qp() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_syscalls.inc | 2110 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {} 2112 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) { 2120 (long epfd, void *events, long maxevents, long timeout) {} 2123 (long res, long epfd, void *events, long maxevents, long timeout) { 2125 COMMON_SYSCALL_FD_ACQUIRE(epfd); 2132 (long epfd, void *events, long maxevents, long timeout, 2139 (long res, long epfd, void *events, long maxevents, long timeout, 2142 COMMON_SYSCALL_FD_ACQUIRE(epfd); 2149 (long epfd, void *events, long maxevents, 2159 (long res, long epfd, void *events, long maxevents, [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_interceptors.cpp | 996 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 999 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() 1011 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 1014 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_custom.cpp | 1446 int __dfsw_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfsw_epoll_wait() argument 1450 int ret = epoll_wait(epfd, events, maxevents, timeout); in __dfsw_epoll_wait() 1458 int __dfso_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfso_epoll_wait() argument 1465 return __dfsw_epoll_wait(epfd, events, maxevents, timeout, epfd_label, in __dfso_epoll_wait()
|
| /freebsd/sys/amd64/linux/ |
| H A D | linux_systrace_args.c | 1761 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 1771 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 2162 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 2748 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
|
| H A D | linux_proto.h | 824 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 830 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1059 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1401 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
|
| /freebsd/sys/arm64/linux/ |
| H A D | linux_systrace_args.c | 160 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 170 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 2370 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
|
| H A D | linux_proto.h | 117 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 123 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1211 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
|
| /freebsd/sys/amd64/linux32/ |
| H A D | linux32_systrace_args.c | 1762 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 1772 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 2281 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 3264 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
|
| H A D | linux32_proto.h | 830 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 836 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1129 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1702 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_systrace_args.c | 1799 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 1809 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 2314 iarg[a++] = p->epfd; /* l_int */ in systrace_args() 3295 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
|
| H A D | linux_proto.h | 830 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 836 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1125 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member 1696 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
|