Lines Matching refs:path

65 	char	*path;  member
83 static void findlink(struct cfent *ept, char *path, char *svpath);
84 static void follow(char *path);
85 static void output(char *path, int n, char *local);
92 char *pt, path[PATH_MAX]; in main() local
153 while (fgets(path, sizeof (path), stdin) != (char *)NULL) { in main()
154 output(path, 0, NULL); in main()
166 output(char *path, int n, char *local) in output() argument
177 len = strlen(path); in output()
178 while ((len > 0) && (path[len-1] == '\n')) { in output()
179 path[--len] = '\0'; in output()
184 entry.path = mypath; in output()
186 (void) strlcpy(entry.path, path, PATH_MAX); in output()
195 if (cverify(0, &entry.ftype, path, &entry.cinfo, 1)) { in output()
197 logerr(gettext("ERROR: %s"), path); in output()
210 if ((s = averify(0, &entry.ftype, path, &entry.ainfo)) == VE_EXIST && in output()
214 if ((s = readlink(path, mylocal, PATH_MAX)) > 0) { in output()
217 if (averify(0, &entry.ftype, path, &entry.ainfo)) { in output()
222 mylocal, path); in output()
230 logerr(gettext("ERROR: %s"), path); in output()
239 (void) strlcpy(entry.ainfo.local, entry.path, in output()
245 (void) strlcpy(entry.path, local, PATH_MAX); in output()
246 (void) strcat(entry.path, path+n); in output()
248 (void) strlcpy(entry.path, in output()
249 (path[n] == '/') ? path+n+1 : path+n, in output()
253 canonize(entry.path); in output()
254 if (entry.path[0]) { in output()
255 findlink(&entry, path, entry.path); in output()
267 follow(char *path) in follow() argument
279 if (pt = strchr(path, '=')) { in follow()
281 n = ((unsigned int)pt - (unsigned int)path - 1); in follow()
292 n = strlen(path); in follow()
303 if (stat(path, &stbuf)) { in follow()
304 progerr(gettext(ERR_STAT), path); in follow()
310 (void) snprintf(cmd, sizeof (cmd), "find %s -print", path); in follow()
322 output(path, n, local); in follow()
444 findlink(struct cfent *ept, char *path, char *svpath) in findlink() argument
451 if (lstat(path, &statbuf)) { in findlink()
452 progerr(gettext(ERR_STAT), path); in findlink()
459 n = readlink(path, buf, PATH_MAX); in findlink()
461 progerr(gettext(ERR_RDLINK), path); in findlink()
473 if (stat(path, &statbuf)) in findlink()
484 scan_raw_ln(link->path, ept->path), in findlink()
500 new->path = strdup(svpath); in findlink()