/third_party/alsa-utils/alsactl/ |
D | monitor.c | 165 static int check_control_cdev(int infd, bool *retry) in check_control_cdev() argument 176 ssize_t len = read(infd, buf, sizeof(*ev) + NAME_MAX); in check_control_cdev() 273 static int prepare_dispatcher(int epfd, int sigfd, int infd, in prepare_dispatcher() argument 286 ev.data.fd = infd; in prepare_dispatcher() 287 if (epoll_ctl(epfd, EPOLL_CTL_ADD, infd, &ev) < 0) in prepare_dispatcher() 301 static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs, in run_dispatcher() argument 337 if (ev->data.fd == infd) { in run_dispatcher() 338 err = check_control_cdev(infd, retry); in run_dispatcher() 358 static void clear_dispatcher(int epfd, int sigfd, int infd, in clear_dispatcher() argument 366 epoll_ctl(epfd, EPOLL_CTL_DEL, infd, NULL); in clear_dispatcher() [all …]
|
/third_party/NuttX/fs/vfs/ |
D | fs_sendfile.c | 87 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count) in sendfile() argument 103 startpos = lseek(infd, 0, SEEK_CUR); in sendfile() 111 if (lseek(infd, *offset, SEEK_SET) == (off_t)-1) in sendfile() 136 nbytesread = read(infd, iobuffer, CONFIG_LIB_SENDFILE_BUFSIZE); in sendfile() 249 off_t curpos = lseek(infd, 0, SEEK_CUR); in sendfile() 261 if (lseek(infd, startpos, SEEK_SET) == (off_t)-1) in sendfile()
|
/third_party/f2fs-tools/tools/sg_write_buffer/ |
D | sg_write_buffer.c | 195 int sg_fd, infd, res, c, len, k, n; in main() local 391 infd = STDIN_FILENO; in main() 393 if ((infd = open(file_name, O_RDONLY)) < 0) { in main() 399 } else if (sg_set_binary_mode(infd) < 0) in main() 402 if (lseek(infd, wb_skip, SEEK_SET) < 0) { in main() 406 close(infd); in main() 412 res = read(infd, dop, wb_len); in main() 418 close(infd); in main() 442 close(infd); in main()
|
/third_party/toybox/toys/posix/ |
D | split.c | 37 static void do_split(int infd, char *in) 46 fstat(infd, &st); 55 if (!(len = xread(infd, toybuf, sizeof(toybuf)))) break; 93 if (infd) close(infd);
|
/third_party/cups-filters/filter/ |
D | sys5ippprinter.c | 65 int infd, int outfd); 527 int infd, /* I - Stdin file descriptor */ in exec_filter() argument 541 if (infd != 0) in exec_filter() 543 if (infd < 0) in exec_filter() 544 infd = open("/dev/null", O_RDONLY); in exec_filter() 546 if (infd > 0) in exec_filter() 548 dup2(infd, 0); in exec_filter() 549 close(infd); in exec_filter()
|
/third_party/elfutils/tests/ |
D | ecp.c | 37 int infd = open (argv[1], O_RDONLY); in main() local 38 if (infd == -1) in main() 41 Elf *inelf = elf_begin (infd, ELF_C_READ, NULL); in main()
|
/third_party/cups-filters/cupsfilters/ |
D | pdftoippprinter.c | 64 int infd, int outfd); 587 int infd, /* I - Stdin file descriptor */ in exec_filter() argument 600 if (infd != 0) { in exec_filter() 601 if (infd < 0) in exec_filter() 602 infd = open("/dev/null", O_RDONLY); in exec_filter() 604 if (infd > 0) { in exec_filter() 605 dup2(infd, 0); in exec_filter() 606 close(infd); in exec_filter()
|
/third_party/toybox/lib/ |
D | deflate.c | 29 int infd, outfd; member 333 len = readall(dd->infd, data+(dd->len&32768), 32768); in deflate() 447 long long gzip_fd(int infd, int outfd) in gzip_fd() argument 458 dd->infd = infd; in gzip_fd() 481 long long gunzip_fd(int infd, int outfd) in gunzip_fd() argument 483 struct bitbuf *bb = bitbuf_init(infd, 4096); in gunzip_fd()
|
D | lib.h | 387 long long gzip_fd(int infd, int outfd); 388 long long gunzip_fd(int infd, int outfd);
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 213 int infd; member 247 int infd; member 2212 int infd, outfd, blocks; in do_scsi_device_read_write() local 2255 infd = STDIN_FILENO; in do_scsi_device_read_write() 2268 if ((infd = open(inf, O_RDWR)) < 0) { in do_scsi_device_read_write() 2276 res = ioctl(infd, SG_SET_RESERVED_SIZE, &t); in do_scsi_device_read_write() 2279 res = ioctl(infd, SG_GET_VERSION_NUM, &t); in do_scsi_device_read_write() 2294 infd = open(inf, O_RDONLY | O_DIRECT); in do_scsi_device_read_write() 2296 infd = open(inf, O_RDONLY); in do_scsi_device_read_write() 2297 if (infd < 0) { in do_scsi_device_read_write() [all …]
|
/third_party/NuttX/fs/vfs/include/ |
D | file.h | 300 ssize_t lib_sendfile(int outfd, int infd, off_t *offset, size_t count); 519 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
|
/third_party/NuttX/include/nuttx/fs/ |
D | file.h | 81 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
|
/third_party/python/Lib/ |
D | shutil.py | 89 infd = fsrc.fileno() 95 posix._fcopyfile(infd, outfd, flags) 120 infd = fsrc.fileno() 131 blocksize = max(os.fstat(infd).st_size, 2 ** 23) # min 8MiB 142 sent = os.sendfile(outfd, infd, offset, blocksize)
|
/third_party/toybox/porting/liteos_a/lib/ |
D | lib.h | 379 long long gzip_fd(int infd, int outfd); 380 long long gunzip_fd(int infd, int outfd);
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | doio.c | 756 int rval, i, infd, nbytes; in doio() local 808 infd = 0; in doio() 810 if ((infd = open(Infile, O_RDWR)) == -1) { in doio() 918 while ((nbytes = read(infd, (char *)&ioreq, sizeof(ioreq)))) { in doio()
|
/third_party/python/Lib/test/ |
D | test_shutil.py | 141 infd = src.fileno() 144 os.sendfile(outfd, infd, 0, 2)
|
/third_party/python/Doc/library/ |
D | shutil.rst | 452 the use of userspace buffers in Python as in "``outfd.write(infd.read())``".
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
D | mod.rs | 3958 infd: ::c_int, in copy_file_range()
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 1472 "``outfd.write(infd.read())``".
|