/system/core/libutils/include/utils/ |
D | Compat.h | 56 #define O_NOFOLLOW 0 macro
|
/system/libbase/ |
D | file.cpp | 41 #define O_NOFOLLOW 0 macro 239 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString() 274 (follow_symlinks ? 0 : O_NOFOLLOW); in WriteStringToFile() 302 (follow_symlinks ? 0 : O_NOFOLLOW); in WriteStringToFile()
|
/system/core/init/ |
D | persistent_properties.cpp | 73 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in LoadLegacyPersistentProperties() 176 open(temp_filename.c_str(), O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0600))); in WritePersistentPropertyFile()
|
D | util_test.cpp | 107 int fd = open(path.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in TEST()
|
D | util.cpp | 157 TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in ReadFile() 198 OpenFile(path, O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0600))); in WriteFile()
|
D | selinux.cpp | 470 policy_file->fd.reset(open(kSepolicyFile, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in OpenMonolithicPolicy()
|
/system/core/libcutils/ |
D | fs.cpp | 89 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY, 0644)); in fs_prepare_path_impl() 255 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) { in fs_mkdirs()
|
/system/gsid/ |
D | libgsi.cpp | 49 unique_fd fd(open(file.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in WriteAndSyncFile()
|
/system/core/libmodprobe/ |
D | libmodprobe_ext.cpp | 36 TEMP_FAILURE_RETRY(open(path_name.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in Insmod()
|
/system/netd/server/ |
D | Process.cpp | 53 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
|
/system/hwservicemanager/ |
D | TokenManager.cpp | 35 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 335 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CreateLoopDevice() 401 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in MapWithLoopDeviceList() 445 unique_fd fd(open(device.c_str(), O_RDWR | O_CLOEXEC | O_NOFOLLOW)); in OptimizeLoopDevices()
|
D | image_test.cpp | 108 unique_fd fd(open(path.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC)); in TEST_F()
|
D | fiemap_writer.cpp | 487 android::base::unique_fd fd(open(file_path.c_str(), O_NOFOLLOW | O_CLOEXEC | O_RDONLY)); in HasPinnedExtents()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 35 static const int O_NOFOLLOW = 0; variable 211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles()
|
/system/core/property_service/libpropertyinfoparser/ |
D | property_info_parser.cpp | 200 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in LoadPath()
|
/system/update_engine/aosp/ |
D | logging_android.cc | 125 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_SYNC, in FileLogger()
|
/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/iorap/src/perfetto/ |
D | rx_producer.cc | 553 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/extras/libfscrypt/ |
D | fscrypt.cpp | 326 android::base::unique_fd fd(open(directory.c_str(), O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in EnsurePolicy()
|
/system/vold/ |
D | IdleMaint.cpp | 173 int fd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW); in Trim()
|
D | Utils.cpp | 783 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes() 1289 openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in delete_dir_contents() 1416 open(filename.c_str(), O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0666))); in writeStringToFile()
|
/system/extras/ioshark/ |
D | compile_ioshark.c | 58 { "O_NOFOLLOW", O_NOFOLLOW },
|
/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()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz_utils.cpp | 395 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CheckCreateLoopDevice()
|