Lines Matching defs:shortname

460 static int putfile(char *longname, char *shortname, char *parent,
505 static void append_ext_attr(char *shortname, char **secinfo, int *len);
519 static int getstat(int dirfd, char *longname, char *shortname,
526 static int put_extra_attributes(char *longname, char *shortname,
528 static int put_xattr_hdr(char *longname, char *shortname, char *longattrname,
1707 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo,
1774 if (getstat(dirfd, longname, shortname, attrparent))
1781 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW);
1876 * -- the length of the fullname equals NAMSIZ, and the shortname
1884 (split == NAMSIZ && strlen(shortname) < NAMSIZ) ||
2010 if (put_extra_attributes(longname, shortname,
2066 if (*shortname != '/')
2067 (void) sprintf(newparent, "%s/%s", parent, shortname);
2069 (void) sprintf(newparent, "%s", shortname);
2071 if (tar_chdir(shortname) < 0) {
2171 i = readlink(shortname, filetmp, readlink_max);
2200 if ((infile = openat(dirfd, shortname, 0)) < 0) {
2206 shortname : longattrname : "");
2212 if (put_link(name, longname, shortname, longattrname,
2263 if (put_extra_attributes(longname, shortname, longattrname,
2313 if (put_link(name, longname, shortname, longattrname,
2353 if (put_extra_attributes(longname, shortname, longattrname,
2365 if (put_link(name, longname, shortname, longattrname,
2404 if (put_extra_attributes(longname, shortname, longattrname,
2416 if (put_link(name, longname, shortname, longattrname,
2455 if (put_extra_attributes(longname, shortname, longattrname,
7656 getstat(int dirfd, char *longname, char *shortname, char *attrparent)
7665 i = fstatat(dirfd, shortname, &stbuf, AT_SYMLINK_NOFOLLOW);
7667 i = fstatat(dirfd, shortname, &stbuf, 0);
7680 j = fstatat(dirfd, shortname,
7743 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent)
7745 char *filename = (attrparent == NULL) ? shortname : attrparent;
7889 xattrs_put(longname, shortname, parent, dp->d_name);
7925 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath)
8018 put_extra_attributes(char *longname, char *shortname, char *longattrname,
8030 if (put_xattr_hdr(longname, shortname, longattrname, prefix,
8048 if ((error = acl_get(shortname, ACL_NO_TRIVIAL,
8067 append_ext_attr(shortname, &secinfo, &len);
8079 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix,
8089 strlen(shortname) + strlen(".hdr") + 1);
8094 sname = malloc(sizeof (char) * strlen(shortname) +
8100 (void) sprintf(sname, "%s.hdr", shortname);
8115 (void) sprintf(lname, "/dev/null/%s", shortname);
8539 append_ext_attr(char *shortname, char **secinfo, int *len)
8582 if (getlabel(shortname, &b_slabel) != 0) {
8586 shortname, strerror(errno));
8593 " %s\n"), shortname);
8617 if (getlabel(shortname, &b_slabel) != 0) {
8621 shortname, strerror(errno));
8627 " label for %s\n"), shortname);