Home
last modified time | relevance | path

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

/freebsd-12.1/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()
529 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.ac587 int epfd;
589 epfd = epoll_create(256);
590 exit (epfd == -1 ? 1 : 0);
H A Dconfigure14576 int epfd;
14578 epfd = epoll_create(256);
14579 exit (epfd == -1 ? 1 : 0);
/freebsd-12.1/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()
530 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.ac581 int epfd;
583 epfd = epoll_create(256);
584 exit (epfd == -1 ? 1 : 0);
H A Dconfigure14559 int epfd;
14561 epfd = epoll_create(256);
14562 exit (epfd == -1 ? 1 : 0);
/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors.cc1813 if (epfd >= 0) in TSAN_INTERCEPTOR()
1814 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
1815 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR()
1818 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR()
1825 if (epfd >= 0) in TSAN_INTERCEPTOR()
1826 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
1828 if (res > 0 && epfd >= 0) in TSAN_INTERCEPTOR()
1829 FdAcquire(thr, pc, epfd); in TSAN_INTERCEPTOR()
1836 if (epfd >= 0) in TSAN_INTERCEPTOR()
1837 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR()
[all …]
/freebsd-12.1/sys/compat/linux/
H A Dlinux_event.c464 error = fget(td, args->epfd, in linux_epoll_ctl()
507 error = kqfd_register(args->epfd, &kev[0], td, M_WAITOK); in linux_epoll_ctl()
542 linux_epoll_wait_common(struct thread *td, int epfd, struct epoll_event *events, in linux_epoll_wait_common() argument
558 error = fget(td, epfd, in linux_epoll_wait_common()
626 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_wait()
648 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_pwait()
/freebsd-12.1/contrib/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1210 #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 …]
/freebsd-12.1/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-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc856 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()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1936 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {}
1938 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) {
1944 PRE_SYSCALL(epoll_wait)(long epfd, void *events, long maxevents, long timeout) {
1947 POST_SYSCALL(epoll_wait)(long res, long epfd, void *events, long maxevents,
1954 PRE_SYSCALL(epoll_pwait)(long epfd, void *events, long maxevents, long timeout,
1959 POST_SYSCALL(epoll_pwait)(long res, long epfd, void *events, long maxevents,
/freebsd-12.1/sys/amd64/linux/
H A Dlinux_systrace_args.c1657 iarg[0] = p->epfd; /* l_int */ in systrace_args()
1667 iarg[0] = p->epfd; /* l_int */ in systrace_args()
2006 iarg[0] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h751 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
757 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
958 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
/freebsd-12.1/sys/amd64/linux32/
H A Dlinux32_systrace_args.c1688 iarg[0] = p->epfd; /* l_int */ in systrace_args()
1698 iarg[0] = p->epfd; /* l_int */ in systrace_args()
2147 iarg[0] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux32_proto.h773 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
779 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
1038 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
/freebsd-12.1/sys/i386/linux/
H A Dlinux_systrace_args.c1738 iarg[0] = p->epfd; /* l_int */ in systrace_args()
1748 iarg[0] = p->epfd; /* l_int */ in systrace_args()
2223 iarg[0] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h777 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
783 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
/freebsd-12.1/sys/arm64/linux/
H A Dlinux_systrace_args.c106 iarg[0] = p->epfd; /* l_int */ in systrace_args()
116 iarg[0] = p->epfd; /* l_int */ in systrace_args()
H A Dlinux_proto.h89 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member
95 char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)]; member