Searched refs:tfd (Results 1 – 5 of 5) sorted by relevance
/external/valgrind/memcheck/tests/linux/ |
D | timerfd-syscall.c | 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() [all …]
|
/external/iproute2/examples/bpf/ |
D | bpf_agent.c | 108 static void bpf_dump_map_data(int *tfd) in bpf_dump_map_data() argument 117 bpf_dump_drops(tfd[BPF_MAP_ID_DROPS]); in bpf_dump_map_data() 118 bpf_dump_queue(tfd[BPF_MAP_ID_QUEUE]); in bpf_dump_map_data() 119 bpf_dump_proto(tfd[BPF_MAP_ID_PROTO]); in bpf_dump_map_data() 127 int i, tfd[BPF_MAP_ID_MAX]; in bpf_info_loop() local 142 tfd[aux->ent[i].id] = fds[i]; in bpf_info_loop() 145 bpf_dump_map_data(tfd); in bpf_info_loop() 148 static void bpf_map_get_from_env(int *tfd) in bpf_map_get_from_env() argument 160 tfd[i] = atoi(val); in bpf_map_get_from_env() 220 int tfd[BPF_MAP_ID_MAX]; in main() local [all …]
|
/external/toybox/toys/pending/ |
D | syslogd.c | 239 struct logfile *tfd; in open_logfiles() local 241 for (tfd = TT.lfiles; tfd; tfd = tfd->next) { in open_logfiles() 245 if (*tfd->filename == '@') { // network in open_logfiles() 248 tmpfile = xstrdup(tfd->filename + 1); in open_logfiles() 255 error_exit("bad port in %s", tfd->filename); in open_logfiles() 265 memcpy(&tfd->saddr, info->ai_addr, info->ai_addrlen); in open_logfiles() 268 tfd->logfd = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in open_logfiles() 270 } else tfd->logfd = open(tfd->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in open_logfiles() 271 if (tfd->logfd < 0) { in open_logfiles() 272 tfd->filename = "/dev/console"; in open_logfiles() [all …]
|
D | crontab.c | 249 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/toybox/toys/posix/ |
D | cp.c | 146 tfd = dirtree_parentfd(try); in cp_node() local 234 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node() 271 ? (0 < (i = readlinkat(tfd, try->name, toybuf, sizeof(toybuf))) && in cp_node() 283 fdin = openat(tfd, try->name, O_RDONLY); in cp_node() 361 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node()
|