require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_MTIO_H_)) {
    eval 'sub _SYS_MTIO_H_ () {1;}' unless defined(&_SYS_MTIO_H_);
    eval 'sub MTWEOF () {0;}' unless defined(&MTWEOF);
    eval 'sub MTFSF () {1;}' unless defined(&MTFSF);
    eval 'sub MTBSF () {2;}' unless defined(&MTBSF);
    eval 'sub MTFSR () {3;}' unless defined(&MTFSR);
    eval 'sub MTBSR () {4;}' unless defined(&MTBSR);
    eval 'sub MTREW () {5;}' unless defined(&MTREW);
    eval 'sub MTOFFL () {6;}' unless defined(&MTOFFL);
    eval 'sub MTNOP () {7;}' unless defined(&MTNOP);
    eval 'sub MTRETEN () {8;}' unless defined(&MTRETEN);
    eval 'sub MTERASE () {9;}' unless defined(&MTERASE);
    eval 'sub MTEOM () {10;}' unless defined(&MTEOM);
    eval 'sub MTNBSF () {11;}' unless defined(&MTNBSF);
    eval 'sub MTCACHE () {12;}' unless defined(&MTCACHE);
    eval 'sub MTNOCACHE () {13;}' unless defined(&MTNOCACHE);
    eval 'sub MTSETBSIZ () {14;}' unless defined(&MTSETBSIZ);
    eval 'sub MTSETDNSTY () {15;}' unless defined(&MTSETDNSTY);
    eval 'sub MT_ISTS () {0x1;}' unless defined(&MT_ISTS);
    eval 'sub MT_ISHT () {0x2;}' unless defined(&MT_ISHT);
    eval 'sub MT_ISTM () {0x3;}' unless defined(&MT_ISTM);
    eval 'sub MT_ISMT () {0x4;}' unless defined(&MT_ISMT);
    eval 'sub MT_ISUT () {0x5;}' unless defined(&MT_ISUT);
    eval 'sub MT_ISCPC () {0x6;}' unless defined(&MT_ISCPC);
    eval 'sub MT_ISAR () {0x7;}' unless defined(&MT_ISAR);
    eval 'sub MT_ISTMSCP () {0x8;}' unless defined(&MT_ISTMSCP);
    eval 'sub MT_ISCY () {0x9;}' unless defined(&MT_ISCY);
    eval 'sub MT_ISCT () {0xa;}' unless defined(&MT_ISCT);
    eval 'sub MT_ISFHP () {0xb;}' unless defined(&MT_ISFHP);
    eval 'sub MT_ISEXABYTE () {0xc;}' unless defined(&MT_ISEXABYTE);
    eval 'sub MT_ISEXA8200 () {0xc;}' unless defined(&MT_ISEXA8200);
    eval 'sub MT_ISEXA8500 () {0xd;}' unless defined(&MT_ISEXA8500);
    eval 'sub MT_ISVIPER1 () {0xe;}' unless defined(&MT_ISVIPER1);
    eval 'sub MT_ISPYTHON () {0xf;}' unless defined(&MT_ISPYTHON);
    eval 'sub MT_ISHPDAT () {0x10;}' unless defined(&MT_ISHPDAT);
    eval 'sub MT_ISWANGTEK () {0x11;}' unless defined(&MT_ISWANGTEK);
    eval 'sub MT_ISCALIPER () {0x12;}' unless defined(&MT_ISCALIPER);
    eval 'sub MT_ISWTEK5099 () {0x13;}' unless defined(&MT_ISWTEK5099);
    eval 'sub MT_ISVIPER2525 () {0x14;}' unless defined(&MT_ISVIPER2525);
    eval 'sub MT_ISMFOUR () {0x11;}' unless defined(&MT_ISMFOUR);
    eval 'sub MT_ISTK50 () {0x12;}' unless defined(&MT_ISTK50);
    eval 'sub MT_ISMT02 () {0x13;}' unless defined(&MT_ISMT02);
    eval 'sub MT_DS_RDONLY () {0x10;}' unless defined(&MT_DS_RDONLY);
    eval 'sub MT_DS_MOUNTED () {0x3;}' unless defined(&MT_DS_MOUNTED);
    eval 'sub MTIOCTOP () { &_IOW(ord(\'m\'), 1, \'struct mtop\');}' unless defined(&MTIOCTOP);
    eval 'sub MTIOCGET () { &_IOR(ord(\'m\'), 2, \'struct mtget\');}' unless defined(&MTIOCGET);
    eval 'sub MTIOCIEOT () { &_IO(ord(\'m\'), 3);}' unless defined(&MTIOCIEOT);
    eval 'sub MTIOCEEOT () { &_IO(ord(\'m\'), 4);}' unless defined(&MTIOCEEOT);
    eval 'sub MTIOCRDSPOS () { &_IOR(ord(\'m\'), 5,  &u_int32_t);}' unless defined(&MTIOCRDSPOS);
    eval 'sub MTIOCRDHPOS () { &_IOR(ord(\'m\'), 6,  &u_int32_t);}' unless defined(&MTIOCRDHPOS);
    eval 'sub MTIOCSLOCATE () { &_IOW(ord(\'m\'), 5,  &u_int32_t);}' unless defined(&MTIOCSLOCATE);
    eval 'sub MTIOCHLOCATE () { &_IOW(ord(\'m\'), 6,  &u_int32_t);}' unless defined(&MTIOCHLOCATE);
    if(defined(&_KERNEL)) {
	eval 'sub T_UNIT () {003;}' unless defined(&T_UNIT);
	eval 'sub T_NOREWIND () {004;}' unless defined(&T_NOREWIND);
	eval 'sub T_DENSEL () {030;}' unless defined(&T_DENSEL);
	eval 'sub T_800BPI () {000;}' unless defined(&T_800BPI);
	eval 'sub T_1600BPI () {010;}' unless defined(&T_1600BPI);
	eval 'sub T_6250BPI () {020;}' unless defined(&T_6250BPI);
	eval 'sub T_BADBPI () {030;}' unless defined(&T_BADBPI);
    }
}
1;
