| line |
true |
false |
branch |
|
1958
|
0 |
35 |
if (uname (&buf)) |
|
1961
|
105 |
35 |
for (i = 3+1; --i; ) |
|
1967
|
105 |
105 |
if (*p >= '0' && *p <= '9') |
|
|
105 |
0 |
if (*p >= '0' && *p <= '9') |
|
2009
|
0 |
0 |
if (!msg) |
|
2012
|
0 |
0 |
if (syserr_cb) |
|
2038
|
54 |
46 |
if (size) |
|
2059
|
46 |
54 |
if (!ptr && size) |
|
|
0 |
46 |
if (!ptr && size) |
|
2199
|
45 |
0 |
if (ecb_expect_true (have_monotonic)) |
|
2221
|
0 |
0 |
if (delay > EV_TS_CONST (0.)) |
|
2257
|
16 |
45 |
while (cnt > ncur); |
|
2260
|
0 |
45 |
if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4) |
|
2322
|
0 |
34 |
if (ecb_expect_false (w_->pending)) |
|
2327
|
15 |
19 |
array_needsize (ANPENDING, pendings [pri], pendingmax [pri], w_->pending, array_needsize_noinit); |
|
2338
|
3 |
2 |
array_needsize (W, rfeeds, rfeedmax, rfeedcnt + 1, array_needsize_noinit); |
|
2347
|
2 |
3 |
while (rfeedcnt); |
|
2355
|
5 |
5 |
for (i = 0; i < eventcnt; ++i) |
|
2367
|
1 |
1 |
for (w = (ev_io *)anfd->head; w; w = (ev_io *)((WL)w)->next) |
|
2371
|
1 |
0 |
if (ev) |
|
2383
|
1 |
0 |
if (ecb_expect_true (!anfd->reify)) |
|
2390
|
0 |
0 |
if (fd >= 0 && fd < anfdmax) |
|
|
0 |
0 |
if (fd >= 0 && fd < anfdmax) |
|
2438
|
8 |
19 |
for (i = 0; i < changecnt; ++i) |
|
2453
|
8 |
8 |
for (w = (ev_io *)anfd->head; w; w = (ev_io *)((WL)w)->next) |
|
2456
|
8 |
0 |
if (o_events != anfd->events) |
|
2460
|
8 |
0 |
if (o_reify & EV__IOFDSET) |
|
2468
|
0 |
19 |
if (ecb_expect_false (fdchangecnt != changecnt)) |
|
2482
|
8 |
0 |
if (ecb_expect_true (!reify)) |
|
2485
|
7 |
1 |
array_needsize (int, fdchanges, fdchangemax, fdchangecnt, array_needsize_noinit); |
|
2496
|
0 |
0 |
while ((w = (ev_io *)anfds [fd].head)) |
|
2521
|
0 |
0 |
for (fd = 0; fd < anfdmax; ++fd) |
|
2522
|
0 |
0 |
if (anfds [fd].events) |
|
2523
|
0 |
0 |
if (!fd_valid (fd) && errno == EBADF) |
|
|
0 |
0 |
if (!fd_valid (fd) && errno == EBADF) |
|
2534
|
0 |
0 |
for (fd = anfdmax; fd--; ) |
|
2535
|
0 |
0 |
if (anfds [fd].events) |
|
2549
|
0 |
0 |
for (fd = 0; fd < anfdmax; ++fd) |
|
2550
|
0 |
0 |
if (anfds [fd].events) |
|
2607
|
0 |
6 |
if (ecb_expect_true (pos + DHEAP - 1 < E)) |
|
2610
|
0 |
0 |
if ( minat > ANHE_at (pos [1])) (minpos = pos + 1), (minat = ANHE_at (*minpos)); |
|
2611
|
0 |
0 |
if ( minat > ANHE_at (pos [2])) (minpos = pos + 2), (minat = ANHE_at (*minpos)); |
|
2612
|
0 |
0 |
if ( minat > ANHE_at (pos [3])) (minpos = pos + 3), (minat = ANHE_at (*minpos)); |
|
2614
|
3 |
3 |
else if (pos < E) |
|
2617
|
0 |
3 |
if (pos + 1 < E && minat > ANHE_at (pos [1])) (minpos = pos + 1), (minat = ANHE_at (*minpos)); |
|
|
0 |
0 |
if (pos + 1 < E && minat > ANHE_at (pos [1])) (minpos = pos + 1), (minat = ANHE_at (*minpos)); |
|
2618
|
0 |
3 |
if (pos + 2 < E && minat > ANHE_at (pos [2])) (minpos = pos + 2), (minat = ANHE_at (*minpos)); |
|
|
0 |
0 |
if (pos + 2 < E && minat > ANHE_at (pos [2])) (minpos = pos + 2), (minat = ANHE_at (*minpos)); |
|
2619
|
0 |
3 |
if (pos + 3 < E && minat > ANHE_at (pos [3])) (minpos = pos + 3), (minat = ANHE_at (*minpos)); |
|
|
0 |
0 |
if (pos + 3 < E && minat > ANHE_at (pos [3])) (minpos = pos + 3), (minat = ANHE_at (*minpos)); |
|
2624
|
2 |
1 |
if (ANHE_at (he) <= minat) |
|
2683
|
6 |
2 |
if (UPHEAP_DONE (p, k) || ANHE_at (heap [p]) <= ANHE_at (he)) |
|
|
0 |
6 |
if (UPHEAP_DONE (p, k) || ANHE_at (heap [p]) <= ANHE_at (he)) |
|
2699
|
0 |
4 |
if (k > HEAP0 && ANHE_at (heap [k]) <= ANHE_at (heap [HPARENT (k)])) |
|
|
0 |
0 |
if (k > HEAP0 && ANHE_at (heap [k]) <= ANHE_at (heap [HPARENT (k)])) |
|
2713
|
0 |
0 |
for (i = 0; i < N; ++i) |
|
2739
|
7 |
11 |
if (!ev_is_active (&pipe_w)) |
|
2746
|
0 |
7 |
if (fds [1] < 0 && errno == EINVAL) |
|
|
0 |
0 |
if (fds [1] < 0 && errno == EINVAL) |
|
2749
|
0 |
7 |
if (fds [1] < 0) |
|
2752
|
0 |
0 |
while (pipe (fds)) |
|
2760
|
7 |
0 |
if (evpipe [1] < 0) |
|
2775
|
7 |
0 |
ev_io_set (&pipe_w, evpipe [0] < 0 ? evpipe [1] : evpipe [0], EV_READ); |
|
2786
|
4 |
10 |
if (ecb_expect_true (*flag)) |
|
2796
|
0 |
10 |
if (pipe_write_wanted) |
|
2806
|
0 |
0 |
if (evpipe [0] < 0) |
|
2836
|
0 |
10 |
if (revents & EV_READ) |
|
2839
|
0 |
0 |
if (evpipe [0] < 0) |
|
2866
|
4 |
6 |
if (sig_pending) |
|
2872
|
256 |
4 |
for (i = EV_NSIG - 1; i--; ) |
|
2873
|
5 |
251 |
if (ecb_expect_false (signals [i].pending)) |
|
2879
|
6 |
4 |
if (async_pending) |
|
2885
|
18 |
6 |
for (i = asynccnt; i--; ) |
|
2886
|
6 |
12 |
if (asyncs [i]->sent) |
|
2906
|
0 |
4 |
if (!EV_A) |
|
2930
|
5 |
0 |
if (ecb_expect_false (signum <= 0 || signum >= EV_NSIG)) |
|
|
0 |
5 |
if (ecb_expect_false (signum <= 0 || signum >= EV_NSIG)) |
|
2939
|
1 |
4 |
if (ecb_expect_false (signals [signum].loop != EV_A)) |
|
2946
|
4 |
4 |
for (w = signals [signum].head; w; w = w->next) |
|
2961
|
0 |
0 |
for (sip = si; (char *)sip < (char *)si + res; ++sip) |
|
2964
|
0 |
0 |
if (res < (ssize_t)sizeof (si)) |
|
2988
|
0 |
0 |
int traced = WIFSTOPPED (status) || WIFCONTINUED (status); |
|
|
0 |
0 |
int traced = WIFSTOPPED (status) || WIFCONTINUED (status); |
|
2990
|
0 |
0 |
for (w = (ev_child *)childs [chain & ((EV_PID_HASHSIZE) - 1)]; w; w = (ev_child *)((WL)w)->next) |
|
2992
|
0 |
0 |
if ((w->pid == pid || !w->pid) |
|
|
0 |
0 |
if ((w->pid == pid || !w->pid) |
|
2993
|
0 |
0 |
&& (!traced || (w->flags & 1))) |
|
|
0 |
0 |
&& (!traced || (w->flags & 1))) |
|
3014
|
0 |
0 |
if (0 >= (pid = waitpid (-1, &status, WNOHANG | WUNTRACED | WCONTINUED))) |
|
3016
|
0 |
0 |
|| errno != EINVAL |
|
3017
|
0 |
0 |
|| 0 >= (pid = waitpid (-1, &status, WNOHANG | WUNTRACED))) |
|
3061
|
0 |
0 |
if (!ev_is_active (&timerfd_w)) |
|
3065
|
0 |
0 |
if (timerfd >= 0) |
|
3129
|
7 |
0 |
|| getgid () != getegid (); |
|
|
0 |
7 |
|| getgid () != getegid (); |
|
3143
|
17 |
0 |
if (EV_USE_IOURING && ev_linux_version () >= 0x050601) flags |= EVBACKEND_IOURING; /* 5.6.1+ */ |
|
3172
|
0 |
12 |
if (ev_linux_version () < 0x060100) /* disable it on linux < 6.1.0 */ |
|
3190
|
0 |
5 |
if (ev_linux_version () < 0x020620) /* disable it on linux < 2.6.32 */ |
|
3260
|
7 |
0 |
if (!backend) |
|
3275
|
5 |
2 |
if (!have_monotonic) |
|
3279
|
5 |
0 |
if (!clock_gettime (CLOCK_MONOTONIC, &ts)) |
|
3286
|
0 |
7 |
if (flags & EVFLAG_FORKCHECK) |
|
3290
|
7 |
0 |
if (!(flags & EVFLAG_NOENV) |
|
3291
|
7 |
0 |
&& !enable_secure () |
|
3292
|
0 |
7 |
&& getenv ("LIBEV_FLAGS")) |
|
3316
|
0 |
7 |
fs_fd = flags & EVFLAG_NOINOTIFY ? -1 : -2; |
|
3319
|
0 |
7 |
sigfd = flags & EVFLAG_SIGNALFD ? -2 : -1; |
|
3322
|
0 |
7 |
timerfd = flags & EVFLAG_NOTIMERFD ? -1 : -2; |
|
3325
|
7 |
0 |
if (!(flags & EVBACKEND_MASK)) |
|
3338
|
7 |
0 |
if (!backend && (flags & EVBACKEND_LINUXAIO)) backend = linuxaio_init (EV_A_ flags); |
|
|
0 |
7 |
if (!backend && (flags & EVBACKEND_LINUXAIO)) backend = linuxaio_init (EV_A_ flags); |
|
3341
|
7 |
0 |
if (!backend && (flags & EVBACKEND_EPOLL )) backend = epoll_init (EV_A_ flags); |
|
|
7 |
0 |
if (!backend && (flags & EVBACKEND_EPOLL )) backend = epoll_init (EV_A_ flags); |
|
3345
|
0 |
7 |
if (!backend && (flags & EVBACKEND_IOURING )) backend = iouring_init (EV_A_ flags); |
|
|
0 |
0 |
if (!backend && (flags & EVBACKEND_IOURING )) backend = iouring_init (EV_A_ flags); |
|
3348
|
0 |
7 |
if (!backend && (flags & EVBACKEND_POLL )) backend = poll_init (EV_A_ flags); |
|
|
0 |
0 |
if (!backend && (flags & EVBACKEND_POLL )) backend = poll_init (EV_A_ flags); |
|
3351
|
0 |
7 |
if (!backend && (flags & EVBACKEND_SELECT )) backend = select_init (EV_A_ flags); |
|
|
0 |
0 |
if (!backend && (flags & EVBACKEND_SELECT )) backend = select_init (EV_A_ flags); |
|
3372
|
0 |
2 |
if (!EV_A) |
|
3378
|
0 |
2 |
if (ecb_expect_false (cleanupcnt)) |
|
3386
|
0 |
2 |
if (ev_is_default_loop (EV_A) && ev_is_active (&childev)) |
|
|
0 |
0 |
if (ev_is_default_loop (EV_A) && ev_is_active (&childev)) |
|
3393
|
2 |
0 |
if (ev_is_active (&pipe_w)) |
|
3398
|
0 |
2 |
if (evpipe [0] >= 0) EV_WIN32_CLOSE_FD (evpipe [0]); |
|
3399
|
2 |
0 |
if (evpipe [1] >= 0) EV_WIN32_CLOSE_FD (evpipe [1]); |
|
3403
|
0 |
2 |
if (ev_is_active (&sigfd_w)) |
|
3408
|
0 |
2 |
if (ev_is_active (&timerfd_w)) |
|
3413
|
0 |
2 |
if (fs_fd >= 0) |
|
3417
|
2 |
0 |
if (backend_fd >= 0) |
|
3430
|
0 |
2 |
if (backend == EVBACKEND_IOURING ) iouring_destroy (EV_A); |
|
3433
|
0 |
2 |
if (backend == EVBACKEND_LINUXAIO) linuxaio_destroy (EV_A); |
|
3436
|
2 |
0 |
if (backend == EVBACKEND_EPOLL ) epoll_destroy (EV_A); |
|
3439
|
0 |
2 |
if (backend == EVBACKEND_POLL ) poll_destroy (EV_A); |
|
3442
|
0 |
2 |
if (backend == EVBACKEND_SELECT ) select_destroy (EV_A); |
|
3445
|
10 |
2 |
for (i = NUMPRI; i--; ) |
|
3477
|
0 |
2 |
if (ev_is_default_loop (EV_A)) |
|
3500
|
0 |
0 |
if (backend == EVBACKEND_IOURING ) iouring_fork (EV_A); |
|
3503
|
0 |
0 |
if (backend == EVBACKEND_LINUXAIO) linuxaio_fork (EV_A); |
|
3506
|
0 |
0 |
if (backend == EVBACKEND_EPOLL ) epoll_fork (EV_A); |
|
3512
|
0 |
0 |
if (postfork != 2) |
|
3519
|
0 |
0 |
if (ev_is_active (&timerfd_w)) |
|
3534
|
0 |
0 |
if (ev_is_active (&pipe_w)) |
|
3541
|
0 |
0 |
if (evpipe [0] >= 0) |
|
3565
|
2 |
0 |
if (ev_backend (EV_A)) |
|
3591
|
0 |
0 |
for (i = HEAP0; i < N + HEAP0; ++i) |
|
3605
|
0 |
0 |
while (cnt--) |
|
3624
|
0 |
0 |
for (i = 0; i < fdchangecnt; ++i) |
|
3628
|
0 |
0 |
for (i = 0; i < anfdmax; ++i) |
|
3632
|
0 |
0 |
for (w = w2 = anfds [i].head; w; w = w->next) |
|
3636
|
0 |
0 |
if (j++ & 1) |
|
3655
|
0 |
0 |
for (i = NUMPRI; i--; ) |
|
3708
|
5 |
0 |
if (!ev_default_loop_ptr) |
|
3718
|
5 |
0 |
if (ev_backend (EV_A)) |
|
3754
|
0 |
0 |
for (pri = NUMPRI; pri--; ) |
|
3771
|
34 |
150 |
while (pendingcnt [pendingpri]) |
|
3780
|
120 |
30 |
while (pendingpri); |
|
3789
|
5 |
14 |
if (ecb_expect_false (idleall)) |
|
3793
|
13 |
0 |
for (pri = NUMPRI; pri--; ) |
|
3795
|
0 |
13 |
if (pendingcnt [pri]) |
|
3798
|
5 |
8 |
if (idlecnt [pri]) |
|
3814
|
4 |
15 |
if (timercnt && ANHE_at (timers [HEAP0]) < mn_now) |
|
|
3 |
1 |
if (timercnt && ANHE_at (timers [HEAP0]) < mn_now) |
|
3823
|
1 |
4 |
if (w->repeat) |
|
3826
|
0 |
1 |
if (ev_at (w) < mn_now) |
|
3840
|
4 |
1 |
while (timercnt && ANHE_at (timers [HEAP0]) < mn_now); |
|
|
2 |
2 |
while (timercnt && ANHE_at (timers [HEAP0]) < mn_now); |
|
3852
|
0 |
0 |
ev_tstamp interval = w->interval > MIN_INTERVAL ? w->interval : MIN_INTERVAL; |
|
3856
|
0 |
0 |
while (at <= ev_rt_now) |
|
3861
|
0 |
0 |
if (ecb_expect_false (nat == at)) |
|
3879
|
0 |
19 |
while (periodiccnt && ANHE_at (periodics [HEAP0]) < ev_rt_now) |
|
|
0 |
0 |
while (periodiccnt && ANHE_at (periodics [HEAP0]) < ev_rt_now) |
|
3888
|
0 |
0 |
if (w->reschedule_cb) |
|
3897
|
0 |
0 |
else if (w->interval) |
|
3909
|
0 |
0 |
while (periodiccnt && ANHE_at (periodics [HEAP0]) < ev_rt_now); |
|
|
0 |
0 |
while (periodiccnt && ANHE_at (periodics [HEAP0]) < ev_rt_now); |
|
3924
|
0 |
0 |
for (i = HEAP0; i < periodiccnt + HEAP0; ++i) |
|
3928
|
0 |
0 |
if (w->reschedule_cb) |
|
3930
|
0 |
0 |
else if (w->interval) |
|
3947
|
0 |
0 |
for (i = 0; i < timercnt; ++i) |
|
3961
|
38 |
0 |
if (ecb_expect_true (have_monotonic)) |
|
3970
|
38 |
0 |
if (ecb_expect_true (mn_now - now_floor < EV_TS_CONST (MIN_TIMEJUMP * .5))) |
|
3987
|
0 |
0 |
for (i = 4; --i; ) |
|
3994
|
0 |
0 |
if (ecb_expect_true ((diff < EV_TS_CONST (0.) ? -diff : diff) < EV_TS_CONST (MIN_TIMEJUMP))) |
|
|
0 |
0 |
if (ecb_expect_true ((diff < EV_TS_CONST (0.) ? -diff : diff) < EV_TS_CONST (MIN_TIMEJUMP))) |
|
4013
|
0 |
0 |
if (ecb_expect_false (mn_now > ev_rt_now || ev_rt_now > mn_now + max_block + EV_TS_CONST (MIN_TIMEJUMP))) |
|
|
0 |
0 |
if (ecb_expect_false (mn_now > ev_rt_now || ev_rt_now > mn_now + max_block + EV_TS_CONST (MIN_TIMEJUMP))) |
|
4040
|
11 |
8 |
{ |
|
4046
|
0 |
19 |
if (ecb_expect_false (curpid)) /* penalise the forking check even more */ |
|
4047
|
0 |
0 |
if (ecb_expect_false (getpid () != curpid)) |
|
4056
|
0 |
19 |
if (ecb_expect_false (postfork)) |
|
4057
|
0 |
0 |
if (forkcnt) |
|
4066
|
0 |
19 |
if (ecb_expect_false (preparecnt)) |
|
4073
|
0 |
19 |
if (ecb_expect_false (loop_done)) |
|
4077
|
0 |
19 |
if (ecb_expect_false (postfork)) |
|
4099
|
17 |
2 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
|
12 |
5 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
|
12 |
7 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
|
11 |
1 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
|
11 |
8 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
|
3 |
8 |
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) |
|
4104
|
3 |
0 |
if (ecb_expect_true (have_monotonic)) |
|
4108
|
3 |
0 |
if (ecb_expect_true (timerfd != -1)) |
|
4119
|
3 |
0 |
if (timercnt) |
|
4122
|
3 |
0 |
if (waittime > to) waittime = to; |
|
4126
|
0 |
3 |
if (periodiccnt) |
|
4129
|
0 |
0 |
if (waittime > to) waittime = to; |
|
4134
|
1 |
2 |
if (ecb_expect_false (waittime < timeout_blocktime)) |
|
4142
|
1 |
2 |
if (ecb_expect_false (waittime < backend_mintime)) |
|
4145
|
1 |
0 |
: backend_mintime; |
|
4148
|
0 |
3 |
if (ecb_expect_false (io_blocktime)) |
|
4152
|
0 |
0 |
if (sleeptime > waittime - backend_mintime) |
|
4155
|
0 |
0 |
if (ecb_expect_true (sleeptime > EV_TS_CONST (0.))) |
|
4173
|
10 |
9 |
if (pipe_write_skipped) |
|
4196
|
0 |
19 |
if (ecb_expect_false (checkcnt)) |
|
4202
|
15 |
4 |
while (ecb_expect_true ( |
|
|
11 |
4 |
while (ecb_expect_true ( |
|
|
8 |
3 |
while (ecb_expect_true ( |
|
4208
|
4 |
7 |
if (loop_done == EVBREAK_ONE) |
|
4274
|
15 |
0 |
while (*head) |
|
4276
|
12 |
3 |
if (ecb_expect_true (*head == elem)) |
|
4290
|
1 |
47 |
if (w->pending) |
|
4303
|
1 |
0 |
if (ecb_expect_true (pending)) |
|
4346
|
0 |
8 |
if (ecb_expect_false (ev_is_active (w))) |
|
4358
|
7 |
1 |
array_needsize (ANFD, anfds, anfdmax, fd + 1, array_needsize_zerofill); |
|
4375
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
4397
|
0 |
8 |
if (ecb_expect_false (ev_is_active (w))) |
|
4408
|
4 |
4 |
array_needsize (ANHE, timers, timermax, ev_active (w) + 1, array_needsize_noinit); |
|
4423
|
4 |
8 |
if (ecb_expect_false (!ev_is_active (w))) |
|
4435
|
3 |
5 |
if (ecb_expect_true (active < timercnt + HEAP0)) |
|
4457
|
1 |
1 |
if (ev_is_active (w)) |
|
4459
|
1 |
0 |
if (w->repeat) |
|
4468
|
1 |
0 |
else if (w->repeat) |
|
4480
|
0 |
0 |
return ev_at (w) - (ev_is_active (w) ? mn_now : EV_TS_CONST (0.)); |
|
4488
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
4492
|
0 |
0 |
if (timerfd == -2) |
|
4496
|
0 |
0 |
if (w->reschedule_cb) |
|
4498
|
0 |
0 |
else if (w->interval) |
|
4510
|
0 |
0 |
array_needsize (ANHE, periodics, periodicmax, ev_active (w) + 1, array_needsize_noinit); |
|
4525
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
4537
|
0 |
0 |
if (ecb_expect_true (active < periodiccnt + HEAP0)) |
|
4569
|
0 |
15 |
if (ecb_expect_false (ev_is_active (w))) |
|
4585
|
0 |
15 |
if (sigfd == -2) |
|
4588
|
0 |
0 |
if (sigfd < 0 && errno == EINVAL) |
|
|
0 |
0 |
if (sigfd < 0 && errno == EINVAL) |
|
4591
|
0 |
0 |
if (sigfd >= 0) |
|
4604
|
0 |
15 |
if (sigfd >= 0) |
|
4617
|
12 |
3 |
if (!((WL)w)->next) |
|
4619
|
12 |
0 |
if (sigfd < 0) /*TODO*/ |
|
4636
|
0 |
12 |
if (origflags & EVFLAG_NOSIGMASK) |
|
4653
|
2 |
10 |
if (ecb_expect_false (!ev_is_active (w))) |
|
4661
|
7 |
3 |
if (!signals [w->signum - 1].head) |
|
4667
|
0 |
7 |
if (sigfd >= 0) |
|
4696
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
4711
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
4751
|
1 |
1 |
if (w->wd >= 0) |
|
4759
|
0 |
1 |
if (!fs_2625) |
|
4760
|
0 |
0 |
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL; |
|
4761
|
1 |
0 |
else if (!statfs (w->path, &sfs) |
|
4762
|
1 |
0 |
&& (sfs.f_type == 0x1373 /* devfs */ |
|
4763
|
1 |
0 |
|| sfs.f_type == 0x4006 /* fat */ |
|
4764
|
1 |
0 |
|| sfs.f_type == 0x4d44 /* msdos */ |
|
4765
|
1 |
0 |
|| sfs.f_type == 0xEF53 /* ext2/3 */ |
|
4766
|
1 |
0 |
|| sfs.f_type == 0x72b6 /* jffs2 */ |
|
4767
|
1 |
0 |
|| sfs.f_type == 0x858458f6 /* ramfs */ |
|
4768
|
1 |
0 |
|| sfs.f_type == 0x5346544e /* ntfs */ |
|
4769
|
1 |
0 |
|| sfs.f_type == 0x3153464a /* jfs */ |
|
4770
|
1 |
0 |
|| sfs.f_type == 0x9123683e /* btrfs */ |
|
4771
|
1 |
0 |
|| sfs.f_type == 0x52654973 /* reiser3 */ |
|
4772
|
1 |
0 |
|| sfs.f_type == 0x01021994 /* tmpfs */ |
|
4773
|
0 |
1 |
|| sfs.f_type == 0x58465342 /* xfs */)) |
|
4776
|
1 |
0 |
w->timer.repeat = w->interval ? w->interval : NFS_STAT_INTERVAL; /* remote, use reduced frequency */ |
|
4781
|
1 |
0 |
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL; |
|
4786
|
0 |
1 |
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096) |
|
|
0 |
0 |
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096) |
|
|
1 |
0 |
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096) |
|
4794
|
0 |
1 |
| (errno == EACCES ? IN_ATTRIB : IN_CREATE | IN_MOVED_TO); |
|
4798
|
1 |
0 |
if (!pend || pend == path) |
|
|
1 |
0 |
if (!pend || pend == path) |
|
4804
|
0 |
1 |
while (w->wd < 0 && (errno == ENOENT || errno == EACCES)); |
|
|
0 |
0 |
while (w->wd < 0 && (errno == ENOENT || errno == EACCES)); |
|
|
0 |
0 |
while (w->wd < 0 && (errno == ENOENT || errno == EACCES)); |
|
4808
|
2 |
0 |
if (w->wd >= 0) |
|
4812
|
1 |
1 |
if (ev_is_active (&w->timer)) ev_ref (EV_A); |
|
4814
|
2 |
0 |
if (ev_is_active (&w->timer)) ev_unref (EV_A); |
|
4824
|
0 |
2 |
if (wd < 0) |
|
4839
|
0 |
3 |
if (slot < 0) |
|
4841
|
0 |
0 |
for (slot = 0; slot < (EV_INOTIFY_HASHSIZE); ++slot) |
|
4847
|
1 |
3 |
for (w_ = fs_hash [slot & ((EV_INOTIFY_HASHSIZE) - 1)].head; w_; ) |
|
4852
|
0 |
1 |
if (w->wd == wd || wd == -1) |
|
|
0 |
0 |
if (w->wd == wd || wd == -1) |
|
4854
|
0 |
1 |
if (ev->mask & (IN_IGNORED | IN_UNMOUNT | IN_DELETE_SELF)) |
|
4874
|
3 |
1 |
for (ofs = 0; ofs < len; ) |
|
4889
|
0 |
1 |
if (ev_linux_version () < 0x020619) |
|
4900
|
1 |
0 |
if (fd >= 0) |
|
4909
|
0 |
1 |
if (fs_fd != -2) |
|
4918
|
1 |
0 |
if (fs_fd >= 0) |
|
4933
|
0 |
0 |
if (fs_fd < 0) |
|
4941
|
0 |
0 |
if (fs_fd >= 0) |
|
4949
|
0 |
0 |
for (slot = 0; slot < (EV_INOTIFY_HASHSIZE); ++slot) |
|
4954
|
0 |
0 |
while (w_) |
|
4961
|
0 |
0 |
if (fs_fd >= 0) |
|
4965
|
0 |
0 |
w->timer.repeat = w->interval ? w->interval : DEF_STAT_INTERVAL; |
|
4966
|
0 |
0 |
if (ev_is_active (&w->timer)) ev_ref (EV_A); |
|
4968
|
0 |
0 |
if (ev_is_active (&w->timer)) ev_unref (EV_A); |
|
4985
|
4 |
3 |
if (lstat (w->path, &w->attr) < 0) |
|
4987
|
0 |
3 |
else if (!w->attr.st_nlink) |
|
5002
|
2 |
0 |
prev.st_dev != w->attr.st_dev |
|
5003
|
2 |
0 |
|| prev.st_ino != w->attr.st_ino |
|
5004
|
2 |
0 |
|| prev.st_mode != w->attr.st_mode |
|
5005
|
1 |
1 |
|| prev.st_nlink != w->attr.st_nlink |
|
5006
|
1 |
0 |
|| prev.st_uid != w->attr.st_uid |
|
5007
|
1 |
0 |
|| prev.st_gid != w->attr.st_gid |
|
5008
|
1 |
0 |
|| prev.st_rdev != w->attr.st_rdev |
|
5009
|
1 |
0 |
|| prev.st_size != w->attr.st_size |
|
5010
|
1 |
0 |
|| prev.st_atime != w->attr.st_atime |
|
5011
|
1 |
0 |
|| prev.st_mtime != w->attr.st_mtime |
|
5012
|
0 |
1 |
|| prev.st_ctime != w->attr.st_ctime |
|
5020
|
1 |
0 |
if (fs_fd >= 0) |
|
5035
|
0 |
1 |
if (ecb_expect_false (ev_is_active (w))) |
|
5040
|
1 |
0 |
if (w->interval < MIN_STAT_INTERVAL && w->interval) |
|
|
1 |
0 |
if (w->interval < MIN_STAT_INTERVAL && w->interval) |
|
5043
|
1 |
0 |
ev_timer_init (&w->timer, stat_timer_cb, 0., w->interval ? w->interval : DEF_STAT_INTERVAL); |
|
5049
|
1 |
0 |
if (fs_fd >= 0) |
|
5067
|
0 |
1 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5076
|
1 |
0 |
if (ev_is_active (&w->timer)) |
|
5092
|
0 |
9 |
if (ecb_expect_false (ev_is_active (w))) |
|
5105
|
5 |
4 |
array_needsize (ev_idle *, idles [ABSPRI (w)], idlemax [ABSPRI (w)], active, array_needsize_noinit); |
|
5116
|
6 |
9 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5139
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
5145
|
0 |
0 |
array_needsize (ev_prepare *, prepares, preparemax, preparecnt, array_needsize_noinit); |
|
5155
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5177
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
5183
|
0 |
0 |
array_needsize (ev_check *, checks, checkmax, checkcnt, array_needsize_noinit); |
|
5193
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5224
|
0 |
0 |
if (ev_cb (w)) |
|
5238
|
0 |
0 |
while (fdchangecnt) |
|
5276
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
5310
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5331
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
5337
|
0 |
0 |
array_needsize (ev_fork *, forks, forkmax, forkcnt, array_needsize_noinit); |
|
5347
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5369
|
0 |
0 |
if (ecb_expect_false (ev_is_active (w))) |
|
5375
|
0 |
0 |
array_needsize (ev_cleanup *, cleanups, cleanupmax, cleanupcnt, array_needsize_noinit); |
|
5387
|
0 |
0 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5410
|
0 |
6 |
if (ecb_expect_false (ev_is_active (w))) |
|
5420
|
4 |
2 |
array_needsize (ev_async *, asyncs, asyncmax, asynccnt, array_needsize_noinit); |
|
5430
|
0 |
6 |
if (ecb_expect_false (!ev_is_active (w))) |
|
5503
|
0 |
0 |
if (fd >= 0) |
|
5510
|
0 |
0 |
if (timeout >= 0.) |