Lines Matching defs:epfd
1812 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) {
1813 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev);
1814 if (epfd >= 0)
1815 FdAccess(thr, pc, epfd);
1816 if (epfd >= 0 && fd >= 0)
1818 if (op == EPOLL_CTL_ADD && epfd >= 0)
1819 FdRelease(thr, pc, epfd);
1820 int res = REAL(epoll_ctl)(epfd, op, fd, ev);
1824 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) {
1825 SCOPED_TSAN_INTERCEPTOR(epoll_wait, epfd, ev, cnt, timeout);
1826 if (epfd >= 0)
1827 FdAccess(thr, pc, epfd);
1828 int res = BLOCK_REAL(epoll_wait)(epfd, ev, cnt, timeout);
1829 if (res > 0 && epfd >= 0)
1830 FdAcquire(thr, pc, epfd);
1834 TSAN_INTERCEPTOR(int, epoll_pwait, int epfd, void *ev, int cnt, int timeout,
1836 SCOPED_TSAN_INTERCEPTOR(epoll_pwait, epfd, ev, cnt, timeout, sigmask);
1837 if (epfd >= 0)
1838 FdAccess(thr, pc, epfd);
1839 int res = BLOCK_REAL(epoll_pwait)(epfd, ev, cnt, timeout, sigmask);
1840 if (res > 0 && epfd >= 0)
1841 FdAcquire(thr, pc, epfd);