/external/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd01.c | 107 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/crosvm/cros_async/src/ |
D | timer.rs | 57 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable 58 assert_eq!(tfd.is_armed().unwrap(), false); in one_shot() 62 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot() 64 assert_eq!(tfd.is_armed().unwrap(), true); in one_shot() 66 let t = TimerAsync::new_uring(tfd, ex).unwrap(); in one_shot() 80 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot_fd() localVariable 81 assert_eq!(tfd.is_armed().unwrap(), false); in one_shot_fd() 85 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot_fd() 87 assert_eq!(tfd.is_armed().unwrap(), true); in one_shot_fd() 89 let t = TimerAsync::new_poll(tfd, ex).unwrap(); in one_shot_fd()
|
/external/crosvm/sys_util/src/ |
D | timerfd.rs | 254 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable 255 assert_eq!(tfd.is_armed().unwrap(), false); in one_shot() 259 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot() 261 assert_eq!(tfd.is_armed().unwrap(), true); in one_shot() 263 let count = tfd.wait().expect("unable to wait for timer"); in one_shot() 271 let tfd = TimerFd::new().expect("failed to create timerfd"); in repeating() localVariable 275 tfd.reset(dur, Some(interval)).expect("failed to arm timer"); in repeating() 279 let count = tfd.wait().expect("unable to wait for timer"); in repeating() 286 let mut tfd = FakeTimerFd::new(clock.clone()); in fake_one_shot() localVariable 287 assert_eq!(tfd.is_armed().unwrap(), false); in fake_one_shot() [all …]
|
/external/toybox/toys/pending/ |
D | syslogd.c | 238 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 …]
|
D | crontab.c | 252 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()
|
/external/curl/docs/examples/ |
D | ephiperfifo.c | 83 int tfd; /* timer filedescriptor */ member 167 timerfd_settime(g->tfd, /*flags=*/0, &its, NULL); in multi_timer_cb() 214 timerfd_settime(g->tfd, 0, &its, NULL); in event_cb() 225 err = read(g->tfd, &count, sizeof(uint64_t)); in timer_cb() 233 fprintf(MSG_OUT, "EAGAIN on tfd %d\n", g->tfd); in timer_cb() 484 g.tfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in main() 485 if(g.tfd == -1) { in main() 493 timerfd_settime(g.tfd, 0, &its, NULL); in main() 496 ev.data.fd = g.tfd; in main() 497 epoll_ctl(g.epfd, EPOLL_CTL_ADD, g.tfd, &ev); in main() [all …]
|
/external/grpc-grpc/test/core/iomgr/ |
D | pollset_set_test.cc | 105 void on_readable(void* tfd, grpc_error* error) { in on_readable() argument 106 (static_cast<test_fd*>(tfd))->is_on_readable_called = true; in on_readable() 109 static void reset_test_fd(test_fd* tfd) { in reset_test_fd() argument 110 tfd->is_on_readable_called = false; in reset_test_fd() 112 GRPC_CLOSURE_INIT(&tfd->on_readable, on_readable, tfd, in reset_test_fd() 114 grpc_fd_notify_on_read(tfd->fd, &tfd->on_readable); in reset_test_fd()
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 253 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/perfetto/src/base/ |
D | periodic_task.cc | 39 base::ScopedPlatformHandle tfd( in CreateTimerFd() local 53 if (timerfd_settime(*tfd, 0, &its, nullptr) < 0) in CreateTimerFd() 55 return tfd; in CreateTimerFd()
|
/external/strace/ |
D | kcmp.c | 35 uint32_t tfd; member 86 PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2); in SYS_FUNC()
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 623 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/ |
D | cp.c | 127 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()
|
/external/strace/tests-mx32/ |
D | kcmp.c | 72 uint32_t tfd; member 132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
|
/external/strace/tests/ |
D | kcmp.c | 72 uint32_t tfd; member 132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
|
/external/strace/tests-m32/ |
D | kcmp.c | 72 uint32_t tfd; member 132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
|
/external/kernel-headers/original/uapi/linux/ |
D | kcmp.h | 24 __u32 tfd; /* target file number */ member
|
/external/autotest/site_utils/ |
D | label_cleaner.py | 280 tfd, metrics_file=tempfile.mkstemp() 281 os.close(tfd)
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 140 .tfd = duped_num, in main()
|
/external/python/cpython3/Lib/idlelib/ |
D | iomenu.py | 312 (tfd, tempfilename) = tempfile.mkstemp(prefix='IDLE_tmp_') 314 os.close(tfd)
|
/external/mtpd/ |
D | l2tp.c | 417 static void create_pppox_ol2tp(int *tfd, int *sfd) in create_pppox_ol2tp() argument 470 *tfd = tunnel_fd; in create_pppox_ol2tp()
|
/external/python/cpython2/Lib/idlelib/ |
D | IOBinding.py | 486 (tfd, tempfilename) = tempfile.mkstemp(prefix='IDLE_tmp_') 488 os.close(tfd)
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkStrUtilImpl.inl | 7641 s << "\tfd = " << value.fd << '\n'; 7675 s << "\tfd = " << value.fd << '\n'; 7749 s << "\tfd = " << value.fd << '\n';
|
/external/tensorflow/ |
D | RELEASE.md | 3428 * Change `tf.contrib.distributions` docstring examples to use `tfd` alias
|