/kernel/linux/linux-5.10/tools/firmware/ |
H A D | ihex2fw.c | 55 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-6.6/tools/firmware/ |
H A D | ihex2fw.c | 55 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/ |
H A D | mptcp_connect.c | 340 static int copyfd_io_poll(int infd, int peerfd, int outfd) in copyfd_io_poll() argument 389 do_write(outfd, rbuf, len); in copyfd_io_poll() 446 static int do_recvfile(int infd, int outfd) in do_recvfile() argument 455 if (write(outfd, buf, r) != r) in do_recvfile() 465 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument 479 ret = write(outfd, inbuf + off, rem); in do_mmap() 520 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument 525 r = sendfile(outfd, infd, NULL, count); in do_sendfile() 537 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument 543 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap() 561 copyfd_io_sendfile(int infd, int peerfd, int outfd, unsigned int size) copyfd_io_sendfile() argument 582 copyfd_io(int infd, int peerfd, int outfd) copyfd_io() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/vdso/ |
H A D | vdsomunge.c | 126 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-6.6/arch/arm/vdso/ |
H A D | vdsomunge.c | 126 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/ |
H A D | io_uring-cp.c | 25 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/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_connect.c | 616 static int copyfd_io_poll(int infd, int peerfd, int outfd, in copyfd_io_poll() argument 679 do_write(outfd, rbuf, len); in copyfd_io_poll() 743 static int do_recvfile(int infd, int outfd) in do_recvfile() argument 752 if (write(outfd, buf, r) != r) in do_recvfile() 777 static int do_mmap(int infd, int outfd, unsigned int size, in do_mmap() argument 789 ret = spool_buf(outfd, winfo); in do_mmap() 796 ret = write(outfd, inbuf + off, rem); in do_mmap() 837 static int do_sendfile(int infd, int outfd, unsigned int count, in do_sendfile() argument 840 int ret = spool_buf(outfd, winfo); in do_sendfile() 850 r = sendfile(outfd, inf in do_sendfile() 862 copyfd_io_mmap(int infd, int peerfd, int outfd, unsigned int size, bool *in_closed_after_out, struct wstate *winfo) copyfd_io_mmap() argument 888 copyfd_io_sendfile(int infd, int peerfd, int outfd, unsigned int size, bool *in_closed_after_out, struct wstate *winfo) copyfd_io_sendfile() argument 913 copyfd_io(int infd, int peerfd, int outfd, bool close_peerfd, struct wstate *winfo) copyfd_io() argument [all...] |
/kernel/liteos_a/syscall/ |
H A D | fs_syscall.c | 1740 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()
|
H A D | los_syscall.h | 299 extern ssize_t SysSendFile(int outfd, int infd, off_t *offset, size_t count);
|