Lines Matching defs:epfd
1808 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) {
1809 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev);
1810 if (epfd >= 0)
1811 FdAccess(thr, pc, epfd);
1812 if (epfd >= 0 && fd >= 0)
1814 if (op == EPOLL_CTL_ADD && epfd >= 0)
1815 FdRelease(thr, pc, epfd);
1816 int res = REAL(epoll_ctl)(epfd, op, fd, ev);
1820 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) {
1821 SCOPED_TSAN_INTERCEPTOR(epoll_wait, epfd, ev, cnt, timeout);
1822 if (epfd >= 0)
1823 FdAccess(thr, pc, epfd);
1824 int res = BLOCK_REAL(epoll_wait)(epfd, ev, cnt, timeout);
1825 if (res > 0 && epfd >= 0)
1826 FdAcquire(thr, pc, epfd);
1830 TSAN_INTERCEPTOR(int, epoll_pwait, int epfd, void *ev, int cnt, int timeout,
1832 SCOPED_TSAN_INTERCEPTOR(epoll_pwait, epfd, ev, cnt, timeout, sigmask);
1833 if (epfd >= 0)
1834 FdAccess(thr, pc, epfd);
1835 int res = BLOCK_REAL(epoll_pwait)(epfd, ev, cnt, timeout, sigmask);
1836 if (res > 0 && epfd >= 0)
1837 FdAcquire(thr, pc, epfd);