Searched refs:fd_path (Results 1 – 11 of 11) sorted by relevance
/aosp12/system/core/libcutils/ |
H A D | android_get_control_file.cpp | 92 std::string fd_path; in android_get_control_file() local 93 if (!android::base::Realpath(proc, &fd_path)) return -1; in android_get_control_file() 95 if (given_path != fd_path) return -1; in android_get_control_file()
|
/aosp12/system/vold/ |
H A D | Process.cpp | 156 auto fd_path = path + "/fd"; in KillProcessesWithOpenFiles() local 157 auto fd_d = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(fd_path.c_str()), closedir); in KillProcessesWithOpenFiles() 159 PLOG(WARNING) << "Failed to open " << fd_path; in KillProcessesWithOpenFiles() 164 found |= checkSymlink(fd_path + "/" + fd_de->d_name, prefix); in KillProcessesWithOpenFiles()
|
/aosp12/bionic/libc/bionic/ |
H A D | realpath.cpp | 64 FdPath fd_path(fd.get()); in realpath() local 66 ssize_t l = readlink(fd_path.c_str(), dst, sizeof(dst) - 1); in realpath()
|
/aosp12/system/memory/libmeminfo/libdmabufinfo/ |
H A D | dmabufinfo.cpp | 168 std::string fd_path = in ReadDmaBufFdRefs() local 172 if (stat(fd_path.c_str(), &sb) < 0) { in ReadDmaBufFdRefs() 176 PLOG(ERROR) << "Failed to stat: " << fd_path; in ReadDmaBufFdRefs()
|
/aosp12/bootable/recovery/applypatch/ |
H A D | freecache.cpp | 63 std::string fd_path = path + fdde->d_name; in EliminateOpenFiles() local 66 int count = readlink(fd_path.c_str(), link, sizeof(link)-1); in EliminateOpenFiles()
|
/aosp12/frameworks/base/core/jni/ |
H A D | fd_utils.cpp | 259 const std::string fd_path = android::base::StringPrintf("/proc/self/fd/%d", fd); in CreateFromFd() local 260 if (!android::base::Readlink(fd_path, &file_path)) { in CreateFromFd() 262 fd_path.c_str(), in CreateFromFd()
|
/aosp12/system/iorap/src/prefetcher/ |
H A D | session.cc | 340 const char* fd_path = SessionDescription().c_str(); in ProcessFd() local 346 serialize::ProtobufIO::Open(fd, fd_path); in ProcessFd() 349 LOG(ERROR) << "SessionDirect::ProcessFd failed, corrupted protobuf format? " << fd_path; in ProcessFd()
|
/aosp12/system/core/debuggerd/tombstoned/ |
H A D | tombstoned.cpp | 422 std::string fd_path = StringPrintf("/proc/self/fd/%d", fd.get()); in rename_tombstone_fd() local 423 rc = linkat(AT_FDCWD, fd_path.c_str(), dirfd.get(), path.c_str(), AT_SYMLINK_FOLLOW); in rename_tombstone_fd()
|
/aosp12/system/extras/simpleperf/ |
H A D | environment.cpp | 468 std::string fd_path = "/proc/" + std::to_string(pid) + "/fd/"; in HasOpenedAppApkFile() local 469 std::vector<std::string> files = GetEntriesInDir(fd_path); in HasOpenedAppApkFile() 472 if (!android::base::Readlink(fd_path + file, &real_path)) { in HasOpenedAppApkFile()
|
/aosp12/bionic/libc/stdio/ |
H A D | stdio.cpp | 313 FdPath fd_path(fp->_file); in freopen() local 314 if (file == nullptr) file = fd_path.c_str(); in freopen()
|
/aosp12/art/profman/ |
H A D | profman.cc | 653 std::string fd_path = "/proc/self/fd/" + std::to_string(apks_fd_[i]); in ComputeDexLocationsFromApkFds() 654 ssize_t len = readlink(fd_path.c_str(), buffer.data(), buffer.size() - 1); in ComputeDexLocationsFromApkFds()
|