Home
last modified time | relevance | path

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

/system/core/base/
Dfile.cpp49 TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadFileToString()
84 open(path.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in WriteStringToFile()
112 open(path.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in WriteStringToFile()
/system/core/include/utils/
DCompat.h40 #define O_NOFOLLOW 0 macro
/system/netd/server/
Dmain.cpp44 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
/system/core/init/
Dutil.cpp155 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY|O_NOFOLLOW|O_CLOEXEC)); in read_file()
178 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_CLOEXEC, 0600)); in write_file()
Dproperty_service.cpp86 pa_workspace.fd = open(PROP_FILENAME, O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in property_init()
456 int fd = openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW); in load_persistent_properties()
Dinit.cpp668 open("/dev/hw_random", O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in mix_hwrng_into_linux_rng_action()
681 open("/dev/urandom", O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in mix_hwrng_into_linux_rng_action()
/system/vold/
DTrimTask.cpp120 int fd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW); in run()
DUtils.cpp354 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in ReadRandomBytes()
DVolumeManager.cpp1244 int fd = open(ftsent->fts_accpath, O_NOFOLLOW | O_CLOEXEC); in fixupAsecPermissions()
/system/core/libcutils/
Dfs.c215 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) { in fs_mkdirs()
/system/core/debuggerd/
Dtombstone.cpp729 *fd = open(path, O_CREAT | O_EXCL | O_WRONLY | O_NOFOLLOW | O_CLOEXEC, 0600); in find_and_open_tombstone()
744 *fd = open(path, O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC, 0600); in find_and_open_tombstone()
/system/core/sdcard/
Dsdcard.c443 int fd = open(path, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, mode); in touch()
/system/security/keystore/
Dkeystore.cpp2287 int fd = TEMP_FAILURE_RETRY(open(filename.string(), O_NOFOLLOW, O_RDONLY)); in getmtime()