Lines Matching refs:shortname
462 static int putfile(char *longname, char *shortname, char *parent,
507 static void append_ext_attr(char *shortname, char **secinfo, int *len);
521 static int getstat(int dirfd, char *longname, char *shortname,
528 static int put_extra_attributes(char *longname, char *shortname,
530 static int put_xattr_hdr(char *longname, char *shortname, char *longattrname,
1746 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo, in putfile() argument
1813 if (getstat(dirfd, longname, shortname, attrparent)) in putfile()
1820 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW); in putfile()
1923 (split == NAMSIZ && strlen(shortname) < NAMSIZ) || in putfile()
2049 if (put_extra_attributes(longname, shortname, in putfile()
2105 if (*shortname != '/') in putfile()
2106 (void) sprintf(newparent, "%s/%s", parent, shortname); in putfile()
2108 (void) sprintf(newparent, "%s", shortname); in putfile()
2110 if (tar_chdir(shortname) < 0) { in putfile()
2210 i = readlink(shortname, filetmp, readlink_max); in putfile()
2239 if ((infile = openat(dirfd, shortname, 0)) < 0) { in putfile()
2245 shortname : longattrname : ""); in putfile()
2251 if (put_link(name, longname, shortname, longattrname, in putfile()
2302 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2352 if (put_link(name, longname, shortname, longattrname, in putfile()
2392 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2404 if (put_link(name, longname, shortname, longattrname, in putfile()
2443 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2455 if (put_link(name, longname, shortname, longattrname, in putfile()
2494 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
7701 getstat(int dirfd, char *longname, char *shortname, char *attrparent) in getstat() argument
7710 i = fstatat(dirfd, shortname, &stbuf, AT_SYMLINK_NOFOLLOW); in getstat()
7712 i = fstatat(dirfd, shortname, &stbuf, 0); in getstat()
7725 j = fstatat(dirfd, shortname, in getstat()
7788 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent) in xattrs_put() argument
7790 char *filename = (attrparent == NULL) ? shortname : attrparent; in xattrs_put()
7934 xattrs_put(longname, shortname, parent, dp->d_name); in xattrs_put()
7970 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath) in xattrs_put() argument
8063 put_extra_attributes(char *longname, char *shortname, char *longattrname, in put_extra_attributes() argument
8075 if (put_xattr_hdr(longname, shortname, longattrname, prefix, in put_extra_attributes()
8093 if ((error = acl_get(shortname, ACL_NO_TRIVIAL, in put_extra_attributes()
8112 append_ext_attr(shortname, &secinfo, &len); in put_extra_attributes()
8124 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix, in put_xattr_hdr() argument
8134 strlen(shortname) + strlen(".hdr") + 1); in put_xattr_hdr()
8139 sname = malloc(sizeof (char) * strlen(shortname) + in put_xattr_hdr()
8145 (void) sprintf(sname, "%s.hdr", shortname); in put_xattr_hdr()
8160 (void) sprintf(lname, "/dev/null/%s", shortname); in put_xattr_hdr()
8584 append_ext_attr(char *shortname, char **secinfo, int *len) in append_ext_attr() argument
8627 if (getlabel(shortname, &b_slabel) != 0) { in append_ext_attr()
8631 shortname, strerror(errno)); in append_ext_attr()
8638 " %s\n"), shortname); in append_ext_attr()
8662 if (getlabel(shortname, &b_slabel) != 0) { in append_ext_attr()
8666 shortname, strerror(errno)); in append_ext_attr()
8672 " label for %s\n"), shortname); in append_ext_attr()