/system/core/libsparse/ |
D | simg2img.cpp | 28 #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()
|
D | append2simg.cpp | 31 #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()
|
D | img2simg.cpp | 31 #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()
|
D | output_file.cpp | 41 #define O_BINARY 0 macro 777 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk()
|
/system/libbase/include/android-base/ |
D | file.h | 28 #if !defined(_WIN32) && !defined(O_BINARY) 30 #define O_BINARY 0 macro
|
/system/core/fastboot/device/ |
D | utility.h | 49 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/ |
D | fs_config.cpp | 44 #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/ |
D | images.cpp | 127 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/ |
D | utility.cpp | 117 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/ |
D | file.cpp | 66 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()
|
D | utf8_test.cpp | 465 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY; in TEST()
|
/system/extras/partition_tools/ |
D | lpmake.cc | 49 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/ |
D | incfs_test.cpp | 150 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/ |
D | metadata.cpp | 114 …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/ |
D | utils.cpp | 78 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/ |
D | LogTags.cpp | 100 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/ |
D | zip_archive_test.cc | 178 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/ |
D | aidl.cpp | 57 #ifndef O_BINARY 58 # define O_BINARY 0 macro
|
/system/core/init/ |
D | selinux.cpp | 354 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()
|
D | reboot.cpp | 105 LAST_REBOOT_REASON_FILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0666))); in PersistRebootReason()
|
/system/incremental_delivery/incfs/tests/util/ |
D | map_ptr_test.cpp | 71 return android::base::unique_fd(open(mount_path_.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in GetFd()
|
/system/tools/aidl/analyzer/ |
D | analyzerMain.cpp | 50 int openFlags = O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC | O_BINARY; in startRecording()
|
/system/apex/apexd/ |
D | apex_file.cpp | 89 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in Open()
|
/system/core/fastboot/ |
D | fastboot.cpp | 233 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()
|
D | vendor_boot_img_utils_test.cpp | 150 open(abs_path_.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY))); in OpenImpl()
|