Lines Matching refs:path
36 * int ftw (path, fn, depth) char *path; int (*fn)(); int depth;
38 * Given a path name, ftw starts from the file given by that path
43 * The first contains the path name of the object, the second
108 ftw(path, fn, depth)
109 char *path;
121 if(stat(path, &sb) < 0) {
123 return((*fn)(path, &sb, FTW_NS));
126 if (lstat(path, &sb) < 0) {
131 return((*fn)(path, &sb, FTW_NS));
146 return((*fn)(path, &sb, FTW_F));
153 dirp = opendir(path);
162 return(errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1);
165 rc = (*fn)(path, &sb, FTW_D);
170 n = strlen(path);
179 (void)strcpy(subpath, path);
187 * just create a path name and call self to check it out.
194 /* Append component name to the working path */
222 dirp = opendir(path);