Lines Matching refs:path
29 char path[FILENAME_MAX]; in EliminateOpenFiles() local
30 strcpy(path, "/proc/"); in EliminateOpenFiles()
31 strcat(path, de->d_name); in EliminateOpenFiles()
32 strcat(path, "/fd/"); in EliminateOpenFiles()
36 fdd = opendir(path); in EliminateOpenFiles()
38 printf("error opening %s: %s\n", path, strerror(errno)); in EliminateOpenFiles()
44 strcpy(fd_path, path); in EliminateOpenFiles()
81 char path[FILENAME_MAX]; in FindExpendableFiles() local
97 strcpy(path, dirs[i]); in FindExpendableFiles()
98 strcat(path, "/"); in FindExpendableFiles()
99 strcat(path, de->d_name); in FindExpendableFiles()
104 if (strcmp(path, CACHE_TEMP_SOURCE) == 0) continue; in FindExpendableFiles()
107 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { in FindExpendableFiles()
112 (*names)[(*entries)++] = strdup(path); in FindExpendableFiles()