Lines Matching defs:hd
286 HD_CPIO *hd;
293 hd = (HD_CPIO *)buf;
300 arcn->sb.st_dev = (dev_t)asc_u32(hd->c_dev, sizeof(hd->c_dev), OCT);
301 arcn->sb.st_ino = (ino_t)asc_u32(hd->c_ino, sizeof(hd->c_ino), OCT);
302 arcn->sb.st_mode = (mode_t)asc_u32(hd->c_mode, sizeof(hd->c_mode), OCT);
303 arcn->sb.st_uid = (uid_t)asc_u32(hd->c_uid, sizeof(hd->c_uid), OCT);
304 arcn->sb.st_gid = (gid_t)asc_u32(hd->c_gid, sizeof(hd->c_gid), OCT);
305 arcn->sb.st_nlink = (nlink_t)asc_u32(hd->c_nlink, sizeof(hd->c_nlink),
307 arcn->sb.st_rdev = (dev_t)asc_u32(hd->c_rdev, sizeof(hd->c_rdev), OCT);
308 arcn->sb.st_mtime = (time_t)(int32_t)asc_u32(hd->c_mtime, sizeof(hd->c_mtime),
311 arcn->sb.st_size = (off_t)ASC_OFFT(hd->c_filesize,
312 sizeof(hd->c_filesize), OCT);
318 if ((nsz = (int)asc_u32(hd->c_namesize,sizeof(hd->c_namesize),OCT)) < 2)
384 HD_CPIO *hd;
396 hd = (HD_CPIO *)hdblk;
407 if (OFFT_ASC(arcn->sb.st_size, hd->c_filesize,
408 sizeof(hd->c_filesize), OCT)) {
418 if (u32_asc((uintmax_t)arcn->ln_nlen, hd->c_filesize,
419 sizeof(hd->c_filesize), OCT))
426 if (u32_asc((uintmax_t)0, hd->c_filesize, sizeof(hd->c_filesize),
435 if (u32_asc((uintmax_t)MAGIC, hd->c_magic, sizeof(hd->c_magic), OCT) ||
436 u32_asc((uintmax_t)arcn->sb.st_dev, hd->c_dev, sizeof(hd->c_dev),
438 u32_asc((uintmax_t)arcn->sb.st_ino, hd->c_ino, sizeof(hd->c_ino),
440 u32_asc((uintmax_t)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode),
442 u32_asc((uintmax_t)arcn->sb.st_uid, hd->c_uid, sizeof(hd->c_uid),
444 u32_asc((uintmax_t)arcn->sb.st_gid, hd->c_gid, sizeof(hd->c_gid),
446 u32_asc((uintmax_t)arcn->sb.st_nlink, hd->c_nlink, sizeof(hd->c_nlink),
448 u32_asc((uintmax_t)arcn->sb.st_rdev, hd->c_rdev, sizeof(hd->c_rdev),
450 u32_asc((uintmax_t)arcn->sb.st_mtime,hd->c_mtime,sizeof(hd->c_mtime),
452 u32_asc((uintmax_t)nsz, hd->c_namesize, sizeof(hd->c_namesize), OCT))
558 HD_VCPIO *hd;
575 hd = (HD_VCPIO *)buf;
581 arcn->sb.st_ino = (ino_t)asc_u32(hd->c_ino, sizeof(hd->c_ino), HEX);
582 arcn->sb.st_mode = (mode_t)asc_u32(hd->c_mode, sizeof(hd->c_mode), HEX);
583 arcn->sb.st_uid = (uid_t)asc_u32(hd->c_uid, sizeof(hd->c_uid), HEX);
584 arcn->sb.st_gid = (gid_t)asc_u32(hd->c_gid, sizeof(hd->c_gid), HEX);
585 arcn->sb.st_mtime = (time_t)(int32_t)asc_u32(hd->c_mtime,sizeof(hd->c_mtime),HEX);
587 arcn->sb.st_size = (off_t)ASC_OFFT(hd->c_filesize,
588 sizeof(hd->c_filesize), HEX);
589 arcn->sb.st_nlink = (nlink_t)asc_u32(hd->c_nlink, sizeof(hd->c_nlink),
591 devmajor = (dev_t)asc_u32(hd->c_maj, sizeof(hd->c_maj), HEX);
592 devminor = (dev_t)asc_u32(hd->c_min, sizeof(hd->c_min), HEX);
594 devmajor = (dev_t)asc_u32(hd->c_rmaj, sizeof(hd->c_maj), HEX);
595 devminor = (dev_t)asc_u32(hd->c_rmin, sizeof(hd->c_min), HEX);
597 arcn->crc = asc_u32(hd->c_chksum, sizeof(hd->c_chksum), HEX);
603 if ((nsz = (int)asc_u32(hd->c_namesize,sizeof(hd->c_namesize),HEX)) < 2)
682 HD_VCPIO *hd;
693 hd = (HD_VCPIO *)hdblk;
702 if (u32_asc((uintmax_t)VCMAGIC, hd->c_magic, sizeof(hd->c_magic),
704 u32_asc((uintmax_t)arcn->crc,hd->c_chksum,sizeof(hd->c_chksum),
708 if (u32_asc((uintmax_t)VMAGIC, hd->c_magic, sizeof(hd->c_magic),
710 u32_asc((uintmax_t)0, hd->c_chksum, sizeof(hd->c_chksum),HEX))
723 if (OFFT_ASC(arcn->sb.st_size, hd->c_filesize,
724 sizeof(hd->c_filesize), HEX)) {
736 if (u32_asc((uintmax_t)arcn->ln_nlen, hd->c_filesize,
737 sizeof(hd->c_filesize), HEX))
745 if (u32_asc((uintmax_t)0, hd->c_filesize, sizeof(hd->c_filesize),
754 if (u32_asc((uintmax_t)arcn->sb.st_ino, hd->c_ino, sizeof(hd->c_ino),
756 u32_asc((uintmax_t)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode),
758 u32_asc((uintmax_t)arcn->sb.st_uid, hd->c_uid, sizeof(hd->c_uid),
760 u32_asc((uintmax_t)arcn->sb.st_gid, hd->c_gid, sizeof(hd->c_gid),
762 u32_asc((uintmax_t)arcn->sb.st_mtime, hd->c_mtime, sizeof(hd->c_mtime),
764 u32_asc((uintmax_t)arcn->sb.st_nlink, hd->c_nlink, sizeof(hd->c_nlink),
766 u32_asc((uintmax_t)MAJOR(arcn->sb.st_dev),hd->c_maj, sizeof(hd->c_maj),
768 u32_asc((uintmax_t)MINOR(arcn->sb.st_dev),hd->c_min, sizeof(hd->c_min),
770 u32_asc((uintmax_t)MAJOR(arcn->sb.st_rdev),hd->c_rmaj,sizeof(hd->c_maj),
772 u32_asc((uintmax_t)MINOR(arcn->sb.st_rdev),hd->c_rmin,sizeof(hd->c_min),
774 u32_asc((uintmax_t)nsz, hd->c_namesize, sizeof(hd->c_namesize), HEX))
864 HD_BCPIO *hd;
874 hd = (HD_BCPIO *)buf;
879 arcn->sb.st_dev = (dev_t)(RSHRT_EXT(hd->h_dev));
880 arcn->sb.st_ino = (ino_t)(RSHRT_EXT(hd->h_ino));
881 arcn->sb.st_mode = (mode_t)(RSHRT_EXT(hd->h_mode));
882 arcn->sb.st_uid = (uid_t)(RSHRT_EXT(hd->h_uid));
883 arcn->sb.st_gid = (gid_t)(RSHRT_EXT(hd->h_gid));
884 arcn->sb.st_nlink = (nlink_t)(RSHRT_EXT(hd->h_nlink));
885 arcn->sb.st_rdev = (dev_t)(RSHRT_EXT(hd->h_rdev));
886 arcn->sb.st_mtime = (time_t)(RSHRT_EXT(hd->h_mtime_1));
888 ((time_t)(RSHRT_EXT(hd->h_mtime_2)));
889 arcn->sb.st_size = (off_t)(RSHRT_EXT(hd->h_filesize_1));
891 ((off_t)(RSHRT_EXT(hd->h_filesize_2)));
892 nsz = (int)(RSHRT_EXT(hd->h_namesize));
894 arcn->sb.st_dev = (dev_t)(SHRT_EXT(hd->h_dev));
895 arcn->sb.st_ino = (ino_t)(SHRT_EXT(hd->h_ino));
896 arcn->sb.st_mode = (mode_t)(SHRT_EXT(hd->h_mode));
897 arcn->sb.st_uid = (uid_t)(SHRT_EXT(hd->h_uid));
898 arcn->sb.st_gid = (gid_t)(SHRT_EXT(hd->h_gid));
899 arcn->sb.st_nlink = (nlink_t)(SHRT_EXT(hd->h_nlink));
900 arcn->sb.st_rdev = (dev_t)(SHRT_EXT(hd->h_rdev));
901 arcn->sb.st_mtime = (time_t)(SHRT_EXT(hd->h_mtime_1));
903 ((time_t)(SHRT_EXT(hd->h_mtime_2)));
904 arcn->sb.st_size = (off_t)(SHRT_EXT(hd->h_filesize_1));
906 ((off_t)(SHRT_EXT(hd->h_filesize_2)));
907 nsz = (int)(SHRT_EXT(hd->h_namesize));
979 HD_BCPIO *hd;
995 hd = (HD_BCPIO *)hdblk;
1006 hd->h_filesize_1[0] = CHR_WR_0(arcn->sb.st_size);
1007 hd->h_filesize_1[1] = CHR_WR_1(arcn->sb.st_size);
1008 hd->h_filesize_2[0] = CHR_WR_2(arcn->sb.st_size);
1009 hd->h_filesize_2[1] = CHR_WR_3(arcn->sb.st_size);
1010 t_offt = (off_t)(SHRT_EXT(hd->h_filesize_1));
1011 t_offt = (t_offt<<16) | ((off_t)(SHRT_EXT(hd->h_filesize_2)));
1024 hd->h_filesize_1[0] = CHR_WR_0(arcn->ln_nlen);
1025 hd->h_filesize_1[1] = CHR_WR_1(arcn->ln_nlen);
1026 hd->h_filesize_2[0] = CHR_WR_2(arcn->ln_nlen);
1027 hd->h_filesize_2[1] = CHR_WR_3(arcn->ln_nlen);
1028 t_int = (int)(SHRT_EXT(hd->h_filesize_1));
1029 t_int = (t_int << 16) | ((int)(SHRT_EXT(hd->h_filesize_2)));
1038 hd->h_filesize_1[0] = (char)0;
1039 hd->h_filesize_1[1] = (char)0;
1040 hd->h_filesize_2[0] = (char)0;
1041 hd->h_filesize_2[1] = (char)0;
1048 hd->h_magic[0] = CHR_WR_2(MAGIC);
1049 hd->h_magic[1] = CHR_WR_3(MAGIC);
1050 hd->h_dev[0] = CHR_WR_2(arcn->sb.st_dev);
1051 hd->h_dev[1] = CHR_WR_3(arcn->sb.st_dev);
1052 if (arcn->sb.st_dev != (dev_t)(SHRT_EXT(hd->h_dev)))
1054 hd->h_ino[0] = CHR_WR_2(arcn->sb.st_ino);
1055 hd->h_ino[1] = CHR_WR_3(arcn->sb.st_ino);
1056 if (arcn->sb.st_ino != (ino_t)(SHRT_EXT(hd->h_ino)))
1058 hd->h_mode[0] = CHR_WR_2(arcn->sb.st_mode);
1059 hd->h_mode[1] = CHR_WR_3(arcn->sb.st_mode);
1060 if (arcn->sb.st_mode != (mode_t)(SHRT_EXT(hd->h_mode)))
1062 hd->h_uid[0] = CHR_WR_2(arcn->sb.st_uid);
1063 hd->h_uid[1] = CHR_WR_3(arcn->sb.st_uid);
1064 if (arcn->sb.st_uid != (uid_t)(SHRT_EXT(hd->h_uid)))
1066 hd->h_gid[0] = CHR_WR_2(arcn->sb.st_gid);
1067 hd->h_gid[1] = CHR_WR_3(arcn->sb.st_gid);
1068 if (arcn->sb.st_gid != (gid_t)(SHRT_EXT(hd->h_gid)))
1070 hd->h_nlink[0] = CHR_WR_2(arcn->sb.st_nlink);
1071 hd->h_nlink[1] = CHR_WR_3(arcn->sb.st_nlink);
1072 if (arcn->sb.st_nlink != (nlink_t)(SHRT_EXT(hd->h_nlink)))
1074 hd->h_rdev[0] = CHR_WR_2(arcn->sb.st_rdev);
1075 hd->h_rdev[1] = CHR_WR_3(arcn->sb.st_rdev);
1076 if (arcn->sb.st_rdev != (dev_t)(SHRT_EXT(hd->h_rdev)))
1078 hd->h_mtime_1[0] = CHR_WR_0(arcn->sb.st_mtime);
1079 hd->h_mtime_1[1] = CHR_WR_1(arcn->sb.st_mtime);
1080 hd->h_mtime_2[0] = CHR_WR_2(arcn->sb.st_mtime);
1081 hd->h_mtime_2[1] = CHR_WR_3(arcn->sb.st_mtime);
1082 t_timet = (time_t)(SHRT_EXT(hd->h_mtime_1));
1083 t_timet = (t_timet << 16) | ((time_t)(SHRT_EXT(hd->h_mtime_2)));
1087 hd->h_namesize[0] = CHR_WR_2(nsz);
1088 hd->h_namesize[1] = CHR_WR_3(nsz);
1089 if (nsz != (int)(SHRT_EXT(hd->h_namesize)))