require '_h2ph_pre.ph';

unless(defined(&_LINUX_HFS_FS_H)) {
    eval 'sub _LINUX_HFS_FS_H () {1;}' unless defined(&_LINUX_HFS_FS_H);
    require 'linux/hfs_sysdep.ph';
    eval 'sub HFS_DBL_MAGIC () {0x51607;}' unless defined(&HFS_DBL_MAGIC);
    eval 'sub HFS_SNGL_MAGIC () {0x51600;}' unless defined(&HFS_SNGL_MAGIC);
    eval 'sub HFS_HDR_VERSION_1 () {0x10000;}' unless defined(&HFS_HDR_VERSION_1);
    eval 'sub HFS_HDR_VERSION_2 () {0x20000;}' unless defined(&HFS_HDR_VERSION_2);
    eval 'sub HFS_INO_MAGIC () {0x4821;}' unless defined(&HFS_INO_MAGIC);
    eval 'sub HFS_SB_MAGIC () {0x4822;}' unless defined(&HFS_SB_MAGIC);
    eval 'sub HFS_DBL_HDR_LEN () {1024;}' unless defined(&HFS_DBL_HDR_LEN);
    eval 'sub HFS_NAT_HDR_LEN () {1024;}' unless defined(&HFS_NAT_HDR_LEN);
    eval 'sub HFS_CNID {
        local($X) = @_;
	    eval q((($X) & 0x3fffffff));
    }' unless defined(&HFS_CNID);
    eval 'sub HFS_ITYPE {
        local($X) = @_;
	    eval q((($X) & 0xc0000000));
    }' unless defined(&HFS_ITYPE);
    eval 'sub HFS_ITYPE_TO_INT {
        local($X) = @_;
	    eval q((($X) >> 30));
    }' unless defined(&HFS_ITYPE_TO_INT);
    eval 'sub HFS_INT_TO_ITYPE {
        local($X) = @_;
	    eval q((($X) << 30));
    }' unless defined(&HFS_INT_TO_ITYPE);
    eval 'sub HFS_ITYPE_0 () {0x;}' unless defined(&HFS_ITYPE_0);
    eval 'sub HFS_ITYPE_1 () {0x40000000;}' unless defined(&HFS_ITYPE_1);
    eval 'sub HFS_ITYPE_2 () {0x80000000;}' unless defined(&HFS_ITYPE_2);
    eval 'sub HFS_ITYPE_3 () {0xc0000000;}' unless defined(&HFS_ITYPE_3);
    eval 'sub HFS_ITYPE_NORM () { &HFS_ITYPE_0;}' unless defined(&HFS_ITYPE_NORM);
    eval 'sub HFS_CAP_NORM () { &HFS_ITYPE_0;}' unless defined(&HFS_CAP_NORM);
    eval 'sub HFS_CAP_DATA () { &HFS_ITYPE_0;}' unless defined(&HFS_CAP_DATA);
    eval 'sub HFS_CAP_NDIR () { &HFS_ITYPE_0;}' unless defined(&HFS_CAP_NDIR);
    eval 'sub HFS_CAP_FNDR () { &HFS_ITYPE_1;}' unless defined(&HFS_CAP_FNDR);
    eval 'sub HFS_CAP_RSRC () { &HFS_ITYPE_2;}' unless defined(&HFS_CAP_RSRC);
    eval 'sub HFS_CAP_RDIR () { &HFS_ITYPE_2;}' unless defined(&HFS_CAP_RDIR);
    eval 'sub HFS_CAP_FDIR () { &HFS_ITYPE_3;}' unless defined(&HFS_CAP_FDIR);
    eval 'sub HFS_DBL_NORM () { &HFS_ITYPE_0;}' unless defined(&HFS_DBL_NORM);
    eval 'sub HFS_DBL_DATA () { &HFS_ITYPE_0;}' unless defined(&HFS_DBL_DATA);
    eval 'sub HFS_DBL_DIR () { &HFS_ITYPE_0;}' unless defined(&HFS_DBL_DIR);
    eval 'sub HFS_DBL_HDR () { &HFS_ITYPE_1;}' unless defined(&HFS_DBL_HDR);
    eval 'sub HFS_NAT_NORM () { &HFS_ITYPE_0;}' unless defined(&HFS_NAT_NORM);
    eval 'sub HFS_NAT_DATA () { &HFS_ITYPE_0;}' unless defined(&HFS_NAT_DATA);
    eval 'sub HFS_NAT_NDIR () { &HFS_ITYPE_0;}' unless defined(&HFS_NAT_NDIR);
    eval 'sub HFS_NAT_HDR () { &HFS_ITYPE_1;}' unless defined(&HFS_NAT_HDR);
    eval 'sub HFS_NAT_HDIR () { &HFS_ITYPE_2;}' unless defined(&HFS_NAT_HDIR);
    eval 'sub HFS_SGL_NORM () { &HFS_ITYPE_0;}' unless defined(&HFS_SGL_NORM);
    eval 'sub HFS_SGL_SNGL () { &HFS_ITYPE_0;}' unless defined(&HFS_SGL_SNGL);
    eval 'sub HFS_SGL_DIR () { &HFS_ITYPE_0;}' unless defined(&HFS_SGL_DIR);
    eval 'sub HFS_SGL_DINF () { &HFS_ITYPE_1;}' unless defined(&HFS_SGL_DINF);
    eval 'sub HFS_HDR_DATA () {1;}' unless defined(&HFS_HDR_DATA);
    eval 'sub HFS_HDR_RSRC () {2;}' unless defined(&HFS_HDR_RSRC);
    eval 'sub HFS_HDR_FNAME () {3;}' unless defined(&HFS_HDR_FNAME);
    eval 'sub HFS_HDR_COMNT () {4;}' unless defined(&HFS_HDR_COMNT);
    eval 'sub HFS_HDR_BWICN () {5;}' unless defined(&HFS_HDR_BWICN);
    eval 'sub HFS_HDR_CICON () {6;}' unless defined(&HFS_HDR_CICON);
    eval 'sub HFS_HDR_OLDI () {7;}' unless defined(&HFS_HDR_OLDI);
    eval 'sub HFS_HDR_DATES () {8;}' unless defined(&HFS_HDR_DATES);
    eval 'sub HFS_HDR_FINFO () {9;}' unless defined(&HFS_HDR_FINFO);
    eval 'sub HFS_HDR_MACI () {10;}' unless defined(&HFS_HDR_MACI);
    eval 'sub HFS_HDR_PRODOSI () {11;}' unless defined(&HFS_HDR_PRODOSI);
    eval 'sub HFS_HDR_MSDOSI () {12;}' unless defined(&HFS_HDR_MSDOSI);
    eval 'sub HFS_HDR_SNAME () {13;}' unless defined(&HFS_HDR_SNAME);
    eval 'sub HFS_HDR_AFPI () {14;}' unless defined(&HFS_HDR_AFPI);
    eval 'sub HFS_HDR_DID () {15;}' unless defined(&HFS_HDR_DID);
    eval 'sub HFS_HDR_MAX () {16;}' unless defined(&HFS_HDR_MAX);
    eval 'sub hfs_h_to_mtime {
        local($ARG) = @_;
	    eval q( &htonl( &ntohl($ARG)+3029529600));
    }' unless defined(&hfs_h_to_mtime);
    eval 'sub hfs_m_to_htime {
        local($ARG) = @_;
	    eval q(( &htonl( &ntohl($ARG)-3029529600)));
    }' unless defined(&hfs_m_to_htime);
    eval 'sub hfs_h_to_utime {
        local($ARG) = @_;
	    eval q(( &hfs_to_utc( &ntohl($ARG)+946684800)));
    }' unless defined(&hfs_h_to_utime);
    eval 'sub hfs_u_to_htime {
        local($ARG) = @_;
	    eval q(( &htonl( &hfs_from_utc($ARG)-946684800)));
    }' unless defined(&hfs_u_to_htime);
    eval 'sub hfs_u_to_mtime {
        local($ARG) = @_;
	    eval q( &htonl( &hfs_from_utc($ARG)+2082844800));
    }' unless defined(&hfs_u_to_mtime);
    eval 'sub hfs_m_to_utime {
        local($ARG) = @_;
	    eval q(( &hfs_to_utc( &ntohl($ARG)-2082844800)));
    }' unless defined(&hfs_m_to_utime);
    eval 'sub HFS_AFP_INV () {0x1;}' unless defined(&HFS_AFP_INV);
    eval 'sub HFS_AFP_EXPFOLDER () {0x2;}' unless defined(&HFS_AFP_EXPFOLDER);
    eval 'sub HFS_AFP_MULTI () {0x2;}' unless defined(&HFS_AFP_MULTI);
    eval 'sub HFS_AFP_SYS () {0x4;}' unless defined(&HFS_AFP_SYS);
    eval 'sub HFS_AFP_DOPEN () {0x8;}' unless defined(&HFS_AFP_DOPEN);
    eval 'sub HFS_AFP_MOUNTED () {0x8;}' unless defined(&HFS_AFP_MOUNTED);
    eval 'sub HFS_AFP_ROPEN () {0x10;}' unless defined(&HFS_AFP_ROPEN);
    eval 'sub HFS_AFP_INEXPFOLDER () {0x10;}' unless defined(&HFS_AFP_INEXPFOLDER);
    eval 'sub HFS_AFP_WRI () {0x20;}' unless defined(&HFS_AFP_WRI);
    eval 'sub HFS_AFP_BACKUP () {0x40;}' unless defined(&HFS_AFP_BACKUP);
    eval 'sub HFS_AFP_RNI () {0x80;}' unless defined(&HFS_AFP_RNI);
    eval 'sub HFS_AFP_DEI () {0x100;}' unless defined(&HFS_AFP_DEI);
    eval 'sub HFS_AFP_NOCOPY () {0x400;}' unless defined(&HFS_AFP_NOCOPY);
    eval 'sub HFS_AFP_RDONLY () {(  &HFS_AFP_WRI| &HFS_AFP_RNI| &HFS_AFP_DEI);}' unless defined(&HFS_AFP_RDONLY);
    eval 'sub HFS_CAP_MAGIC1 () {0xff;}' unless defined(&HFS_CAP_MAGIC1);
    eval 'sub HFS_CAP_VERSION () {0x10;}' unless defined(&HFS_CAP_VERSION);
    eval 'sub HFS_CAP_MAGIC () {0xda;}' unless defined(&HFS_CAP_MAGIC);
    eval 'sub HFS_CAP_SHORTNAME () {0x1;}' unless defined(&HFS_CAP_SHORTNAME);
    eval 'sub HFS_CAP_LONGNAME () {0x2;}' unless defined(&HFS_CAP_LONGNAME);
    eval 'sub HFS_CAP_DMAGIC () {0xda;}' unless defined(&HFS_CAP_DMAGIC);
    eval 'sub HFS_CAP_MDATE () {0x1;}' unless defined(&HFS_CAP_MDATE);
    eval 'sub HFS_CAP_CDATE () {0x2;}' unless defined(&HFS_CAP_CDATE);
}
1;
