Searched refs:infd (Results 1 – 3 of 3) sorted by relevance
/tools/io_uring/ |
D | io_uring-cp.c | 25 static int infd, outfd; variable 77 io_uring_prep_readv(sqe, infd, &data->iov, 1, data->offset); in queue_prepped() 106 io_uring_prep_readv(sqe, infd, &data->iov, 1, offset); in queue_read() 261 infd = open(argv[1], O_RDONLY); in main() 262 if (infd < 0) { in main() 274 if (get_file_size(infd, &insize)) in main() 279 close(infd); in main()
|
/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 454 static int copyfd_io_poll(int infd, int peerfd, int outfd, bool *in_closed_after_out) in copyfd_io_poll() argument 511 wlen = read(infd, wbuf, sizeof(wbuf)); in copyfd_io_poll() 562 static int do_recvfile(int infd, int outfd) in do_recvfile() argument 569 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile() 581 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument 583 char *inbuf = mmap(NULL, size, PROT_READ, MAP_SHARED, infd, 0); in do_mmap() 636 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument 641 r = sendfile(outfd, infd, NULL, count); in do_sendfile() 653 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument 663 err = do_mmap(infd, peerfd, size); in copyfd_io_mmap() [all …]
|
/tools/firmware/ |
D | ihex2fw.c | 74 int infd, outfd; in main() local 99 infd = 0; in main() 101 infd = open(argv[optind], O_RDONLY); in main() 102 if (infd == -1) { in main() 107 if (fstat(infd, &st)) { in main() 111 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
|