require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DEV_VNDVAR_H_)) {
    eval 'sub _SYS_DEV_VNDVAR_H_ () {1;}' unless defined(&_SYS_DEV_VNDVAR_H_);
    require 'sys/ioccom.ph';
    require 'sys/pool.ph';
    eval 'sub VNDIOF_HASGEOM () {0x1;}' unless defined(&VNDIOF_HASGEOM);
    eval 'sub VNDIOF_READONLY () {0x2;}' unless defined(&VNDIOF_READONLY);
    eval 'sub VNDIOF_FORCE () {0x4;}' unless defined(&VNDIOF_FORCE);
    eval 'sub VNDIOF_FILEIO () {0x8;}' unless defined(&VNDIOF_FILEIO);
    eval 'sub VNDIOF_COMP () {0x400;}' unless defined(&VNDIOF_COMP);
    if(defined(&_KERNEL)) {
    }
    eval 'sub VNF_INITED () {0x1;}' unless defined(&VNF_INITED);
    eval 'sub VNF_WLABEL () {0x2;}' unless defined(&VNF_WLABEL);
    eval 'sub VNF_LABELLING () {0x4;}' unless defined(&VNF_LABELLING);
    eval 'sub VNF_WANTED () {0x8;}' unless defined(&VNF_WANTED);
    eval 'sub VNF_LOCKED () {0x10;}' unless defined(&VNF_LOCKED);
    eval 'sub VNF_READONLY () {0x20;}' unless defined(&VNF_READONLY);
    eval 'sub VNF_KLABEL () {0x40;}' unless defined(&VNF_KLABEL);
    eval 'sub VNF_VLABEL () {0x80;}' unless defined(&VNF_VLABEL);
    eval 'sub VNF_KTHREAD () {0x100;}' unless defined(&VNF_KTHREAD);
    eval 'sub VNF_VUNCONF () {0x200;}' unless defined(&VNF_VUNCONF);
    eval 'sub VNF_COMP () {0x400;}' unless defined(&VNF_COMP);
    eval 'sub VNF_CLEARING () {0x800;}' unless defined(&VNF_CLEARING);
    eval 'sub VNF_USE_VN_RDWR () {0x1000;}' unless defined(&VNF_USE_VN_RDWR);
    eval 'sub VNDIOCSET () { &_IOWR(ord(\'F\'), 0, \'struct vnd_ioctl\');}' unless defined(&VNDIOCSET);
    eval 'sub VNDIOCCLR () { &_IOW(ord(\'F\'), 1, \'struct vnd_ioctl\');}' unless defined(&VNDIOCCLR);
    eval 'sub VNDIOCGET () { &_IOWR(ord(\'F\'), 3, \'struct vnd_user\');}' unless defined(&VNDIOCGET);
    if(defined(&_KERNEL)) {
	eval 'sub VNDIOCGET30 () { &_IOWR(ord(\'F\'), 2, \'struct vnd_user30\');}' unless defined(&VNDIOCGET30);
	eval 'sub VNDIOCGET50 () { &_IOWR(ord(\'F\'), 3, \'struct vnd_user50\');}' unless defined(&VNDIOCGET50);
	eval 'sub VNDIOCSET50 () { &_IOWR(ord(\'F\'), 0, \'struct vnd_ioctl50\');}' unless defined(&VNDIOCSET50);
	eval 'sub VNDIOCCLR50 () { &_IOW(ord(\'F\'), 1, \'struct vnd_ioctl50\');}' unless defined(&VNDIOCCLR50);
    }
}
1;
