Lines Matching refs:dblock

375 } dblock, *tbuf, xhdr_buf;  variable
1303 if ((dblock.dbuf.typeflag != 'A') && in dorep()
1478 if (dblock.dbuf.name[0] != '\0') { in endtape()
1485 if (is_posix && dblock.dbuf.prefix[0] != '\0') { in endtape()
1516 readtape((char *)&dblock); in getdir()
1517 if (dblock.dbuf.name[0] == '\0') in getdir()
1520 (void) sscanf(dblock.dbuf.mode, "%8lo", &Gen.g_mode); in getdir()
1521 (void) sscanf(dblock.dbuf.uid, "%8lo", (ulong_t *)&Gen.g_uid); in getdir()
1522 (void) sscanf(dblock.dbuf.gid, "%8lo", (ulong_t *)&Gen.g_gid); in getdir()
1523 (void) sscanf(dblock.dbuf.size, "%12" FMT_off_t_o, &Gen.g_filesz); in getdir()
1524 (void) sscanf(dblock.dbuf.mtime, "%12lo", (ulong_t *)&Gen.g_mtime); in getdir()
1525 (void) sscanf(dblock.dbuf.chksum, "%8o", &Gen.g_cksum); in getdir()
1526 (void) sscanf(dblock.dbuf.devmajor, "%8lo", &Gen.g_devmajor); in getdir()
1527 (void) sscanf(dblock.dbuf.devminor, "%8lo", &Gen.g_devminor); in getdir()
1529 is_posix = (strcmp(dblock.dbuf.magic, magic_type) == 0); in getdir()
1533 switch (dblock.dbuf.typeflag) { in getdir()
1563 if ((dblock.dbuf.typeflag == 'X') || (dblock.dbuf.typeflag == 'L')) { in getdir()
1575 if (dblock.dbuf.extno != '\0') { /* split file? */ in getdir()
1576 extno = dblock.dbuf.extno; in getdir()
1578 extotal = dblock.dbuf.extotal; in getdir()
1586 if (chksum != checksum(&dblock)) { in getdir()
1587 if (chksum != checksum_signed(&dblock)) { in getdir()
1604 if (chksum != checksum(&dblock)) { in getdir()
1632 NAMSIZ, dblock.dbuf.name, sp->st_mtim.tv_sec, in getdir()
1638 if (xattrp && dblock.dbuf.typeflag == _XATTR_HDRTYPE) { in getdir()
1655 dblock.dbuf.typeflag = xattrp->h_typeflag; in getdir()
1682 dlog("passtape: typeflag \"%c\"\n", dblock.dbuf.typeflag); in passtape()
1683 if (dblock.dbuf.name[0] != '\0') { in passtape()
1684 dlog("passtape: name \"%s\"\n", dblock.dbuf.name); in passtape()
1686 if (is_posix && dblock.dbuf.prefix[0] != '\0') { in passtape()
1687 dlog("passtape: prefix \"%s\"\n", dblock.dbuf.prefix); in passtape()
1695 if (dblock.dbuf.typeflag == '1' || dblock.dbuf.typeflag == '2' || in passtape()
1696 dblock.dbuf.typeflag == '3' || dblock.dbuf.typeflag == '4' || in passtape()
1697 dblock.dbuf.typeflag == '5' || dblock.dbuf.typeflag == '6') in passtape()
2107 (void) memcpy(dblock.dbuf.name, in putfile()
2109 dblock.dbuf.name[NAMSIZ-1] in putfile()
2112 (void) sprintf(dblock.dbuf.name, in putfile()
2119 (void) sprintf(dblock.dbuf.chksum, in putfile()
2120 "%07o", checksum(&dblock)); in putfile()
2134 dblock.dbuf.typeflag = _XATTR_HDRTYPE; in putfile()
2136 dblock.dbuf.typeflag = '5'; in putfile()
2139 dblock.dbuf.typeflag = '5'; in putfile()
2142 (void) sprintf(dblock.dbuf.chksum, "%07o", in putfile()
2143 checksum(&dblock)); in putfile()
2145 (void) writetbuf((char *)&dblock, 1); in putfile()
2305 (void) writetbuf((char *)&dblock, 1); in putfile()
2381 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in putfile()
2382 hint = writetbuf((char *)&dblock, 1); in putfile()
2462 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in putfile()
2463 dblock.dbuf.typeflag = '6'; in putfile()
2465 (void) writetbuf((char *)&dblock, 1); in putfile()
2509 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in putfile()
2510 dblock.dbuf.typeflag = '3'; in putfile()
2512 (void) writetbuf((char *)&dblock, 1); in putfile()
2557 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in putfile()
2558 dblock.dbuf.typeflag = '4'; in putfile()
2560 (void) writetbuf((char *)&dblock, 1); in putfile()
2628 dblock.dbuf.extotal = extents; in splitfile()
2642 (void) sprintf(dblock.dbuf.efsize, "%9" FMT_off_t_o, bytes); in splitfile()
2644 (void) sprintf(dblock.dbuf.efsize, "%9" FMT_off_t_o, (off_t)0); in splitfile()
2663 (void) sprintf(dblock.dbuf.size, "%011" FMT_off_t_o, s); in splitfile()
2664 dblock.dbuf.extno = i; in splitfile()
2665 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in splitfile()
2666 (void) writetbuf((char *)&dblock, 1); in splitfile()
2703 if ((size > 0) && (dblock.dbuf.typeflag != '0') && in convtoreg()
2704 (dblock.dbuf.typeflag != '\0') && (dblock.dbuf.typeflag != '1') && in convtoreg()
2705 (dblock.dbuf.typeflag != '2') && (dblock.dbuf.typeflag != '3') && in convtoreg()
2706 (dblock.dbuf.typeflag != '4') && (dblock.dbuf.typeflag != '5') && in convtoreg()
2707 (dblock.dbuf.typeflag != '6') && (dblock.dbuf.typeflag != 'A') && in convtoreg()
2708 (dblock.dbuf.typeflag != 'L') && in convtoreg()
2709 (dblock.dbuf.typeflag != _XATTR_HDRTYPE) && in convtoreg()
2710 (dblock.dbuf.typeflag != 'X')) { in convtoreg()
2882 dblock.dbuf.typeflag = _XATTR_HDRTYPE; in open_attr_dir()
3090 if (xattrp && dblock.dbuf.typeflag == '1') { in doxtract()
3095 dblock.dbuf.linkname); in doxtract()
3099 dblock.dbuf.linkname); in doxtract()
3115 if (strcmp(dblock.dbuf.magic, magic_type) == 0) { in doxtract()
3196 if (dircreate && (!is_posix || dblock.dbuf.typeflag == '5')) { in doxtract()
3211 if (dblock.dbuf.typeflag == '6') { /* FIFO */ in doxtract()
3252 if (dblock.dbuf.typeflag == '3' && !Uid) { /* CHAR SPECIAL */ in doxtract()
3293 } else if (dblock.dbuf.typeflag == '3' && Uid) { in doxtract()
3301 if (dblock.dbuf.typeflag == '4' && !Uid) { in doxtract()
3341 } else if (dblock.dbuf.typeflag == '4' && Uid) { in doxtract()
3346 if (dblock.dbuf.typeflag == '2') { /* symlink */ in doxtract()
3370 if (dblock.dbuf.typeflag == '1') { in doxtract()
3436 namep, dblock.dbuf.typeflag); in doxtract()
3442 dblock.dbuf.typeflag); in doxtract()
3446 if (dblock.dbuf.typeflag == '0' || in doxtract()
3447 dblock.dbuf.typeflag == '\0' || convflag) { in doxtract()
3505 dblock.dbuf.typeflag = _XATTR_HDRTYPE; in doxtract()
3655 (dblock.dbuf.typeflag == '0' || in doxtract()
3656 dblock.dbuf.typeflag == '\0' || in doxtract()
3657 convflag || dblock.dbuf.typeflag == '1')) { in doxtract()
3709 if (dblock.dbuf.typeflag == 'A') { /* acl info */ in doxtract()
3946 dblock.dbuf.name); in xblocks()
4010 (void) sprintf(name, "%.*s", NAMSIZ, dblock.dbuf.name); in xsfile()
4063 copy(&savedblock, &dblock); in xsfile()
4070 if ((dblock.dbuf.typeflag != 'A') && (xhdr_flgs != 0)) { in xsfile()
4132 (strncmp(savedblock.dbuf.name, dblock.dbuf.name, NAMSIZ)) || in notsame()
4133 (strcmp(savedblock.dbuf.mode, dblock.dbuf.mode)) || in notsame()
4134 (strcmp(savedblock.dbuf.uid, dblock.dbuf.uid)) || in notsame()
4135 (strcmp(savedblock.dbuf.gid, dblock.dbuf.gid)) || in notsame()
4136 (strcmp(savedblock.dbuf.mtime, dblock.dbuf.mtime)) || in notsame()
4137 (savedblock.dbuf.typeflag != dblock.dbuf.typeflag) || in notsame()
4138 (strncmp(savedblock.dbuf.linkname, dblock.dbuf.linkname, NAMSIZ)) || in notsame()
4139 (savedblock.dbuf.extotal != dblock.dbuf.extotal) || in notsame()
4140 (strcmp(savedblock.dbuf.efsize, dblock.dbuf.efsize))); in notsame()
4172 if (dblock.dbuf.typeflag != 'A') in dotable()
4187 if (dblock.dbuf.typeflag == 'A') { in dotable()
4245 dblock.dbuf.linkname); in dotable()
4249 dblock.dbuf.linkname); in dotable()
4253 if (dblock.dbuf.typeflag == '1') { in dotable()
4276 if (dblock.dbuf.typeflag == '2') in dotable()
4366 if (is_posix && dblock.dbuf.typeflag != '1') { in verbose()
4400 if (dblock.dbuf.typeflag == '2') { in longt()
4404 st->st_size = (off_t)(memchr(dblock.dbuf.linkname, in longt()
4406 (strlen(dblock.dbuf.linkname)) : (NAMSIZ)); in longt()
4460 markedDir = (dblock.dbuf.typeflag == '5' || trailingSlash); in checkdir()
4549 u_g_name = dblock.dbuf.uname; in resugname()
4563 u_g_name = dblock.dbuf.gname; in resugname()
4609 bzero(dblock.dummy, TBLOCK); in tomodes()
4633 (void) sprintf(dblock.dbuf.size, "%011" FMT_off_t_o, in tomodes()
4636 (void) sprintf(dblock.dbuf.size, "%011" FMT_off_t_o, in tomodes()
4639 (void) sprintf(dblock.dbuf.size, "%011" FMT_off_t_o, in tomodes()
4646 (void) sprintf(dblock.dbuf.gid, "%07lo", gid); in tomodes()
4647 (void) sprintf(dblock.dbuf.uid, "%07lo", uid); in tomodes()
4648 (void) sprintf(dblock.dbuf.mode, "%07lo", sp->st_mode & POSIXMODES); in tomodes()
4649 (void) sprintf(dblock.dbuf.mtime, "%011lo", sp->st_mtime); in tomodes()
5737 if ((dblock.dbuf.typeflag != 'A') && (xhdr_flgs != 0)) { in wantit()
5743 if (dblock.dbuf.typeflag == _XATTR_HDRTYPE && xattrbadhead == 0) { in wantit()
5859 if ((err != 0) && (dblock.dbuf.typeflag == 'A') && in setbytes_to_skip()
5863 } else if ((dblock.dbuf.typeflag != 'A') && in setbytes_to_skip()
5971 return (dblock.dbuf.typeflag == '5'); in is_directory()
6144 if (dblock.dbuf.prefix[0] != '\0') in check_prefix()
6146 dblock.dbuf.prefix, NAMSIZ, dblock.dbuf.name); in check_prefix()
6149 dblock.dbuf.name); in check_prefix()
6386 dblock.dbuf.typeflag = _XATTR_HDRTYPE; in build_dblock()
6388 dblock.dbuf.typeflag = typeflag; in build_dblock()
6389 (void) memset(dblock.dbuf.name, '\0', NAMSIZ); in build_dblock()
6390 (void) memset(dblock.dbuf.linkname, '\0', NAMSIZ); in build_dblock()
6391 (void) memset(dblock.dbuf.prefix, '\0', PRESIZ); in build_dblock()
6413 (void) sprintf(dblock.dbuf.devmajor, "%07lo", dev); in build_dblock()
6429 (void) sprintf(dblock.dbuf.devminor, "%07lo", dev); in build_dblock()
6431 (void) strncpy(dblock.dbuf.name, name, NAMSIZ); in build_dblock()
6432 (void) strncpy(dblock.dbuf.linkname, linkname, NAMSIZ); in build_dblock()
6433 (void) sprintf(dblock.dbuf.magic, "%.5s", magic_type); in build_dblock()
6434 (void) sprintf(dblock.dbuf.version, "00"); in build_dblock()
6435 (void) sprintf(dblock.dbuf.uname, "%.31s", getname(sp->st_uid)); in build_dblock()
6436 (void) sprintf(dblock.dbuf.gname, "%.31s", getgroup(sp->st_gid)); in build_dblock()
6437 (void) strncpy(dblock.dbuf.prefix, prefix, PRESIZ); in build_dblock()
6438 (void) sprintf(dblock.dbuf.chksum, "%07o", checksum(&dblock)); in build_dblock()
6441 (void) bcopy(dblock.dummy, xhdr_buf.dummy, TBLOCK); in build_dblock()
6460 Xtarhdr.x_uname = dblock.dbuf.uname; in build_dblock()
6461 Xtarhdr.x_gname = dblock.dbuf.gname; in build_dblock()
6826 (void) sprintf(dblock.dbuf.mode, "%07lo", in write_ancillary()
6842 (void) sprintf(dblock.dbuf.mode, "%07lo", stbuf.st_mode & POSIXMODES); in write_ancillary()
6907 if (dblock.dbuf.typeflag == 'L') { in get_xdata()
7421 dblock.dbuf.gname, iconv_cd, _X_GNAME, _POSIX_NAME_MAX); in gen_utf8_names()
7423 dblock.dbuf.uname, iconv_cd, _X_UNAME, _POSIX_NAME_MAX); in gen_utf8_names()
7425 (void) strncpy(tempbuf, dblock.dbuf.linkname, NAMSIZ); in gen_utf8_names()
7431 (void) strncpy(tempbuf, dblock.dbuf.prefix, PRESIZ); in gen_utf8_names()
7438 (void) strncat(tempbuf + nbytes, dblock.dbuf.name, in gen_utf8_names()
8066 (void) writetbuf((char *)&dblock, 1); in put_link()
8168 (void) write_ancillary(&dblock, secinfo, len, ACL_HDR); in put_extra_attributes()
8171 (void) write_ancillary(&dblock, secinfo, len, ACL_HDR); in put_extra_attributes()
8203 if (strlcpy(dblock.dbuf.name, lname, sizeof (dblock.dbuf.name)) >= in put_xattr_hdr()
8204 sizeof (dblock.dbuf.name)) { in put_xattr_hdr()
8213 write_ancillary(&dblock, attrbuf, attrlen, _XATTR_HDRTYPE); in put_xattr_hdr()
8216 (void) strncpy(dblock.dbuf.name, sname, NAMSIZ); in put_xattr_hdr()
8245 if (dblock.dbuf.typeflag != _XATTR_HDRTYPE) in read_xattr_hdr()