/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/toybox/toys/posix/ |
D | split.c | 36 static void do_split(int infd, char *in) 44 fstat(infd, &st); 52 if (!(len = xread(infd, toybuf, sizeof(toybuf)))) break; 90 if (infd) close(infd);
|
/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/glib/tests/ |
D | spawn-test-win32-gui.c | 37 int infd = atoi (__argv[2]); in WinMain() local 42 if (infd < 0 || outfd < 0) in WinMain() 58 if ((k = read (infd, &n, sizeof (n))) != sizeof (n)) in WinMain() 67 if ((k = read (infd, buf, n)) != n) in WinMain()
|
/third_party/curl/docs/examples/ |
D | sendrecv.c | 35 fd_set infd, outfd, errfd; in wait_on_socket() local 41 FD_ZERO(&infd); in wait_on_socket() 48 FD_SET(sockfd, &infd); in wait_on_socket() 55 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
|
/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 | 377 long long gzip_fd(int infd, int outfd); 378 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/curl/src/ |
D | tool_operate.c | 290 per->infd = -1; in pre_transfer() 297 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY); in pre_transfer() 300 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY, in pre_transfer() 304 if(per->infd == -1) in pre_transfer() 306 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY); in pre_transfer() 307 if((per->infd == -1) || fstat(per->infd, &fileinfo)) in pre_transfer() 311 if(per->infd != -1) { in pre_transfer() 312 close(per->infd); in pre_transfer() 313 per->infd = STDIN_FILENO; in pre_transfer() 330 per->input.fd = per->infd; in pre_transfer() [all …]
|
D | tool_operate.h | 43 int infd; member
|
/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/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/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 | 378 long long gzip_fd(int infd, int outfd); 379 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/python/Doc/whatsnew/ |
D | 3.8.rst | 1472 "``outfd.write(infd.read())``".
|