Lines Matching +defs:pathname +defs:name
20 * 3. Neither the name of the University nor the names of its contributors
142 * on disk for extraction by name.
190 curfile.name = "<directory file - name unknown>";
240 * Pname is name of a simple file or an unchanged directory.
246 * Pname is a dumped directory name.
275 fprintf(stderr, "%s%s: name exceeds %zu char\n",
288 * Lookup a pathname which is always assumed to start from the root inode.
291 pathsearch(const char *pathname)
295 char *path, *name, buffer[MAXPATHLEN];
297 strcpy(buffer, pathname);
303 while ((name = strsep(&path, "/")) != NULL && *name != '\0') {
304 if ((dp = searchdir(ino, name)) == NULL)
312 * Lookup the requested name in directory inum.
316 searchdir(ino_t inum, char *name)
326 len = strlen(name);
331 } while (dp->d_namlen != len || strncmp(dp->d_name, name, len) != 0);
387 "reclen name too big (%d > %d) ",
534 rst_opendir(const char *name)
540 if ((ino = dirlookup(name)) > 0 &&
575 opendirfile(const char *name)
580 if ((fd = open(name, O_RDONLY)) == -1)
713 genliteraldir(const char *name, ino_t ino)
722 (uintmax_t)ino, name);
723 if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
724 fprintf(stderr, "%s: ", name);
735 "write error extracting inode %ju, name %s\n",
736 (uintmax_t)curfile.ino, curfile.name);
742 "write error extracting inode %ju, name %s\n",
743 (uintmax_t)curfile.ino, curfile.name);