Home
last modified time | relevance | path

Searched refs:epfd (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/ntp/sntp/libevent/
H A Depoll.c89 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()
534 if (epollop->epfd >= 0) in epoll_dealloc()
[all …]
H A Depoll_sub.c52 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 Dconfigure.ac635 int epfd;
637 epfd = epoll_create(256);
638 return (epfd == -1 ? 1 : 0);
H A Dconfigure16115 int epfd;
16117 epfd = epoll_create(256);
16118 return (epfd == -1 ? 1 : 0);
/freebsd/contrib/libevent/
H A Depoll.c89 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()
534 if (epollop->epfd >= 0) in epoll_dealloc()
[all …]
H A Depoll_sub.c52 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 Dconfigure.ac635 int epfd;
637 epfd = epoll_create(256);
638 return (epfd == -1 ? 1 : 0);
H A Dconfigure14880 int epfd;
14882 epfd = epoll_create(256);
14883 return (epfd == -1 ? 1 : 0);
/freebsd/sys/compat/linux/
H A Dlinux_event.c302 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 Dtsan_interceptors_posix.cpp1959 if (epfd >= 0) in TSAN_INTERCEPTOR()
1960 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
1961 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR()
1973 if (epfd >= 0) in TSAN_INTERCEPTOR()
1974 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
1976 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR()
1984 if (epfd >= 0) in TSAN_INTERCEPTOR()
1985 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
1987 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR()
2005 if (epfd >= 0) in TSAN_INTERCEPTOR()
[all …]
H A Dtsan_fd.cpp307 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 Dtsan_fd.h52 void FdPollAdd(ThreadState *thr, uptr pc, int epfd, int fd);
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1205 #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
2695 void __sanitizer_syscall_pre_impl_epoll_ctl(long epfd, long op, long fd,
2697 void __sanitizer_syscall_post_impl_epoll_ctl(long res, long epfd, long op,
2699 void __sanitizer_syscall_pre_impl_epoll_wait(long epfd, long events,
2703 void __sanitizer_syscall_pre_impl_epoll_pwait(long epfd, long events,
2709 void __sanitizer_syscall_pre_impl_epoll_pwait2(long epfd, long events,
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Drsocket.c348 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 Dsanitizer_common_syscalls.inc2095 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {}
2097 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) {
2105 (long epfd, void *events, long maxevents, long timeout) {}
2108 (long res, long epfd, void *events, long maxevents, long timeout) {
2110 COMMON_SYSCALL_FD_ACQUIRE(epfd);
2117 (long epfd, void *events, long maxevents, long timeout,
2124 (long res, long epfd, void *events, long maxevents, long timeout,
2127 COMMON_SYSCALL_FD_ACQUIRE(epfd);
2134 (long epfd, void *events, long maxevents,
2144 (long res, long epfd, void *events, long maxevents,
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_interceptors.cpp970 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument
973 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR()
985 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument
988 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1443 int __dfsw_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfsw_epoll_wait() argument
1447 int ret = epoll_wait(epfd, events, maxevents, timeout); in __dfsw_epoll_wait()
1455 int __dfso_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfso_epoll_wait() argument
1462 return __dfsw_epoll_wait(epfd, events, maxevents, timeout, epfd_label, in __dfso_epoll_wait()
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c1760 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
1770 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
2154 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
2739 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h824 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
1056 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
1397 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c159 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
169 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
2361 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h117 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
1207 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c1798 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
1808 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
2306 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
3284 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h830 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
1122 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
1692 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
/freebsd/sys/amd64/linux32/
H A Dlinux32_systrace_args.c1761 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
1771 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
2273 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
3253 iarg[a++] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux32_proto.h830 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
1126 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
1698 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member