Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/net/mptcp/
H A 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 …]
/OK3568_Linux_fs/buildroot/package/cgic/
H A D0002-file_enhancements.patch39 int outfd;
42 - outfd = mkstemp(tfileName);
43 + outfd = mkostemp(tfileName, O_CLOEXEC | O_NOATIME);
45 if (outfd == -1) {
48 - close(outfd);
53 + if (close(outfd)) {
/OK3568_Linux_fs/kernel/tools/firmware/
H A 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()
/OK3568_Linux_fs/kernel/arch/arm/vdso/
H A 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()
/OK3568_Linux_fs/u-boot/tools/
H A Dmxsboot.c465 static int mx28_create_nand_image(int infd, int outfd) in mx28_create_nand_image() argument
514 wr_size = write(outfd, buf, size); in mx28_create_nand_image()
532 static int mx28_create_sd_image(int infd, int outfd) in mx28_create_sd_image() argument
569 wr_size = write(outfd, buf, size); in mx28_create_sd_image()
640 int infd, outfd; in main() local
658 outfd = open(argv[offset + 2], O_CREAT | O_TRUNC | O_WRONLY, in main()
660 if (outfd < 0) { in main()
667 ret = mx28_create_sd_image(infd, outfd); in main()
669 ret = mx28_create_nand_image(infd, outfd); in main()
671 close(outfd); in main()
/OK3568_Linux_fs/kernel/tools/io_uring/
H A 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()
/OK3568_Linux_fs/yocto/poky/meta/recipes-bsp/efivar/efivar/
H A Defisecdb-fix-build-with-musl-libc.patch150 outfd = open(outfile, flags, 0600);
151 if (outfd < 0) {
160 rc = ftruncate(outfd, 0);
176 rc = write(outfd, output, size);
183 close(outfd);
/OK3568_Linux_fs/u-boot/tools/patman/
H A Dpatchstream.py349 def ProcessStream(self, infd, outfd): argument
380 outfd.write('+\n' * self.blank_count)
381 outfd.write(line + '\n')
456 outfd = os.fdopen(handle, 'w')
460 ps.ProcessStream(infd, outfd)
462 outfd.close()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/
H A D0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch214 close(outfd);