Home | History | Annotate | Download | only in epoll_ctl

Lines Matching refs:epfd

21  * 1) epoll_ctl(2) fails if epfd is a invalid file descriptor.
24 * 4) epoll_ctl(2) fails if fd is the same as epfd.
47 static int epfd;
64 {&epfd, EPOLL_CTL_ADD, &inv, &events[1], EBADF},
65 {&epfd, -1, &fd[1], &events[1], EINVAL},
66 {&epfd, EPOLL_CTL_ADD, &epfd, &events[1], EINVAL},
67 {&epfd, EPOLL_CTL_DEL, &fd[1], &events[1], ENOENT},
68 {&epfd, EPOLL_CTL_MOD, &fd[1], &events[1], ENOENT},
69 {&epfd, EPOLL_CTL_ADD, &fd[0], &events[0], EEXIST}
74 epfd = epoll_create(2);
75 if (epfd == -1)
83 TEST(epoll_ctl(epfd, EPOLL_CTL_ADD, fd[0], &events[0]));
90 if (epfd)
91 SAFE_CLOSE(epfd);