Lines Matching defs:path
172 static struct lnstat_file *alloc_and_open(const char *path, const char *file)
186 strcpy(lf->path, path);
187 strcat(lf->path, "/");
188 strcat(lf->path, lf->basename);
194 lf->fp = fopen(lf->path, "r");
205 struct lnstat_file *lnstat_scan_dir(const char *path, const int num_req_files,
212 if (!path)
213 path = PROC_NET_STAT;
215 dir = opendir(path);
261 lf = alloc_and_open(path, de->d_name);
285 fprintf(outfd, "%s:\n", lf->path);