Lines Matching defs:shortname

455 static int putfile(char *longname, char *shortname, char *parent,
500 static void append_ext_attr(char *shortname, char **secinfo, int *len);
514 static int getstat(int dirfd, char *longname, char *shortname,
521 static int put_extra_attributes(char *longname, char *shortname,
523 static int put_xattr_hdr(char *longname, char *shortname, char *longattrname,
1818 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo,
1885 if (getstat(dirfd, longname, shortname, attrparent))
1892 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW);
1987 * -- the length of the fullname equals NAMSIZ, and the shortname
1995 (split == NAMSIZ && strlen(shortname) < NAMSIZ) ||
2121 if (put_extra_attributes(longname, shortname,
2176 if (*shortname != '/')
2177 (void) sprintf(newparent, "%s/%s", parent, shortname);
2179 (void) sprintf(newparent, "%s", shortname);
2181 if (tar_chdir(shortname) < 0) {
2281 i = readlink(shortname, filetmp, readlink_max);
2310 if ((infile = openat(dirfd, shortname, 0)) < 0) {
2316 shortname : longattrname : "");
2322 if (put_link(name, longname, shortname, longattrname,
2369 if (put_extra_attributes(longname, shortname, longattrname,
2419 if (put_link(name, longname, shortname, longattrname,
2455 if (put_extra_attributes(longname, shortname, longattrname,
2467 if (put_link(name, longname, shortname, longattrname,
2502 if (put_extra_attributes(longname, shortname, longattrname,
2514 if (put_link(name, longname, shortname, longattrname,
2550 if (put_extra_attributes(longname, shortname, longattrname,
7743 getstat(int dirfd, char *longname, char *shortname, char *attrparent)
7752 i = fstatat(dirfd, shortname, &stbuf, AT_SYMLINK_NOFOLLOW);
7754 i = fstatat(dirfd, shortname, &stbuf, 0);
7767 j = fstatat(dirfd, shortname,
7830 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent)
7832 char *filename = (attrparent == NULL) ? shortname : attrparent;
7976 xattrs_put(longname, shortname, parent, dp->d_name);
8012 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath)
8103 put_extra_attributes(char *longname, char *shortname, char *longattrname,
8115 if (put_xattr_hdr(longname, shortname, longattrname, prefix,
8133 if ((error = acl_get(shortname, ACL_NO_TRIVIAL,
8152 append_ext_attr(shortname, &secinfo, &len);
8164 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix,
8174 strlen(shortname) + strlen(".hdr") + 1);
8179 sname = malloc(sizeof (char) * strlen(shortname) +
8185 (void) sprintf(sname, "%s.hdr", shortname);
8200 (void) sprintf(lname, "/dev/null/%s", shortname);
8624 append_ext_attr(char *shortname, char **secinfo, int *len)
8667 if (getlabel(shortname, &b_slabel) != 0) {
8671 shortname, strerror(errno));
8678 " %s\n"), shortname);
8702 if (getlabel(shortname, &b_slabel) != 0) {
8706 shortname, strerror(errno));
8712 " label for %s\n"), shortname);