Lines Matching defs:path
78 char path[MAXPATHLEN + 1];
86 len = snprintf(path, sizeof(path), "%s/%s", root, dir);
87 if (len >= (int)sizeof(path))
90 printf("walk_dir: %s %p\n", path, parent);
91 if ((dirp = opendir(path)) == NULL)
92 err(1, "Can't opendir `%s'", path);
93 rp = path + strlen(root) + 1;
121 if (snprintf(path + len, sizeof(path) - len, "/%s", name) >=
122 (int)sizeof(path) - len)
124 if (lstat(path, &stbuf) == -1)
125 err(1, "Can't lstat `%s'", path);
129 printf(" skipping socket %s\n", path);
150 path, cur->child);
156 inode_type(stbuf.st_mode), path,
200 llen = readlink(path, slink, sizeof(slink) - 1);
202 err(1, "Readlink `%s'", path);
218 create_fsnode(const char *root, const char *path, const char *name,
224 (cur->path = strdup(path)) == NULL ||
291 free(cur->path);
340 char path[MAXPATHLEN + 1];
399 if (snprintf(path, sizeof(path), "%s/%s",
400 dir, curnode->name) >= sizeof(path))
410 lstat(path, &stbuf) == -1)
416 errx(1, "`%s': %s not provided", path, m)
466 errx(1, "`%s' is not a directory", path);
468 apply_specdir(path, curnode, curfsnode->child, speconly);
565 char path[MAXPATHLEN + 1];
567 printf("dump_fsnodes: %s %p\n", root->path, root);
569 if (snprintf(path, sizeof(path), "%s/%s", cur->path,
570 cur->name) >= (int)sizeof(path))
576 printf("%7s: %s", inode_type(cur->type), path);
592 printf("dump_fsnodes: finished %s/%s\n", root->path, root->name);