Home
last modified time | relevance | path

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

12

/system/core/libutils/include/utils/
DCompat.h56 #define O_NOFOLLOW 0 macro
/system/libbase/
Dfile.cpp41 #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/
Dpersistent_properties.cpp73 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()
Dutil_test.cpp107 int fd = open(path.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in TEST()
Dutil.cpp157 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()
Dselinux.cpp470 policy_file->fd.reset(open(kSepolicyFile, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in OpenMonolithicPolicy()
/system/core/libcutils/
Dfs.cpp89 : 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/
Dlibgsi.cpp49 unique_fd fd(open(file.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in WriteAndSyncFile()
/system/core/libmodprobe/
Dlibmodprobe_ext.cpp36 TEMP_FAILURE_RETRY(open(path_name.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in Insmod()
/system/netd/server/
DProcess.cpp53 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
/system/hwservicemanager/
DTokenManager.cpp35 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp335 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()
Dimage_test.cpp108 unique_fd fd(open(path.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC)); in TEST_F()
Dfiemap_writer.cpp487 android::base::unique_fd fd(open(file_path.c_str(), O_NOFOLLOW | O_CLOEXEC | O_RDONLY)); in HasPinnedExtents()
/system/core/fs_mgr/liblp/
Dimages.cpp35 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/
Dproperty_info_parser.cpp200 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in LoadPath()
/system/update_engine/aosp/
Dlogging_android.cc125 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_SYNC, in FileLogger()
/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/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/extras/libfscrypt/
Dfscrypt.cpp326 android::base::unique_fd fd(open(directory.c_str(), O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in EnsurePolicy()
/system/vold/
DIdleMaint.cpp173 int fd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW); in Trim()
DUtils.cpp783 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/
Dcompile_ioshark.c58 { "O_NOFOLLOW", O_NOFOLLOW },
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp150 open(abs_path_.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY))); in OpenImpl()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp395 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CheckCreateLoopDevice()

12