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
69 in = open(argv[1], O_RDONLY | O_BINARY); in main()
79 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
Dsimg2simg.cpp31 #ifndef O_BINARY
32 #define O_BINARY 0 macro
57 in = open(argv[1], O_RDONLY | O_BINARY); in main()
94 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
Doutput_file.cpp41 #define O_BINARY 0 macro
663 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/libcutils/
Dfs_config.cpp44 #ifndef O_BINARY
45 #define O_BINARY 0 macro
254 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY)); in fs_config_open()
259 fd = TEMP_FAILURE_RETRY(open(conf[which][dir], O_RDONLY | O_BINARY)); in fs_config_open()
/system/libbase/
Dfile.cpp65 int fd = _wopen(path.c_str(), O_CREAT | O_EXCL | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR); in mkstemp()
239 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString()
273 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile()
301 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.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()
446 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile()
/system/extras/simpleperf/
Dutils.cpp75 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY | O_BINARY)); in OpenReadOnly()
80 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_WRONLY | O_BINARY | O_CREAT, 0644)); in OpenWriteOnly()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp112 android::base::unique_fd fd(open(device.c_str(), O_WRONLY | O_BINARY)); in InitializeKernelCow()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp146 open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in testWriteBlockAndPageRead()
189 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in testWaitForPendingReads()
231 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
434 open(mountPath(test_file_name_).c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1188 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1255 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1312 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
1364 const android::base::unique_fd fd(open(file_path.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in TEST_F()
/system/core/fastboot/device/
Dutility.cpp94 flags |= (O_EXCL | O_CLOEXEC | O_BINARY); in OpenPartition()
/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.cc168 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
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()
201 int fd = open((test_data_dir + "/" + kValidZip).c_str(), O_RDONLY | O_BINARY); in TEST()
613 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); in TEST()
Dzip_archive.cc631 const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0); in OpenArchive()
/system/iorap/src/perfetto/
Drx_producer.cc553 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in WriteFullyToFile()
599 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFullyFromFile()
/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.cpp54 #ifndef O_BINARY
55 # define O_BINARY 0 macro
/system/apex/apexd/
Dapex_file.cpp88 unique_fd fd(open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in Open()
/system/core/fastboot/
Dfastboot.cpp249 unique_fd fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY))); in ReadFileToVector()
953 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); in load_buf()
1317 open(outfile.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0644))); in do_fetch()
1654 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()
/system/core/init/
Dselinux.cpp328 unique_fd fd(open(res->c_str(), O_RDONLY | O_CLOEXEC | O_BINARY)); in OpenSplitPolicy()
Dreboot.cpp103 LAST_REBOOT_REASON_FILE, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY, 0666))); in PersistRebootReason()