require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_CGDVAR_H_)) {
    eval 'sub _DEV_CGDVAR_H_ () {1;}' unless defined(&_DEV_CGDVAR_H_);
    require 'sys/ioccom.ph';
    eval 'sub CGD_CIPHER_CBC_ENCBLKNO8 () {1;}' unless defined(&CGD_CIPHER_CBC_ENCBLKNO8);
    eval 'sub CGD_CIPHER_CBC_ENCBLKNO1 () {2;}' unless defined(&CGD_CIPHER_CBC_ENCBLKNO1);
    if(defined(&_KERNEL)) {
	require 'dev/cgd_crypto.ph';
	require 'dev/dkvar.ph';
    }
    eval 'sub CGDIOCSET () { &_IOWR(ord(\'F\'), 18, \'struct cgd_ioctl\');}' unless defined(&CGDIOCSET);
    eval 'sub CGDIOCCLR () { &_IOW(ord(\'F\'), 19, \'struct cgd_ioctl\');}' unless defined(&CGDIOCCLR);
    eval 'sub CGDIOCGET () { &_IOWR(ord(\'F\'), 20, \'struct cgd_user\');}' unless defined(&CGDIOCGET);
    eval 'sub CGD_MAXBLOCKSIZE () {128;}' unless defined(&CGD_MAXBLOCKSIZE);
}
1;
