require '_h2ph_pre.ph';

no warnings 'redefine';

eval("sub TAGID_PRI_VOL () { 1; }") unless defined(&TAGID_PRI_VOL);
eval("sub TAGID_ANCHOR () { 2; }") unless defined(&TAGID_ANCHOR);
eval("sub TAGID_VOL () { 3; }") unless defined(&TAGID_VOL);
eval("sub TAGID_IMP_VOL () { 4; }") unless defined(&TAGID_IMP_VOL);
eval("sub TAGID_PARTITION () { 5; }") unless defined(&TAGID_PARTITION);
eval("sub TAGID_LOGVOL () { 6; }") unless defined(&TAGID_LOGVOL);
eval("sub TAGID_UNALLOC_SPACE () { 7; }") unless defined(&TAGID_UNALLOC_SPACE);
eval("sub TAGID_TERM () { 8; }") unless defined(&TAGID_TERM);
eval("sub TAGID_LOGVOL_INTEGRITY () { 9; }") unless defined(&TAGID_LOGVOL_INTEGRITY);
eval("sub TAGID_FSD () { 256; }") unless defined(&TAGID_FSD);
eval("sub TAGID_FID () { 257; }") unless defined(&TAGID_FID);
eval("sub TAGID_FENTRY () { 261; }") unless defined(&TAGID_FENTRY);
unless(defined(&UDF_REGID_ID_SIZE)) {
    sub UDF_REGID_ID_SIZE () {	23;}
}
unless(defined(&UDF_ICB_TYPE_VAT_150)) {
    sub UDF_ICB_TYPE_VAT_150 () {	0x;}
}
unless(defined(&UDF_ICB_TYPE_DIR)) {
    sub UDF_ICB_TYPE_DIR () {	0x4;}
}
unless(defined(&UDF_ICB_TYPE_FILE)) {
    sub UDF_ICB_TYPE_FILE () {	0x5;}
}
unless(defined(&UDF_ICB_TYPE_BLKDEV)) {
    sub UDF_ICB_TYPE_BLKDEV () {	0x6;}
}
unless(defined(&UDF_ICB_TYPE_CHRDEV)) {
    sub UDF_ICB_TYPE_CHRDEV () {	0x7;}
}
unless(defined(&UDF_ICB_TYPE_FIFO)) {
    sub UDF_ICB_TYPE_FIFO () {	0x9;}
}
unless(defined(&UDF_ICB_TYPE_SOCKET)) {
    sub UDF_ICB_TYPE_SOCKET () {	0xa;}
}
unless(defined(&UDF_ICB_TYPE_SYMLINK)) {
    sub UDF_ICB_TYPE_SYMLINK () {	0xc;}
}
unless(defined(&UDF_ICB_TYPE_VAT_250)) {
    sub UDF_ICB_TYPE_VAT_250 () {	0xf8;}
}
unless(defined(&UDF_ICB_TAG_FLAGS_SETUID)) {
    sub UDF_ICB_TAG_FLAGS_SETUID () {	0x40;}
}
unless(defined(&UDF_ICB_TAG_FLAGS_SETGID)) {
    sub UDF_ICB_TAG_FLAGS_SETGID () {	0x80;}
}
unless(defined(&UDF_ICB_TAG_FLAGS_STICKY)) {
    sub UDF_ICB_TAG_FLAGS_STICKY () {	0x100;}
}
unless(defined(&UDF_PMAP_TYPE1_SIZE)) {
    sub UDF_PMAP_TYPE1_SIZE () {	6;}
}
unless(defined(&UDF_PMAP_TYPE2_SIZE)) {
    sub UDF_PMAP_TYPE2_SIZE () {	64;}
}
unless(defined(&UDF_FID_SIZE)) {
    sub UDF_FID_SIZE () {	38;}
}
unless(defined(&UDF_FILE_CHAR_VIS)) {
    sub UDF_FILE_CHAR_VIS () {	(1<< 0);}
}
unless(defined(&UDF_FILE_CHAR_DIR)) {
    sub UDF_FILE_CHAR_DIR () {	(1<< 1);}
}
unless(defined(&UDF_FILE_CHAR_DEL)) {
    sub UDF_FILE_CHAR_DEL () {	(1<< 2);}
}
unless(defined(&UDF_FILE_CHAR_PAR)) {
    sub UDF_FILE_CHAR_PAR () {	(1<< 3);}
}
unless(defined(&UDF_FILE_CHAR_META)) {
    sub UDF_FILE_CHAR_META () {	(1<< 4);}
}
unless(defined(&UDF_FENTRY_SIZE)) {
    sub UDF_FENTRY_SIZE () {	176;}
}
unless(defined(&UDF_FENTRY_PERM_USER_MASK)) {
    sub UDF_FENTRY_PERM_USER_MASK () {	0x7;}
}
unless(defined(&UDF_FENTRY_PERM_GRP_MASK)) {
    sub UDF_FENTRY_PERM_GRP_MASK () {	0xe0;}
}
unless(defined(&UDF_FENTRY_PERM_OWNER_MASK)) {
    sub UDF_FENTRY_PERM_OWNER_MASK () {	0x1c00;}
}
unless(defined(&GETICB)) {
    sub GETICB {
	my($ad_type, $fentry, $offset) = @_;
	eval q( ($fentry->{data[$offset]}));
    }
}
unless(defined(&GETICBLEN)) {
    sub GETICBLEN {
	my($ad_type, $icb) = @_;
	eval q( &letoh32((($icb))-> &len));
    }
}
1;
