Searched defs:O_BINARY (Results 1 - 14 of 14) sorted by relevance

/system/core/base/include/android-base/
H A Dfile.h23 #if !defined(_WIN32) && !defined(O_BINARY)
24 #define O_BINARY 0 macro
/system/core/libsparse/
H A Dsimg2img.c29 #ifndef O_BINARY
30 #define O_BINARY 0 macro
50 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
60 in = open(argv[i], O_RDONLY | O_BINARY);
H A Dimg2simg.c32 #ifndef O_BINARY
33 #define O_BINARY 0 macro
72 in = open(argv[1], O_RDONLY | O_BINARY);
82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
H A Dappend2simg.c32 #ifndef O_BINARY
33 #define O_BINARY 0 macro
79 output = open(output_path, O_RDWR | O_BINARY);
91 input = open(input_path, O_RDONLY | O_BINARY);
114 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664);
H A Dsimg2simg.c33 #ifndef O_BINARY
34 #define O_BINARY 0 macro
61 in = open(argv[1], O_RDONLY | O_BINARY);
98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
H A Doutput_file.c39 #define O_BINARY 0 macro
760 int file_fd = open(file, O_RDONLY | O_BINARY);
/system/extras/f2fs_utils/
H A Dmake_f2fs_main.c32 #ifndef _WIN32 /* O_BINARY is windows-specific flag */
33 #define O_BINARY 0 macro
76 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
H A Df2fs_ioutils.c82 #define O_BINARY 0 macro
/system/extras/ext4_utils/
H A Dmake_ext4fs_main.c46 #ifndef _WIN32 /* O_BINARY is windows-specific flag */
47 #define O_BINARY 0 macro
254 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
H A Dmake_ext4fs.c83 #define O_BINARY 0 macro
487 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
/system/core/libcutils/
H A Dfs_config.cpp38 #ifndef O_BINARY
39 #define O_BINARY 0 macro
249 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY));
254 fd = TEMP_FAILURE_RETRY(open(conf[which][dir], O_RDONLY | O_BINARY));
/system/tools/aidl/
H A Daidl.cpp48 #ifndef O_BINARY
49 # define O_BINARY 0 macro
/system/core/libziparchive/
H A Dzip_archive.cc58 #ifndef O_BINARY
59 #define O_BINARY 0 macro
424 const int fd = open(fileName, O_RDONLY | O_BINARY, 0);
/system/core/fastboot/
H A Dfastboot.cpp72 #ifndef O_BINARY
73 #define O_BINARY 0 macro
188 int fd = open(path.c_str(), O_RDONLY | O_BINARY);
850 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY)));

Completed in 531 milliseconds