Searched refs:fd_path (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/base/memory/ |
D | shared_memory_helper.cc | 124 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/ |
D | iptuntap.c | 312 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/libchrome/base/process/ |
D | process_metrics_linux.cc | 262 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/ |
D | execveat.c | 237 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() local 275 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests()
|
/external/minijail/ |
D | libminijail.c | 1018 char *fd_path, *path; in minijail_parse_seccomp_filters_from_fd() local 1029 if (asprintf(&fd_path, "/proc/self/fd/%d", fd) == -1) in minijail_parse_seccomp_filters_from_fd() 1031 path = realpath(fd_path, NULL); in minijail_parse_seccomp_filters_from_fd() 1034 free(fd_path); in minijail_parse_seccomp_filters_from_fd()
|