Home | History | Annotate | Download | only in squashfs-tools

Lines Matching defs:pathname

92 extern char *pathname(struct dir_ent *);
887 action_data.pathname = strdup(pathname(dir_ent));
907 free(action_data.pathname);
921 action_data.pathname = strdup(pathname(dir_ent));
931 free(action_data.pathname);
937 free(action_data.pathname);
975 int eval_exclude_actions(char *name, char *pathname, char *subpath,
982 action_data.pathname = pathname;
1524 action_data.pathname = strdup(pathname(dir_ent));
1555 free(action_data.pathname);
1577 char *name, *pathname;
1586 res = asprintf(&pathname, "%s/%s", dest->subpath, name);
1588 res = asprintf(&pathname, "/%s", name);
1593 return pathname;
1597 static char *get_comp(char **pathname)
1599 char *path = *pathname, *start;
1611 *pathname = path;
1629 struct dir_info *root, struct dir_ent *dir_ent, char *pathname)
1633 char *comp, *path = pathname;
1636 * Walk pathname to get the destination directory
1643 if (pathname[0] == '/')
1644 /* absolute pathname, walk from root directory */
1647 /* relative pathname, walk from current directory */
1650 for(comp = get_comp(&pathname); comp; free(comp),
1651 comp = get_comp(&pathname)) {
1665 * directory continue walking the pathname, otherwise exit,
1680 char *remainder = get_comp(&pathname);
1768 action_data.pathname = strdup(pathname(dir_ent));
1849 free(action_data.pathname);
1878 char *filename = pathname(dir_ent);
1917 * parent directory's pathname to calculate the pathname
1931 * directory's pathname to calculate the pathname, we need
1992 action_data.pathname = strdup(pathname(dir_ent));
2002 free(action_data.pathname);
2220 * Name, Pathname and Subpathname test specific code
2224 * Add a leading "/" if subpathname and pathname lacks it
2248 TEST_FN(pathname, ACTION_ALL_LNK, \
2556 execlp("file", "file", "-b", action_data->pathname,
2636 * PATHNAME: pathname of file relative to squashfs root
2637 * SOURCE_PATHNAME: the pathname of the file in the source
2644 res = setenv("PATHNAME", action_data->subpath, 1);
2648 res = setenv("SOURCE_PATHNAME", action_data->pathname, 1);
2674 * Walk the supplied pathname and return the directory entry corresponding
2675 * to the pathname. If any symlinks are encountered whilst walking the
2676 * pathname, then recursively walk these, to obtain the fully
2679 * If follow_path fails to walk a pathname either because a component
2685 static struct dir_ent *follow_path(struct dir_info *dir, char *pathname)
2687 char *comp, *path = pathname;
2691 if(pathname[0] == '/')
2705 /* Failed to walk pathname */
2712 /* Doesn't exist, failed to walk pathname */
2732 * pathname, or because we've hit a non-directory, in which case
2742 /* Fully walked pathname, dir_ent contains correct value unless
2855 * Note, stat() deliberately does not evaluate the pathname, name or
2859 * contained then pathname, name and depth are meaningless as they
2865 res = stat(action_data->pathname, &buf);
2902 * Thus the inode attributes, pathname, name and depth all refer to
2907 * walk the pathname (see follow_path above), then FALSE is returned.
2924 eval_action.pathname = strdup(pathname(dir_ent));
2939 free(eval_action.pathname);
3026 eval_action.pathname = strdup(pathname(dir_ent));
3043 free(eval_action.pathname);
3209 { "pathname", 1, pathname_fn, check_pathname, 1, 0},