Home
last modified time | relevance | path

Searched refs:tfd (Results 1 - 10 of 10) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd01.c55 static void settime(int tfd, struct tst_its *tmr, int tflags, in settime() argument
63 if (tv->tfd_settime(tfd, tflags, tst_its_get(tmr), NULL)) in settime()
67 static void waittmr(int tfd, unsigned int exp_ticks) in waittmr() argument
72 pfd.fd = tfd; in waittmr()
83 SAFE_READ(0, tfd, &ticks, sizeof(ticks)); in waittmr()
96 int tfd; in run() local
104 tfd = SAFE_TIMERFD_CREATE(clks->id, 0); in run()
107 settime(tfd, &tmr, 0, 100 * 1000, 0); in run()
108 waittmr(tfd, 1); in run()
112 settime(tfd, in run()
[all...]
/third_party/toybox/toys/pending/
H A Dsyslogd.c238 struct logfile *tfd; in open_logfiles() local
240 for (tfd = TT.lfiles; tfd; tfd = tfd->next) { in open_logfiles()
244 if (*tfd->filename == '@') { // network in open_logfiles()
247 tmpfile = xstrdup(tfd->filename + 1); in open_logfiles()
254 error_exit("bad port in %s", tfd->filename); in open_logfiles()
264 memcpy(&tfd->saddr, info->ai_addr, info->ai_addrlen); in open_logfiles()
267 tfd in open_logfiles()
[all...]
H A Dcrontab.c252 int tfd = mkstemp(tname); in do_replace() local
254 if (tfd < 0) perror_exit("mkstemp"); in do_replace()
255 xsendfile(0, tfd); in do_replace()
256 xclose(tfd); in do_replace()
/third_party/curl/docs/examples/
H A Dephiperfifo.c85 int tfd; /* timer filedescriptor */ member
169 timerfd_settime(g->tfd, /* flags= */0, &its, NULL); in multi_timer_cb()
216 timerfd_settime(g->tfd, 0, &its, NULL); in event_cb()
227 err = read(g->tfd, &count, sizeof(uint64_t)); in timer_cb()
235 fprintf(MSG_OUT, "EAGAIN on tfd %d\n", g->tfd); in timer_cb()
240 fprintf(stderr, "read(tfd) == %ld", err); in timer_cb()
241 perror("read(tfd)"); in timer_cb()
484 g.tfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in main()
485 if(g.tfd in main()
[all...]
/third_party/backends/backend/
H A Ddc25.c132 static int tfd; /* Camera File Descriptor */ variable
420 if ((tfd = open (device, O_RDWR)) == -1) in init_dc20()
428 if (tcgetattr (tfd, &tty_orig) == -1) in init_dc20()
451 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1) in init_dc20()
457 if (send_pck (tfd, init_pck) == -1) in init_dc20()
473 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1) in init_dc20()
478 if (send_pck (tfd, init_pck) != -1) in init_dc20()
484 tcsetattr (tfd, TCSANOW, &tty_orig); in init_dc20()
497 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1) in init_dc20()
503 return tfd; in init_dc20()
[all...]
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg01.c265 int tfd; in setup_all() local
270 tfd = mkstemp(tmpsunpath); in setup_all()
271 SAFE_CLOSE(tfd); in setup_all()
397 int tfd; in sender() local
400 tfd = mkstemp(tmpfn); in sender()
401 if (tfd < 0) in sender()
409 *(int *)CMSG_DATA(control) = tfd; in sender()
422 SAFE_CLOSE(tfd); in sender()
/third_party/toybox/porting/liteos_a/toys/posix/
H A Dcp.c113 tfd = dirtree_parentfd(try); in cp_node() local
189 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
226 ? ((i = readlinkat0(tfd, try->name, toybuf, sizeof(toybuf))) && in cp_node()
239 fdin = openat(tfd, try->name, O_RDONLY); in cp_node()
319 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node()
/third_party/toybox/toys/posix/
H A Dcp.c129 tfd = dirtree_parentfd(try); in cp_node() local
216 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
253 ? ((i = readlinkat0(tfd, try->name, toybuf, sizeof(toybuf))) && in cp_node()
266 fdin = openat(tfd, try->name, O_RDONLY); in cp_node()
346 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node()
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
H A Dsendmsg01.c623 static int tfd; variable
631 tfd = mkstemp(tmpfilename); in setup4()
632 if (tfd < 0) { in setup4()
641 *(int *)CMSG_DATA(control) = tfd; in setup4()
648 close(tfd); in cleanup4()
649 tfd = -1; in cleanup4()
/third_party/python/Lib/idlelib/
H A Diomenu.py315 (tfd, tempfilename) = tempfile.mkstemp(prefix='IDLE_tmp_')
317 os.close(tfd)

Completed in 8 milliseconds