Home
last modified time | relevance | path

Searched refs:tfd (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c107 long waittmr(int tfd, int timeo) in waittmr() argument
112 pfd.fd = tfd; in waittmr()
123 if (read(tfd, &ticks, sizeof(ticks)) != sizeof(ticks)) { in waittmr()
135 int tfd; in main() local
164 if ((tfd = timerfd_create(clks[i].id, 0)) == -1) { in main()
168 fprintf(stdout, "timerfd = %d\n", tfd); in main()
170 if (timerfd_settime(tfd, 0, &tmr, NULL)) { in main()
176 ticks = waittmr(tfd, -1); in main()
188 if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &tmr, NULL)) { in main()
194 ticks = waittmr(tfd, -1); in main()
[all …]
/external/valgrind/memcheck/tests/linux/
Dtimerfd-syscall.c146 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()
[all …]
/external/toybox/toys/pending/
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->logfd = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in open_logfiles()
269 } else tfd->logfd = open(tfd->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in open_logfiles()
270 if (tfd->logfd < 0) { in open_logfiles()
271 tfd->filename = "/dev/console"; in open_logfiles()
[all …]
Dcrontab.c249 int tfd = mkstemp(tname); in do_replace() local
251 if (tfd < 0) perror_exit("mkstemp"); in do_replace()
252 xsendfile(0, tfd); in do_replace()
253 xclose(tfd); in do_replace()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c253 int tfd; in setup() local
258 tfd = mkstemp(tmpsunpath); in setup()
259 close(tfd); in setup()
496 int tfd; in sender() local
499 tfd = mkstemp(tmpfn); in sender()
500 if (tfd < 0) in sender()
511 *(int *)CMSG_DATA(control) = tfd; in sender()
524 (void)close(tfd); in sender()
/external/strace/
Dkcmp.c35 uint32_t tfd; member
86 PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2); in SYS_FUNC()
/external/ltp/testcases/kernel/syscalls/sendmsg/
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()
/external/toybox/toys/posix/
Dcp.c129 tfd = dirtree_parentfd(try); in cp_node() local
217 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
254 ? ((i = readlinkat0(tfd, try->name, toybuf, sizeof(toybuf))) && in cp_node()
266 fdin = openat(tfd, try->name, O_RDONLY); in cp_node()
344 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node()
/external/strace/tests-mx32/
Dkcmp.c71 uint32_t tfd; member
131 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/strace/tests/
Dkcmp.c71 uint32_t tfd; member
131 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/strace/tests-m32/
Dkcmp.c71 uint32_t tfd; member
131 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/kernel-headers/original/uapi/linux/
Dkcmp.h24 __u32 tfd; /* target file number */ member
/external/autotest/site_utils/
Dlabel_cleaner.py280 tfd, metrics_file=tempfile.mkstemp()
281 os.close(tfd)
/external/linux-kselftest/tools/testing/selftests/kcmp/
Dkcmp_test.c140 .tfd = duped_num, in main()
/external/python/cpython3/Lib/idlelib/
Diomenu.py452 (tfd, tempfilename) = tempfile.mkstemp(prefix='IDLE_tmp_')
454 os.close(tfd)
/external/python/cpython2/Lib/idlelib/
DIOBinding.py486 (tfd, tempfilename) = tempfile.mkstemp(prefix='IDLE_tmp_')
488 os.close(tfd)
/external/deqp/external/vulkancts/framework/vulkan/
DvkStrUtilImpl.inl4903 s << "\tfd = " << value.fd << '\n';
5003 s << "\tfd = " << value.fd << '\n';
5114 s << "\tfd = " << value.fd << '\n';
/external/tensorflow/
DRELEASE.md149 * Change `tf.contrib.distributions` docstring examples to use `tfd` alias