Lines Matching refs:path
53 static char path[ BUFSIZ ]; local
96 strcpy(path, include);
98 strncpy(path, file, (p-file) + 1);
99 path[ (p-file) + 1 ] = '\0';
100 strcpy(path + (p-file) + 1, include);
102 remove_dotdot(path);
103 if ((exists_path(incCollection, path)) && stat(path, &st) == 0 && !( st.st_mode & S_IFDIR)) {
104 ip = newinclude(path, include);
108 warning1("\tnot in %s\n", path);
117 sprintf(path, "%s/%s", *pp, include);
118 remove_dotdot(path);
119 if ((exists_path(incCollection, path)) && stat(path, &st) == 0 && !(st.st_mode & S_IFDIR)) {
120 ip = newinclude(path, include);
125 warning1("\tnot in %s\n", path);
133 int exists_path(incCollection, path) in exists_path() argument
135 char* path;
137 convert_slashes(path);
138 return call_IncludesCollection_exists(incCollection, path);
146 void remove_dotdot(path) in remove_dotdot() argument
147 char *path; in remove_dotdot()
158 if (*path == '/')
162 for (from=end=path; *end; end++)
212 strcpy(path, newpath);