Home
last modified time | relevance | path

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

/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/u-boot/tools/
H A Dmxsboot.c464 static int mx28_create_nand_image(int infd, int outfd) in mx28_create_nand_image() argument
513 wr_size = write(outfd, buf, size); in mx28_create_nand_image()
531 static int mx28_create_sd_image(int infd, int outfd) in mx28_create_sd_image() argument
568 wr_size = write(outfd, buf, size); in mx28_create_sd_image()
639 int infd, outfd; in main() local
657 outfd = open(argv[offset + 2], O_CREAT | O_TRUNC | O_WRONLY, in main()
659 if (outfd < 0) { in main()
666 ret = mx28_create_sd_image(infd, outfd); in main()
668 ret = mx28_create_nand_image(infd, outfd); in main()
670 close(outfd); in main()
H A Dimx8mimage.c593 int imx8mimage_copy_image(int outfd, struct image_tool_params *mparams) in imx8mimage_copy_image() argument
602 build_image(outfd); in imx8mimage_copy_image()
H A Dzynqmpbif.c828 int zynqmpbif_copy_image(int outfd, struct image_tool_params *mparams) in zynqmpbif_copy_image() argument
974 if (lseek(outfd, 0, SEEK_SET) != 0) in zynqmpbif_copy_image()
982 r = write(outfd, bifp, len); in zynqmpbif_copy_image()
H A Dimx8image.c953 int imx8image_copy_image(int outfd, struct image_tool_params *mparams) in imx8image_copy_image() argument
974 img_sp, false, fuse_version, sw_version, outfd); in imx8image_copy_image()
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c679 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()
789 ret = spool_buf(outfd, winfo); in do_mmap()
796 ret = write(outfd, inbuf + off, rem); in do_mmap()
840 int ret = spool_buf(outfd, winfo); in do_sendfile()
850 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
869 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
881 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
894 err = do_recvfile(peerfd, outfd); in copyfd_io_sendfile()
[all …]
/openbmc/u-boot/tools/patman/
H A Dpatchstream.py348 def ProcessStream(self, infd, outfd): argument
379 outfd.write('+\n' * self.blank_count)
380 outfd.write(line + '\n')
455 outfd = os.fdopen(handle, 'w')
459 ps.ProcessStream(infd, outfd)
461 outfd.close()
/openbmc/qemu/qga/
H A Dcommands-posix.c108 int outfd[2] = { -1, -1 }; in ga_run_command() local
113 !g_unix_open_pipe(outfd, FD_CLOEXEC, NULL)) { in ga_run_command()
134 close(outfd[0]); in ga_run_command()
135 dup2(outfd[1], 1); in ga_run_command()
136 dup2(outfd[1], 2); in ga_run_command()
137 close(outfd[1]); in ga_run_command()
164 len = ga_pipe_read_str(outfd, &str); in ga_run_command()
207 if (outfd[0] != -1) { in ga_run_command()
208 close(outfd[0]); in ga_run_command()
210 if (outfd[1] != -1) { in ga_run_command()
[all …]
/openbmc/openbmc/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);
/openbmc/qemu/linux-user/
H A Dsyscall.c753 int, outfd, loff_t *, poutoff, size_t, length, in safe_syscall3()