Lines Matching refs:fd_ep
321 static int fd_cmp_open_monitor(struct fd_cmp *fd_cmp, int fd, int fd_ep) in fd_cmp_open_monitor() argument
327 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd, &ep) < 0) { in fd_cmp_open_monitor()
336 const char *fn, int fd, int fd_ep) in fd_cmp_open_std() argument
348 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd, &ep) < 0) { in fd_cmp_open_std()
360 int fd_ep) in fd_cmp_open() argument
373 err = fd_cmp_open_monitor(fd_cmp, fd, fd_ep); in fd_cmp_open()
377 err = fd_cmp_open_std(fd_cmp, fn, fd, fd_ep); in fd_cmp_open()
381 err = fd_cmp_open_std(fd_cmp, fn, fd, fd_ep); in fd_cmp_open()
413 static void fd_cmp_delete_ep(struct fd_cmp *fd_cmp, int fd_ep) in fd_cmp_delete_ep() argument
415 if (epoll_ctl(fd_ep, EPOLL_CTL_DEL, fd_cmp->fd, NULL) < 0) { in fd_cmp_delete_ep()
575 int err, fd_ep; in test_run_parent_check_outputs() local
582 fd_ep = epoll_create1(EPOLL_CLOEXEC); in test_run_parent_check_outputs()
583 if (fd_ep < 0) { in test_run_parent_check_outputs()
590 FD_CMP_OUT, t->output.out, fdout, fd_ep); in test_run_parent_check_outputs()
598 FD_CMP_ERR, t->output.err, fderr, fd_ep); in test_run_parent_check_outputs()
604 err = fd_cmp_open(&fd_cmp_monitor, FD_CMP_MONITOR, NULL, fdmonitor, fd_ep); in test_run_parent_check_outputs()
621 fdcount = epoll_wait(fd_ep, ev, 4, timeout); in test_run_parent_check_outputs()
649 fd_cmp_delete_ep(fd_cmp, fd_ep); in test_run_parent_check_outputs()
668 close(fd_ep); in test_run_parent_check_outputs()