Lines Matching refs:tfd
146 long waittmr(int tfd, int timeo) in waittmr() argument
151 pfd.fd = tfd; in waittmr()
164 if (read(tfd, &ticks, sizeof(ticks)) != sizeof(ticks)) in waittmr()
175 int i, tfd; in main() local
198 if ((tfd = timerfd_create(clks[i].id, 0)) == -1) in main()
204 if (timerfd_settime(tfd, 0, &tmr, NULL)) in main()
211 ticks = waittmr(tfd, -1); in main()
224 if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &tmr, NULL)) in main()
231 ticks = waittmr(tfd, -1); in main()
243 if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &tmr, NULL)) in main()
251 if (timerfd_gettime(tfd, &tmr)) in main()
264 ticks = waittmr(tfd, -1); in main()
282 if (timerfd_settime(tfd, 0, &tmr, NULL)) in main()
288 fprintf(stderr, "timerfd = %d\n", tfd); in main()
292 ticks = waittmr(tfd, -1); in main()
300 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in main()
302 if (read(tfd, &uticks, sizeof(uticks)) > 0) in main()
310 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) & ~O_NONBLOCK); in main()
312 close(tfd); in main()