Home
last modified time | relevance | path

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

/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/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()
250 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString()
284 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile()
312 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/core/fs_mgr/liblp/
Dimages.cpp220 unique_fd fd(open(file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY, 0644)); in Export()
245 O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles()
485 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile()
/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/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()
627 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); in TEST()
Dzip_archive.cc701 const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0); in OpenArchive()
/system/core/toolbox/
Dmodprobe.cpp167 fd = open(optarg, O_RDONLY | O_CLOEXEC | O_BINARY); in modprobe_main()
/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/
Daidl.cpp57 #ifndef O_BINARY
58 # define O_BINARY 0 macro
/system/apex/apexd/
Dapex_file.cpp89 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in Open()
/system/tools/aidl/analyzer/
DanalyzerMain.cpp66 int openFlags = O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC | O_BINARY; in startRecording()
/system/core/init/
Dselinux.cpp245 unique_fd fd(open(res->c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in OpenSplitPolicy()
Dreboot.cpp105 LAST_REBOOT_REASON_FILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0666))); in PersistRebootReason()
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp150 open(abs_path_.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY))); in OpenImpl()
Dfastboot.cpp234 unique_fd fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY))); in ReadFileToVector()
1081 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); in load_buf()
1457 open(outfile.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0644))); in do_fetch()
1960 return unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_BINARY))); in OpenFile()