line |
true |
false |
branch |
84
|
0 |
8 |
if (!nev) |
94
|
0 |
8 |
| (nev & EV_WRITE ? EPOLLOUT : 0); |
96
|
0 |
8 |
if (ecb_expect_true (!epoll_ctl (backend_fd, oev && oldmask != nev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &ev))) |
|
0 |
0 |
if (ecb_expect_true (!epoll_ctl (backend_fd, oev && oldmask != nev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &ev))) |
|
8 |
0 |
if (ecb_expect_true (!epoll_ctl (backend_fd, oev && oldmask != nev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &ev))) |
99
|
0 |
0 |
if (ecb_expect_true (errno == ENOENT)) |
102
|
0 |
0 |
if (!nev) |
105
|
0 |
0 |
if (!epoll_ctl (backend_fd, EPOLL_CTL_ADD, fd, &ev)) |
108
|
0 |
0 |
else if (ecb_expect_true (errno == EEXIST)) |
112
|
0 |
0 |
if (oldmask == nev) |
115
|
0 |
0 |
if (!epoll_ctl (backend_fd, EPOLL_CTL_MOD, fd, &ev)) |
118
|
0 |
0 |
else if (ecb_expect_true (errno == EPERM)) |
125
|
0 |
0 |
if (!(oldmask & EV_EMASK_EPERM)) |
127
|
0 |
0 |
array_needsize (int, epoll_eperms, epoll_epermmax, epoll_epermcnt + 1, array_needsize_noinit); |
149
|
0 |
19 |
if (ecb_expect_false (epoll_epermcnt)) |
154
|
0 |
19 |
EV_RELEASE_CB; |
156
|
0 |
19 |
EV_ACQUIRE_CB; |
158
|
0 |
19 |
if (ecb_expect_false (eventcnt < 0)) |
160
|
0 |
0 |
if (errno != EINTR) |
166
|
1 |
19 |
for (i = 0; i < eventcnt; ++i) |
172
|
0 |
1 |
int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) |
181
|
0 |
1 |
if (ecb_expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) |
188
|
0 |
1 |
if (ecb_expect_false (got & ~want)) |
204
|
0 |
0 |
| (want & EV_WRITE ? EPOLLOUT : 0); |
208
|
0 |
0 |
if (epoll_ctl (backend_fd, want ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, ev)) |
|
0 |
0 |
if (epoll_ctl (backend_fd, want ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, ev)) |
219
|
0 |
19 |
if (ecb_expect_false (eventcnt == epoll_eventmax)) |
227
|
0 |
19 |
for (i = epoll_epermcnt; i--; ) |
232
|
0 |
0 |
if (anfds [fd].emask & EV_EMASK_EPERM && events) |
|
0 |
0 |
if (anfds [fd].emask & EV_EMASK_EPERM && events) |
250
|
0 |
7 |
if (fd < 0 && (errno == EINVAL || errno == ENOSYS)) |
|
0 |
0 |
if (fd < 0 && (errno == EINVAL || errno == ENOSYS)) |
|
0 |
0 |
if (fd < 0 && (errno == EINVAL || errno == ENOSYS)) |
255
|
0 |
0 |
if (fd >= 0) |
266
|
0 |
7 |
if ((backend_fd = epoll_epoll_create ()) < 0) |
293
|
0 |
0 |
while ((backend_fd = epoll_epoll_create ()) < 0) |