Home
last modified time | relevance | path

Searched refs:infd (Results 1 - 21 of 21) sorted by relevance

/third_party/alsa-utils/alsactl/
H A Dmonitor.c165 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()
274 static int prepare_dispatcher(int epfd, int sigfd, int infd, in prepare_dispatcher() argument
287 ev.data.fd = infd; in prepare_dispatcher()
288 if (epoll_ctl(epfd, EPOLL_CTL_ADD, infd, &ev) < 0) in prepare_dispatcher()
302 static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs, in run_dispatcher() argument
338 if (ev->data.fd == infd) { in run_dispatcher()
339 err = check_control_cdev(infd, retry); in run_dispatcher()
359 static void clear_dispatcher(int epfd, int sigfd, int infd, in clear_dispatcher() argument
367 epoll_ctl(epfd, EPOLL_CTL_DEL, infd, NUL in clear_dispatcher()
397 int infd; monitor() local
[all...]
/third_party/NuttX/fs/vfs/
H A Dfs_sendfile.c61 * infd - A file (or socket) descriptor opened for reading
65 * reading data from 'infd'. When sendfile() returns, this
69 * 'infd'; otherwise the current file offset is adjusted to
70 * reflect the number of bytes read from 'infd.'
72 * If 'offset' is NULL, then data will be read from 'infd'
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()
126 /* Now transfer 'count' bytes from the infd to the outfd */ in sendfile()
134 /* Read a buffer of data from the infd */ in sendfile()
[all...]
/third_party/toybox/toys/posix/
H A Dsplit.c37 static void do_split(int infd, char *in) in do_split() argument
46 fstat(infd, &st); in do_split()
55 if (!(len = xread(infd, toybuf, sizeof(toybuf)))) break; in do_split()
93 if (infd) close(infd); in do_split()
/third_party/curl/docs/examples/
H A Dsendrecv.c37 fd_set infd, outfd, errfd; in wait_on_socket() local
43 FD_ZERO(&infd); in wait_on_socket()
58 FD_SET(sockfd, &infd); in wait_on_socket()
68 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
/third_party/curl/src/
H A Dtool_cb_see.c70 if(LSEEK_ERROR == lseek(per->infd, 0, SEEK_SET)) in tool_seek_cb()
76 if(LSEEK_ERROR == lseek(per->infd, step, SEEK_CUR)) in tool_seek_cb()
85 if(LSEEK_ERROR == lseek(per->infd, offset, whence)) in tool_seek_cb()
H A Dtool_cb_rea.c78 FD_SET(per->infd, &bits); in tool_read_cb()
79 if(!select(per->infd + 1, &bits, NULL, NULL, &timeout)) in tool_read_cb()
85 rc = read(per->infd, buffer, sz*nmemb); in tool_read_cb()
H A Dtool_operate.c288 per->infd = -1; in pre_transfer()
295 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY); in pre_transfer()
298 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY, in pre_transfer()
302 if(per->infd == -1) in pre_transfer()
304 per->infd = open(per->uploadfile, O_RDONLY | O_BINARY); in pre_transfer()
305 if((per->infd == -1) || fstat(per->infd, &fileinfo)) in pre_transfer()
309 if(per->infd != -1) { in pre_transfer()
310 close(per->infd); in pre_transfer()
311 per->infd in pre_transfer()
[all...]
H A Dtool_operate.h46 bool infdopen; /* TRUE if infd needs closing */
47 int infd; member
/third_party/elfutils/tests/
H A Decp.c37 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/filter/
H A Dsys5ippprinter.c65 int infd, int outfd);
527 int infd, /* I - Stdin file descriptor */ in exec_filter()
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()
525 exec_filter(const char *filter, char **argv, int infd, int outfd) exec_filter() argument
/third_party/cups-filters/cupsfilters/
H A Dpdftoippprinter.c64 int infd, int outfd);
587 int infd, /* I - Stdin file descriptor */ in exec_filter()
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()
585 exec_filter(const char *filter, char **argv, int infd, int outfd) exec_filter() argument
/third_party/toybox/lib/
H A Ddeflate.c29 int infd, outfd; member
322 // Deflate from dd->infd to bitbuf
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()
H A Dlib.h388 long long gzip_fd(int infd, int outfd);
389 long long gunzip_fd(int infd, int outfd);
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dscsimain.c210 int infd; member
244 int infd; member
2209 int infd, outfd, blocks; in do_scsi_device_read_write() local
2252 infd = STDIN_FILENO; in do_scsi_device_read_write()
2265 if ((infd = open(inf, O_RDWR)) < 0) { in do_scsi_device_read_write()
2273 res = ioctl(infd, SG_SET_RESERVED_SIZE, &t); in do_scsi_device_read_write()
2276 res = ioctl(infd, SG_GET_VERSION_NUM, &t); in do_scsi_device_read_write()
2291 infd = open(inf, O_RDONLY | O_DIRECT); in do_scsi_device_read_write()
2293 infd = open(inf, O_RDONLY); in do_scsi_device_read_write()
2294 if (infd < in do_scsi_device_read_write()
6282 int infd, outfd, blocks; do_scsi_sgm_read_write() local
[all...]
/third_party/NuttX/fs/vfs/include/
H A Dfile.h303 ssize_t lib_sendfile(int outfd, int infd, off_t *offset, size_t count);
522 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
/third_party/NuttX/include/nuttx/fs/
H A Dfile.h81 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
/third_party/python/Lib/
H A Dshutil.py91 infd = fsrc.fileno()
97 posix._fcopyfile(infd, outfd, flags)
122 infd = fsrc.fileno()
133 blocksize = max(os.fstat(infd).st_size, 2 ** 23) # min 8MiB
144 sent = os.sendfile(outfd, infd, offset, blocksize)
/third_party/toybox/porting/liteos_a/lib/
H A Dlib.h379 long long gzip_fd(int infd, int outfd);
380 long long gunzip_fd(int infd, int outfd);
/third_party/ltp/testcases/kernel/fs/doio/
H A Ddoio.c756 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/
H A Dtest_shutil.py145 infd = src.fileno()
148 os.sendfile(outfd, infd, 0, 2)
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
H A Dmod.rs3958 infd: ::c_int, in copy_file_range()

Completed in 33 milliseconds