Home
last modified time | relevance | path

Searched refs:O_BINARY (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/linux/tools/power/acpi/os_specific/service_layers/
H A Dosunixmap.c20 #ifndef O_BINARY
21 #define O_BINARY 0 macro
70 fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); in acpi_os_map_memory()
/openbmc/qemu/tests/unit/
H A Dtest-io-channel-file.c56 O_RDONLY | O_BINARY, 0, in test_io_channel_file_helper()
78 test_io_channel_file_helper(O_WRONLY | O_CREAT | O_TRUNC | O_BINARY); in test_io_channel_file()
83 test_io_channel_file_helper(O_RDWR | O_CREAT | O_TRUNC | O_BINARY); in test_io_channel_file_rdwr()
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch77 + int from_flags = O_RDONLY | O_BINARY;
81 - if ((fromfd = safe_open (from, O_RDONLY | O_BINARY, 0)) < 0)
94 tofd = create_file (to, O_WRONLY | O_BINARY | to_flags, mode,
101 + int to_flags = O_WRONLY | O_APPEND | O_BINARY;
104 - if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0)
H A D0001-Don-t-leak-temporary-file-on-failed-ed-style-patch.patch61 - tmpfd = make_tempfile (&tmpname, 'e', NULL, O_RDWR | O_BINARY, 0);
62 + tmpfd = make_tempfile (&TMPEDNAME, 'e', NULL, O_RDWR | O_BINARY, 0);
H A D0004-Fix-arbitrary-command-execution-in-ed-style-patches-.patch54 + tmpfd = make_tempfile (&tmpname, 'e', NULL, O_RDWR | O_BINARY, 0);
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0017-img2simg-Add-support-for-converting-holes-to-don-t-c.patch81 - in = open(argv[1], O_RDONLY | O_BINARY);
82 + in = open(arg_in, O_RDONLY | O_BINARY);
95 - out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
96 + out = open(arg_out, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
/openbmc/qemu/chardev/
H A Dchar-pipe.c134 fd_in = RETRY_ON_EINTR(qemu_open_old(filename_in, O_RDWR | O_BINARY)); in qemu_chr_open_pipe()
135 fd_out = RETRY_ON_EINTR(qemu_open_old(filename_out, O_RDWR | O_BINARY)); in qemu_chr_open_pipe()
146 qemu_open_old(filename, O_RDWR | O_BINARY) in qemu_chr_open_pipe()
H A Dchar-file.c74 flags = O_WRONLY | O_CREAT | O_BINARY; in qmp_chardev_open_file()
/openbmc/u-boot/include/
H A Dcompiler.h40 #ifndef O_BINARY /* should be define'd on __WIN32__ */
41 #define O_BINARY 0 macro
/openbmc/u-boot/tools/
H A Dimagetool.c107 dfd = open(file_name, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, in imagetool_save_subimage()
132 fd = open(fname, O_RDONLY | O_BINARY); in imagetool_get_filesize()
H A Dimx8mimage.c236 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file()
413 hdmi_fd = open(signed_hdmi, O_RDONLY | O_BINARY); in build_image()
437 ap_fd = open(ap_img, O_RDONLY | O_BINARY); in build_image()
493 sld_fd = open(sld_img, O_RDONLY | O_BINARY); in build_image()
H A Dmkimage.c367 ifd = open (params.imagefile, O_RDONLY|O_BINARY); in main()
370 O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666); in main()
422 dfd = open(params.datafile, O_RDONLY | O_BINARY); in main()
660 if ((dfd = open(datafile, O_RDONLY|O_BINARY)) < 0) { in copy_file()
H A Dubsha1.c33 ifd = open (imagefile, O_RDWR|O_BINARY); in main()
H A Dfit_common.c50 fd = open(fname, O_RDWR | O_BINARY); in mmap_fdt()
H A Daisimage.c185 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_alloc_buffer()
227 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_copy_image()
H A Dimx8image.c279 int tmp_fd = open(filename, O_RDONLY | O_BINARY); in check_file()
313 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file_aligned()
373 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file()
445 dfd = open(filename, O_RDONLY | O_BINARY); in read_dcd_offset()
H A Ddumpimage.c141 ifd = open(params.imagefile, O_RDONLY|O_BINARY); in main()
H A Dfit_image.c122 fd = open(fname, O_RDWR | O_BINARY); in fdt_property_file()
377 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0666); in fit_build()
595 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0666); in fit_import_data()
/openbmc/qemu/qga/
H A Dcommands-posix.c365 #ifndef O_BINARY
366 #define O_BINARY 0 macro
375 { (ccpc[]){ "rb", NULL }, O_RDONLY | O_BINARY },
377 { (ccpc[]){ "wb", NULL }, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY },
379 { (ccpc[]){ "ab", NULL }, O_WRONLY | O_CREAT | O_APPEND | O_BINARY },
381 { (ccpc[]){ "rb+", "r+b", NULL }, O_RDWR | O_BINARY },
383 { (ccpc[]){ "wb+", "w+b", NULL }, O_RDWR | O_CREAT | O_TRUNC | O_BINARY },
385 { (ccpc[]){ "ab+", "a+b", NULL }, O_RDWR | O_CREAT | O_APPEND | O_BINARY }
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/extras/
H A D0001-ext4_utils-remove-selinux-extensions.patch26 #define O_BINARY 0
/openbmc/qemu/include/qemu/
H A Dosdep.h307 #ifndef O_BINARY
308 #define O_BINARY 0 macro
/openbmc/qemu/hw/core/
H A Dloader.c76 fd = open(filename, O_RDONLY | O_BINARY); in get_image_size()
90 fd = open(filename, O_RDONLY | O_BINARY); in load_image_size()
235 fd = open(filename, O_RDONLY | O_BINARY); in load_aout()
365 fd = open(filename, O_RDONLY | O_BINARY); in load_elf_hdr()
464 fd = open(filename, O_RDONLY | O_BINARY); in load_elf_ram_sym()
642 fd = open(filename, O_RDONLY | O_BINARY); in load_uboot_image()
/openbmc/qemu/semihosting/
H A Darm-compat-semi.c84 #ifndef O_BINARY
85 #define O_BINARY 0 macro
/openbmc/qemu/net/
H A Ddump.c112 fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644); in net_dump_state_init()
/openbmc/qemu/ui/
H A Dui-qmp-cmds.c372 fd = qemu_open_old(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666); in qmp_screendump()

12