Lines Matching defs:path
78 char path[NAME_MAX + 1 + 6];
100 snprintf(path, sizeof(path), "/proc/%s", dirent->d_name);
105 if (stat(path, &st) != 0 || st.st_uid != uid)
109 snprintf(path, sizeof(path), "/proc/%d/task", pid);
110 items = scandir(path, &namelist, filter, NULL);
320 char *path;
324 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1)
327 err = filename__read_str(path, comm, &size);
338 free(path);