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,
1819 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo,
1886 if (getstat(dirfd, longname, shortname, attrparent))
1893 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW);
1988 * -- the length of the fullname equals NAMSIZ, and the shortname
1996 (split == NAMSIZ && strlen(shortname) < NAMSIZ) ||
2122 if (put_extra_attributes(longname, shortname,
2177 if (*shortname != '/')
2178 (void) sprintf(newparent, "%s/%s", parent, shortname);
2180 (void) sprintf(newparent, "%s", shortname);
2182 if (tar_chdir(shortname) < 0) {
2282 i = readlink(shortname, filetmp, readlink_max);
2311 if ((infile = openat(dirfd, shortname, 0)) < 0) {
2317 shortname : longattrname : "");
2323 if (put_link(name, longname, shortname, longattrname,
2370 if (put_extra_attributes(longname, shortname, longattrname,
2420 if (put_link(name, longname, shortname, longattrname,
2456 if (put_extra_attributes(longname, shortname, longattrname,
2468 if (put_link(name, longname, shortname, longattrname,
2503 if (put_extra_attributes(longname, shortname, longattrname,
2515 if (put_link(name, longname, shortname, longattrname,
2551 if (put_extra_attributes(longname, shortname, longattrname,
7744 getstat(int dirfd, char *longname, char *shortname, char *attrparent)
7753 i = fstatat(dirfd, shortname, &stbuf, AT_SYMLINK_NOFOLLOW);
7755 i = fstatat(dirfd, shortname, &stbuf, 0);
7768 j = fstatat(dirfd, shortname,
7831 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent)
7833 char *filename = (attrparent == NULL) ? shortname : attrparent;
7977 xattrs_put(longname, shortname, parent, dp->d_name);
8013 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath)
8104 put_extra_attributes(char *longname, char *shortname, char *longattrname,
8116 if (put_xattr_hdr(longname, shortname, longattrname, prefix,
8134 if ((error = acl_get(shortname, ACL_NO_TRIVIAL,
8153 append_ext_attr(shortname, &secinfo, &len);
8165 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix,
8175 strlen(shortname) + strlen(".hdr") + 1);
8180 sname = malloc(sizeof (char) * strlen(shortname) +
8186 (void) sprintf(sname, "%s.hdr", shortname);
8201 (void) sprintf(lname, "/dev/null/%s", shortname);
8625 append_ext_attr(char *shortname, char **secinfo, int *len)
8668 if (getlabel(shortname, &b_slabel) != 0) {
8672 shortname, strerror(errno));
8679 " %s\n"), shortname);
8703 if (getlabel(shortname, &b_slabel) != 0) {
8707 shortname, strerror(errno));
8713 " label for %s\n"), shortname);