Lines Matching refs:Thdr_p
401 union tblock *Thdr_p; /* TAR header pointer */ variable
1487 crc_p = Thdr_p->tbuf.t_cksum; in cksum()
1492 crc_p = (char *)Thdr_p; in cksum()
3459 typeflag = Thdr_p->tbuf.t_typeflag; in file_in()
3466 (void) strncpy(lname, Thdr_p->tbuf.t_linkname, in file_in()
4721 Thdr_p = (union tblock *)Buffr.b_out_p; in gethdr()
4730 Thdr_p->tbuf.t_typeflag == _XATTR_HDRTYPE)) { in gethdr()
4844 Thdr_p->tbuf.t_typeflag = xattrp->h_typeflag; in gethdr()
4876 Hdr_type == TAR) && Thdr_p->tbuf.t_typeflag == 'A')) { in gethdr()
5596 if (Hdr_type == TAR && Thdr_p->tbuf.t_typeflag == SYMTYPE) { in openout()
5599 symlink(Thdr_p->tbuf.t_linkname, nam_p)) >= 0) { in openout()
5612 Thdr_p->tbuf.t_linkname, nam_p); in openout()
5648 &Thdr_p->tbuf.t_linkname[0], NAMSIZ); in openout()
5896 Thdr_p = (union tblock *)Buffr.b_out_p; in read_hdr()
5899 Thdr_p->tbuf.t_name, NAMSIZ); in read_hdr()
5900 (void) sscanf(Thdr_p->tbuf.t_mode, "%8lo", in read_hdr()
5902 (void) sscanf(Thdr_p->tbuf.t_uid, "%8lo", &Gen.g_uid); in read_hdr()
5903 (void) sscanf(Thdr_p->tbuf.t_gid, "%8lo", &Gen.g_gid); in read_hdr()
5904 (void) sscanf(Thdr_p->tbuf.t_size, "%11llo", in read_hdr()
5906 (void) sscanf(Thdr_p->tbuf.t_mtime, "%12lo", in read_hdr()
5908 (void) sscanf(Thdr_p->tbuf.t_cksum, "%8lo", in read_hdr()
5910 if (Thdr_p->tbuf.t_linkname[0] != '\0') in read_hdr()
5915 switch (Thdr_p->tbuf.t_typeflag) { in read_hdr()
5934 (void) sscanf(Thdr_p->tbuf.t_magic, "%8lo", in read_hdr()
5937 (void) sscanf(Thdr_p->tbuf.t_version, "%8lo", in read_hdr()
5940 (void) sscanf(Thdr_p->tbuf.t_uname, "%32s", in read_hdr()
5942 (void) sscanf(Thdr_p->tbuf.t_gname, "%32s", in read_hdr()
5944 (void) sscanf(Thdr_p->tbuf.t_devmajor, "%8lo", in read_hdr()
5946 (void) sscanf(Thdr_p->tbuf.t_devminor, "%8lo", in read_hdr()
5949 Thdr_p->tbuf.t_prefix, PRESIZ); in read_hdr()
5960 Thdr_p = (union tblock *)Buffr.b_out_p; in read_hdr()
5962 (void) sscanf(Thdr_p->tbuf.t_mode, "%lo", &Gen.g_mode); in read_hdr()
5963 (void) sscanf(Thdr_p->tbuf.t_uid, "%lo", &Gen.g_uid); in read_hdr()
5964 (void) sscanf(Thdr_p->tbuf.t_gid, "%lo", &Gen.g_gid); in read_hdr()
5965 (void) sscanf(Thdr_p->tbuf.t_size, "%llo", in read_hdr()
5967 (void) sscanf(Thdr_p->tbuf.t_mtime, "%lo", in read_hdr()
5969 (void) sscanf(Thdr_p->tbuf.t_cksum, "%lo", in read_hdr()
5971 if (Thdr_p->tbuf.t_typeflag == '1') /* hardlink */ in read_hdr()
5976 Thdr_p->tbuf.t_name, NAMSIZ); in read_hdr()
6943 Hdr_type == TAR) && Thdr_p->tbuf.t_typeflag == 'A')) { in verbose()
7080 Thdr_p->tbuf.t_linkname); in verbose()
7098 Thdr_p->tbuf.t_typeflag == '1') { in verbose()
7101 Thdr_p->tbuf.t_linkname : Gen.g_attrfnam_p, in verbose()
7290 Thdr_p = (union tblock *)Buffr.b_in_p; in write_hdr()
7291 (void) memset(Thdr_p, 0, TARSZ); in write_hdr()
7292 (void) strncpy(Thdr_p->tbuf.t_name, G_p->g_tname, in write_hdr()
7294 (void) sprintf(Thdr_p->tbuf.t_mode, "%07o", (int)mode); in write_hdr()
7295 (void) sprintf(Thdr_p->tbuf.t_uid, "%07o", (int)uid); in write_hdr()
7296 (void) sprintf(Thdr_p->tbuf.t_gid, "%07o", (int)gid); in write_hdr()
7297 (void) sprintf(Thdr_p->tbuf.t_size, "%011llo", in write_hdr()
7299 (void) sprintf(Thdr_p->tbuf.t_mtime, "%011lo", G_p->g_mtime); in write_hdr()
7301 Thdr_p->tbuf.t_typeflag = 'A'; /* ACL file type */ in write_hdr()
7304 Thdr_p->tbuf.t_typeflag = _XATTR_HDRTYPE; in write_hdr()
7306 Thdr_p->tbuf.t_typeflag = G_p->g_typeflag; in write_hdr()
7314 Thdr_p->tbuf.t_typeflag = LNKTYPE; in write_hdr()
7315 (void) sprintf(Thdr_p->tbuf.t_size, in write_hdr()
7318 (void) strncpy(Thdr_p->tbuf.t_linkname, T_lname, in write_hdr()
7321 (void) strcpy(Thdr_p->tbuf.t_magic, TMAGIC); in write_hdr()
7322 (void) strcpy(Thdr_p->tbuf.t_version, TVERSION); in write_hdr()
7323 (void) strcpy(Thdr_p->tbuf.t_uname, G_p->g_uname); in write_hdr()
7324 (void) strcpy(Thdr_p->tbuf.t_gname, G_p->g_gname); in write_hdr()
7325 (void) sprintf(Thdr_p->tbuf.t_devmajor, "%07o", in write_hdr()
7327 (void) sprintf(Thdr_p->tbuf.t_devminor, "%07o", in write_hdr()
7330 (void) strcpy(Thdr_p->tbuf.t_prefix, Gen.g_prefix); in write_hdr()
7334 Thdr_p->tbuf.t_prefix[0] = '\0'; in write_hdr()
7336 (void) sprintf(Thdr_p->tbuf.t_cksum, "%07o", in write_hdr()
7340 Thdr_p = (union tblock *)Buffr.b_in_p; in write_hdr()
7341 (void) memset(Thdr_p, 0, TARSZ); in write_hdr()
7342 (void) strncpy(Thdr_p->tbuf.t_name, G_p->g_nam_p, in write_hdr()
7344 (void) sprintf(Thdr_p->tbuf.t_mode, "%07o ", (int)mode); in write_hdr()
7345 (void) sprintf(Thdr_p->tbuf.t_uid, "%07o ", (int)uid); in write_hdr()
7346 (void) sprintf(Thdr_p->tbuf.t_gid, "%07o ", (int)gid); in write_hdr()
7347 (void) sprintf(Thdr_p->tbuf.t_size, "%011llo ", in write_hdr()
7349 (void) sprintf(Thdr_p->tbuf.t_mtime, "%011o ", in write_hdr()
7352 Thdr_p->tbuf.t_typeflag = '1'; in write_hdr()
7354 Thdr_p->tbuf.t_typeflag = '\0'; in write_hdr()
7356 (void) strncpy(Thdr_p->tbuf.t_linkname, T_lname, in write_hdr()
7455 if (Thdr_p->tbuf.t_typeflag == '5') in ustar_dir()
7471 typeflag = Thdr_p->tbuf.t_typeflag; in ustar_spec()