Home
last modified time | relevance | path

Searched refs:timerfd (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/dports/devel/libepoll-shim/epoll-shim-0.0.20210418/src/
H A Dtimerfd_ctx.c155 timerfd->force_cancel = true; in timerfd_ctx_realtime_change()
182 if (timerfd->force_cancel) { in timerfd_ctx_clear_force_cancel()
189 timerfd->force_cancel = false; in timerfd_ctx_clear_force_cancel()
279 ++timerfd->nr_expirations; in timerfd_ctx_update_to_current_time()
290 timerfd_ctx_disarm(timerfd); in timerfd_ctx_update_to_current_time()
440 *timerfd = (TimerFDCtx) { in timerfd_ctx_init()
451 (void)timerfd; in timerfd_ctx_terminate()
511 timerfd_ctx_disarm(timerfd); in timerfd_ctx_settime()
513 timerfd->is_abstime = false; in timerfd_ctx_settime()
553 timerfd->is_abstime = /**/ in timerfd_ctx_settime()
[all …]
H A Dtimerfd.c26 TimerFDCtx *timerfd = &node->ctx.timerfd; in timerfd_ctx_read_or_block() local
30 ec = timerfd_ctx_read(timerfd, value); in timerfd_ctx_read_or_block()
41 .fd = timerfd->kq, in timerfd_ctx_read_or_block()
79 node->ctx.timerfd.clockid == CLOCK_REALTIME && in timerfd_close()
80 node->ctx.timerfd.is_abstime; in timerfd_close()
83 return timerfd_ctx_terminate(&node->ctx.timerfd); in timerfd_close()
90 timerfd_ctx_poll(&node->ctx.timerfd, revents); in timerfd_poll()
98 timerfd_ctx_realtime_change(&node->ctx.timerfd); in timerfd_realtime_change()
194 node->ctx.timerfd.is_abstime; in timerfd_settime_impl()
196 ec = timerfd_ctx_settime(&node->ctx.timerfd, in timerfd_settime_impl()
[all …]
H A Dtimerfd_ctx.h38 errno_t timerfd_ctx_init(TimerFDCtx *timerfd, int kq, int clockid);
39 errno_t timerfd_ctx_terminate(TimerFDCtx *timerfd);
41 errno_t timerfd_ctx_settime(TimerFDCtx *timerfd, /**/
44 errno_t timerfd_ctx_gettime(TimerFDCtx *timerfd, struct itimerspec *cur);
46 errno_t timerfd_ctx_read(TimerFDCtx *timerfd, uint64_t *value);
47 void timerfd_ctx_poll(TimerFDCtx *timerfd, uint32_t *revents);
50 void timerfd_ctx_realtime_change(TimerFDCtx *timerfd);
/dports/devel/libepoll-shim/epoll-shim-0.0.20210418/test/
H A Dtimerfd-test.c81 wait_for_timerfd(int timerfd) in wait_for_timerfd() argument
101 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
129 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
166 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
204 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
245 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
372 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
415 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
514 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
564 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY_FD_LEAKCHECK()
[all …]
/dports/www/libmicrohttpd/libmicrohttpd-0.9.74/src/examples/
H A Dsuspend_resume_epoll.c37 int timerfd; member
73 req->timerfd = -1; in ahc_echo()
78 if (-1 != req->timerfd) in ahc_echo()
93 req->timerfd = timerfd_create (CLOCK_MONOTONIC, TFD_NONBLOCK); in ahc_echo()
94 if (-1 == req->timerfd) in ahc_echo()
101 if (-1 == epoll_ctl (epfd, EPOLL_CTL_ADD, req->timerfd, &evt)) in ahc_echo()
110 if (-1 == timerfd_settime (req->timerfd, 0, &ts, NULL)) in ahc_echo()
131 if (-1 != req->timerfd) in connection_done()
132 if (0 != close (req->timerfd)) in connection_done()
195 if (-1 == read (req->timerfd, &timer_expirations, in main()
/dports/lang/ghc/ghc-8.10.7/rts/posix/itimer/
H A DPthread.c105 int timerfd = -1; in itimer_thread_func() local
113 timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); in itimer_thread_func()
114 if (timerfd == -1) { in itimer_thread_func()
118 fcntl(timerfd, F_SETFD, FD_CLOEXEC); in itimer_thread_func()
120 if (timerfd_settime(timerfd, 0, &it, NULL)) { in itimer_thread_func()
129 ssize_t r = read(timerfd, &nticks, sizeof(nticks)); in itimer_thread_func()
163 close(timerfd); in itimer_thread_func()
/dports/benchmarks/fio/fio-3.29/
H A Dhelper_thread.c23 static int timerfd = -1;
212 res = timerfd_settime(timerfd, 0, &delta, NULL);
214 FD_SET(timerfd, &rfds);
217 res = select(max(fd, timerfd) + 1, &rfds, NULL, &efds,
218 timerfd >= 0 ? NULL : &timeout);
226 if (timerfd >= 0 && FD_ISSET(timerfd, &rfds)) {
227 res = read(timerfd, &exp, sizeof(exp));
301 assert(timerfd >= 0);
350 if (timerfd >= 0) {
351 close(timerfd);
[all …]
/dports/databases/percona56-server/percona-server-5.6.51-91.0/extra/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/net/ntp/ntp-4.2.8p15/sntp/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
423 if (epollop->timerfd >= 0) { in epoll_dispatch()
444 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
483 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
533 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/percona56-client/percona-server-5.6.51-91.0/extra/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/extra/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/ipc/chromium/src/third_party/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/ipc/chromium/src/third_party/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/percona57-server/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/percona57-client/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/www/firefox/firefox-99.0/ipc/chromium/src/third_party/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/ipc/chromium/src/third_party/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/mysqlwsrep56-server/mysql-wsrep-wsrep_5.6.51-25.33/extra/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/mysql57-client/mysql-5.7.36/extra/libevent/libevent-2.1.11-stable/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
535 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/ipc/chromium/src/third_party/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/lib/monkey/mk_core/deps/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]
/dports/databases/mysql56-client/mysql-5.6.51/extra/libevent/
H A Depoll.c91 int timerfd; member
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
422 if (epollop->timerfd >= 0) { in epoll_dispatch()
443 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
482 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
532 if (epollop->timerfd >= 0) in epoll_dealloc()
[all …]

12345678910>>...27