Searched refs:dir_fd (Results 1 – 3 of 3) sorted by relevance
/aosp14/system/core/init/ |
H A D | persistent_properties.cpp | 215 auto dir_fd = unique_fd{open(dir.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)}; in WritePersistentPropertyFile() 216 if (dir_fd < 0) { in WritePersistentPropertyFile() 219 fsync(dir_fd.get()); in WritePersistentPropertyFile()
|
/aosp14/system/core/debuggerd/tombstoned/ |
H A D | tombstoned.cpp | 193 borrowed_fd dir_fd() { return dir_fd_; } in dir_fd() function in CrashQueue 458 if (rename_tombstone_fd(crash->output.text.fd, queue->dir_fd(), paths.text)) { in crash_completed() 473 rename_tombstone_fd(crash->output.proto->fd, queue->dir_fd(), *paths.proto); in crash_completed() 479 rc = unlinkat(queue->dir_fd().get(), crash->output.text.temporary_path->c_str(), 0); in crash_completed() 485 rc = unlinkat(queue->dir_fd().get(), crash->output.proto->temporary_path->c_str(), 0); in crash_completed()
|
/aosp14/frameworks/base/core/jni/ |
H A D | fd_utils.cpp | 478 static int ParseFd(dirent* dir_entry, int dir_fd); 502 int dir_fd = dirfd(proc_fd_dir); in GetOpenFdsIgnoring() local 505 const int fd = ParseFd(dir_entry, dir_fd); in GetOpenFdsIgnoring() 631 static int ParseFd(dirent* dir_entry, int dir_fd) { in ParseFd() argument 640 if (fd <= STDERR_FILENO || fd == dir_fd) { in ParseFd()
|