require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_RNDIO_H)) {
    eval 'sub _SYS_RNDIO_H () {1;}' unless defined(&_SYS_RNDIO_H);
    require 'sys/types.ph';
    require 'sys/sha1.ph';
    require 'sys/ioccom.ph';
    eval 'sub RND_SAVEWORDS () {128;}' unless defined(&RND_SAVEWORDS);
    eval 'sub RND_FLAG_NO_ESTIMATE () {0x100;}' unless defined(&RND_FLAG_NO_ESTIMATE);
    eval 'sub RND_FLAG_NO_COLLECT () {0x200;}' unless defined(&RND_FLAG_NO_COLLECT);
    eval 'sub RND_FLAG_FAST () {0x400;}' unless defined(&RND_FLAG_FAST);
    eval 'sub RND_FLAG_HASCB () {0x800;}' unless defined(&RND_FLAG_HASCB);
    eval 'sub RND_FLAG_COLLECT_TIME () {0x1000;}' unless defined(&RND_FLAG_COLLECT_TIME);
    eval 'sub RND_FLAG_COLLECT_VALUE () {0x2000;}' unless defined(&RND_FLAG_COLLECT_VALUE);
    eval 'sub RND_FLAG_ESTIMATE_TIME () {0x4000;}' unless defined(&RND_FLAG_ESTIMATE_TIME);
    eval 'sub RND_FLAG_ESTIMATE_VALUE () {0x8000;}' unless defined(&RND_FLAG_ESTIMATE_VALUE);
    eval 'sub RND_FLAG_HASENABLE () {0x10000;}' unless defined(&RND_FLAG_HASENABLE);
    eval 'sub RND_FLAG_DEFAULT () {( &RND_FLAG_COLLECT_VALUE| &RND_FLAG_COLLECT_TIME|  &RND_FLAG_ESTIMATE_TIME);}' unless defined(&RND_FLAG_DEFAULT);
    eval 'sub RND_TYPE_UNKNOWN () {0;}' unless defined(&RND_TYPE_UNKNOWN);
    eval 'sub RND_TYPE_DISK () {1;}' unless defined(&RND_TYPE_DISK);
    eval 'sub RND_TYPE_NET () {2;}' unless defined(&RND_TYPE_NET);
    eval 'sub RND_TYPE_TAPE () {3;}' unless defined(&RND_TYPE_TAPE);
    eval 'sub RND_TYPE_TTY () {4;}' unless defined(&RND_TYPE_TTY);
    eval 'sub RND_TYPE_RNG () {5;}' unless defined(&RND_TYPE_RNG);
    eval 'sub RND_TYPE_SKEW () {6;}' unless defined(&RND_TYPE_SKEW);
    eval 'sub RND_TYPE_ENV () {7;}' unless defined(&RND_TYPE_ENV);
    eval 'sub RND_TYPE_VM () {8;}' unless defined(&RND_TYPE_VM);
    eval 'sub RND_TYPE_POWER () {9;}' unless defined(&RND_TYPE_POWER);
    eval 'sub RND_TYPE_MAX () {9;}' unless defined(&RND_TYPE_MAX);
    eval 'sub RND_MAXSTATCOUNT () {10;}' unless defined(&RND_MAXSTATCOUNT);
    eval 'sub RNDGETENTCNT () { &_IOR(ord(\'R\'), 101,  &uint32_t);}' unless defined(&RNDGETENTCNT);
    eval 'sub RNDGETSRCNUM () { &_IOWR(ord(\'R\'), 102,  &rndstat_t);}' unless defined(&RNDGETSRCNUM);
    eval 'sub RNDGETSRCNAME () { &_IOWR(ord(\'R\'), 103,  &rndstat_name_t);}' unless defined(&RNDGETSRCNAME);
    eval 'sub RNDCTL () { &_IOW(ord(\'R\'), 104,  &rndctl_t);}' unless defined(&RNDCTL);
    eval 'sub RNDADDDATA () { &_IOW(ord(\'R\'), 105,  &rnddata_t);}' unless defined(&RNDADDDATA);
    eval 'sub RNDGETPOOLSTAT () { &_IOR(ord(\'R\'), 106,  &rndpoolstat_t);}' unless defined(&RNDGETPOOLSTAT);
    eval 'sub RNDGETESTNUM () { &_IOWR(ord(\'R\'), 107,  &rndstat_est_t);}' unless defined(&RNDGETESTNUM);
    eval 'sub RNDGETESTNAME () { &_IOWR(ord(\'R\'), 108,  &rndstat_est_name_t);}' unless defined(&RNDGETESTNAME);
}
1;
