Home
last modified time | relevance | path

Searched refs:outfd (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/tools/firmware/
Dihex2fw.c55 static int output_records(int outfd);
74 int infd, outfd; in main() local
118 outfd = 1; in main()
120 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
121 if (outfd == -1) { in main()
129 return output_records(outfd); in main()
270 static int output_records(int outfd) in output_records() argument
280 if (write(outfd, &p->addr, writelen) != writelen) in output_records()
286 if (write(outfd, zeroes, 6) != 6) in output_records()
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c339 static int copyfd_io_poll(int infd, int peerfd, int outfd) in copyfd_io_poll() argument
388 do_write(outfd, rbuf, len); in copyfd_io_poll()
445 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
454 if (write(outfd, buf, r) != r) in do_recvfile()
464 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument
478 ret = write(outfd, inbuf + off, rem); in do_mmap()
519 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument
524 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
536 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument
542 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
[all …]
/kernel/linux/linux-5.10/arch/arm/vdso/
Dvdsomunge.c126 int outfd; in main() local
179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
180 if (outfd < 0) in main()
183 if (ftruncate(outfd, stat.st_size) != 0) in main()
187 outfd, 0); in main()
191 close(outfd); in main()
/kernel/linux/linux-5.10/tools/io_uring/
Dio_uring-cp.c25 static int infd, outfd; variable
79 io_uring_prep_writev(sqe, outfd, &data->iov, 1, data->offset); in queue_prepped()
243 outfd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, 0644); in main()
244 if (outfd < 0) { in main()
257 close(outfd); in main()
/kernel/liteos_a/syscall/
Dfs_syscall.c1740 ssize_t SysSendFile(int outfd, int infd, off_t *offset, size_t count) in SysSendFile() argument
1751 outfd = GetAssociatedSystemFd(outfd); in SysSendFile()
1754 ret = sendfile(outfd, infd, (offset ? (&offsetRet) : NULL), count); in SysSendFile()
Dlos_syscall.h299 extern ssize_t SysSendFile(int outfd, int infd, off_t *offset, size_t count);