/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/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() 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()
|
D | utf8_test.cpp | 465 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY; in TEST()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 220 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/ |
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/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() 627 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); in TEST()
|
D | zip_archive.cc | 701 const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0); in OpenArchive()
|
/system/core/toolbox/ |
D | modprobe.cpp | 167 fd = open(optarg, O_RDONLY | O_CLOEXEC | O_BINARY); in modprobe_main()
|
/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/ |
D | aidl.cpp | 57 #ifndef O_BINARY 58 # define O_BINARY 0 macro
|
/system/apex/apexd/ |
D | apex_file.cpp | 89 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in Open()
|
/system/tools/aidl/analyzer/ |
D | analyzerMain.cpp | 66 int openFlags = O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC | O_BINARY; in startRecording()
|
/system/core/init/ |
D | selinux.cpp | 245 unique_fd fd(open(res->c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in OpenSplitPolicy()
|
D | reboot.cpp | 105 LAST_REBOOT_REASON_FILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0666))); in PersistRebootReason()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils_test.cpp | 150 open(abs_path_.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY))); in OpenImpl()
|
D | fastboot.cpp | 234 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()
|