Home
last modified time | relevance | path

Searched refs:fd_path (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/memory/
Dshared_memory_helper.cc124 char fd_path[PATH_MAX]; in PrepareMapFile() local
134 memset(fd_path, 0, arraysize(fd_path)); in PrepareMapFile()
135 snprintf(fd_path, arraysize(fd_path) - 1, "/proc/self/fd/%d", i); in PrepareMapFile()
136 ssize_t count = readlink(fd_path, buf, arraysize(buf) - 1); in PrepareMapFile()
138 PLOG(ERROR) << "readlink failed for: " << fd_path; in PrepareMapFile()
/external/iproute2/ip/
Diptuntap.c312 char **fd_path; in show_processes() local
320 fd_path = globbuf.gl_pathv; in show_processes()
321 while (*fd_path) { in show_processes()
328 if (sscanf(*fd_path, "/proc/%d/fd/%d", &pid, &fd) != 2) in show_processes()
334 err = readlink(*fd_path, linkbuf, linkbuf_len - 1); in show_processes()
377 ++fd_path; in show_processes()
/external/crosvm/sys_util/src/
Dshm.rs320 let fd_path = format!("/proc/self/fd/{}", shm.as_raw_fd()); in new_named() localVariable
322 read_link(fd_path).expect("failed to read link of shared memory /proc/self/fd entry"); in new_named()
/external/libchrome/base/process/
Dprocess_metrics_linux.cc262 FilePath fd_path = internal::GetProcPidDir(process_).Append("fd"); in GetOpenFdCount() local
264 DirReaderPosix dir_reader(fd_path.value().c_str()); in GetOpenFdCount()
280 FilePath fd_path = internal::GetProcPidDir(process_).Append("limits"); in GetOpenFdSoftLimit() local
283 if (!ReadFileToString(fd_path, &limits_contents)) in GetOpenFdSoftLimit()
/external/linux-kselftest/tools/testing/selftests/exec/
Dexecveat.c236 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() local
274 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests()
/external/minijail/
Dlibminijail.c1091 char *fd_path, *path; in minijail_parse_seccomp_filters_from_fd() local
1102 if (asprintf(&fd_path, "/proc/self/fd/%d", fd) == -1) in minijail_parse_seccomp_filters_from_fd()
1104 path = realpath(fd_path, NULL); in minijail_parse_seccomp_filters_from_fd()
1107 free(fd_path); in minijail_parse_seccomp_filters_from_fd()