Home
last modified time | relevance | path

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

12

/system/core/libsparse/
Dsimg2img.cpp28 #ifndef O_BINARY
29 #define O_BINARY 0 macro
47 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
57 in = open(argv[i], O_RDONLY | O_BINARY); in main()
Dappend2simg.cpp31 #ifndef O_BINARY
32 #define O_BINARY 0 macro
76 output = open(output_path, O_RDWR | O_BINARY); in main()
88 input = open(input_path, O_RDONLY | O_BINARY); in main()
111 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main()
Dimg2simg.cpp31 #ifndef O_BINARY
32 #define O_BINARY 0 macro
87 in = open(arg_in, O_RDONLY | O_BINARY); in main()
98 out = open(arg_out, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
Doutput_file.cpp41 #define O_BINARY 0 macro
777 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk()
/system/libbase/include/android-base/
Dfile.h28 #if !defined(_WIN32) && !defined(O_BINARY)
30 #define O_BINARY 0 macro
/system/core/fastboot/device/
Dutility.h49 flags |= (O_EXCL | O_CLOEXEC | O_BINARY); in Open()
66 if (fd_.ok() && (flags | O_EXCL | O_CLOEXEC | O_BINARY) == flags_) { in Reset()
/system/core/libcutils/
Dfs_config.cpp44 #ifndef O_BINARY
45 #define O_BINARY 0 macro
259 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY)); in fs_config_open()
264 fd = TEMP_FAILURE_RETRY(open(conf[which][dir], O_RDONLY | O_BINARY)); in fs_config_open()
/system/core/fs_mgr/liblp/
Dimages.cpp127 unique_fd fd(open(file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY, 0644)); in WriteToImageFile()
187 unique_fd fd(open(file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY, 0644)); in Export()
211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles()
451 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp117 android::base::unique_fd fd(open(device.c_str(), O_WRONLY | O_BINARY)); in InitializeKernelCow()
178 const int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY; in WriteStringToFileAtomic()
/system/libbase/
Dfile.cpp66 int fd = _wopen(path.c_str(), O_CREAT | O_EXCL | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR); in mkstemp()
240 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString()
274 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile()
302 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile()
Dutf8_test.cpp465 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY; in TEST()
/system/extras/partition_tools/
Dlpmake.cc49 static constexpr int O_BINARY = 0; variable
199 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY)); in GetFileSize()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp150 open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in testWriteBlockAndPageRead()
194 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in testWaitForPendingReads()
236 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
472 open(mountPath(test_file_name_).c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1226 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1293 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1350 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1402 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp114 …unique_fd fd(open(metadata_file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY | O_SYN… in SaveMetadata()
/system/extras/simpleperf/
Dutils.cpp78 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY | O_BINARY)); in OpenReadOnly()
83 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_WRONLY | O_BINARY | O_CREAT, 0644)); in OpenWriteOnly()
/system/logging/logd/
DLogTags.cpp100 filename, O_WRONLY | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY)); in RebuildFileEventLogTags()
596 O_WRONLY | O_APPEND | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in WriteDynamicEventLogTags()
618 O_WRONLY | O_APPEND | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in WriteDebugEventLogTags()
/system/libziparchive/
Dzip_archive_test.cc178 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
188 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
198 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
211 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
623 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); in TEST()
/system/tools/aidl/
Daidl.cpp57 #ifndef O_BINARY
58 # define O_BINARY 0 macro
/system/core/init/
Dselinux.cpp354 unique_fd fd(open(res->c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in OpenSplitPolicy()
582 unique_fd fd(open((dir + kSepolicyZip).c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in GetPolicyFromApex()
Dreboot.cpp105 LAST_REBOOT_REASON_FILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0666))); in PersistRebootReason()
/system/incremental_delivery/incfs/tests/util/
Dmap_ptr_test.cpp71 return android::base::unique_fd(open(mount_path_.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in GetFd()
/system/tools/aidl/analyzer/
DanalyzerMain.cpp50 int openFlags = O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC | O_BINARY; in startRecording()
/system/apex/apexd/
Dapex_file.cpp89 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in Open()
/system/core/fastboot/
Dfastboot.cpp233 unique_fd fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY))); in ReadFileToVector()
1074 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); in load_buf()
1078 fd = unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_BINARY))); in load_buf()
1449 open(outfile.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0644))); in do_fetch()
1976 return unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_BINARY))); in OpenFile()
Dvendor_boot_img_utils_test.cpp150 open(abs_path_.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY))); in OpenImpl()

12