Searched refs:fd_path (Results 1 – 8 of 8) 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/minigbm/ |
D | minigbm_helpers.c | 57 char fd_path[64]; in fd_node_num() local 61 snprintf(fd_path, sizeof(fd_path), "/proc/self/fd/%d", fd); in fd_node_num() 63 dri_node_size = readlink(fd_path, dri_node, sizeof(dri_node)); in fd_node_num()
|
/external/crosvm/sys_util/src/ |
D | shm.rs | 203 let fd_path = format!("/proc/self/fd/{}", self.as_raw_fd()); in read_name() localVariable 204 let link_name = read_link(fd_path)?; in read_name()
|
/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 | 236 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/libusb/libusb/os/ |
D | linux_usbfs.c | 598 char *fd_path = alloca(PATH_MAX); in linux_get_device_address() local 603 r = readlink(proc_path, fd_path, PATH_MAX - 1); in linux_get_device_address() 605 fd_path[r] = '\0'; in linux_get_device_address() 606 dev_node = fd_path; in linux_get_device_address()
|
/external/minijail/ |
D | libminijail.c | 1146 char *fd_path, *path; in minijail_parse_seccomp_filters_from_fd() local 1157 if (asprintf(&fd_path, "/proc/self/fd/%d", fd) == -1) in minijail_parse_seccomp_filters_from_fd() 1159 path = realpath(fd_path, NULL); in minijail_parse_seccomp_filters_from_fd() 1162 free(fd_path); in minijail_parse_seccomp_filters_from_fd()
|