require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_RUMP_RUMPUSER_H_)) {
    eval 'sub _RUMP_RUMPUSER_H_ () {1;}' unless defined(&_RUMP_RUMPUSER_H_);
    if(!defined(&_KERNEL)  && !defined(&LIBRUMPUSER)) {
	die("The\ rump\/rumpuser\.h\ interface\ is\ not\ for\ non\-kernel\ consumers");
    }
    eval 'sub RUMPUSER_VERSION () {17;}' unless defined(&RUMPUSER_VERSION);
    eval 'sub RUMPUSER_OPEN_RDONLY () {0x;}' unless defined(&RUMPUSER_OPEN_RDONLY);
    eval 'sub RUMPUSER_OPEN_WRONLY () {0x1;}' unless defined(&RUMPUSER_OPEN_WRONLY);
    eval 'sub RUMPUSER_OPEN_RDWR () {0x2;}' unless defined(&RUMPUSER_OPEN_RDWR);
    eval 'sub RUMPUSER_OPEN_ACCMODE () {0x3;}' unless defined(&RUMPUSER_OPEN_ACCMODE);
    eval 'sub RUMPUSER_OPEN_CREATE () {0x4;}' unless defined(&RUMPUSER_OPEN_CREATE);
    eval 'sub RUMPUSER_OPEN_EXCL () {0x8;}' unless defined(&RUMPUSER_OPEN_EXCL);
    eval 'sub RUMPUSER_OPEN_BIO () {0x10;}' unless defined(&RUMPUSER_OPEN_BIO);
    eval 'sub RUMPUSER_FT_OTHER () {0;}' unless defined(&RUMPUSER_FT_OTHER);
    eval 'sub RUMPUSER_FT_DIR () {1;}' unless defined(&RUMPUSER_FT_DIR);
    eval 'sub RUMPUSER_FT_REG () {2;}' unless defined(&RUMPUSER_FT_REG);
    eval 'sub RUMPUSER_FT_BLK () {3;}' unless defined(&RUMPUSER_FT_BLK);
    eval 'sub RUMPUSER_FT_CHR () {4;}' unless defined(&RUMPUSER_FT_CHR);
    eval 'sub RUMPUSER_BIO_READ () {0x1;}' unless defined(&RUMPUSER_BIO_READ);
    eval 'sub RUMPUSER_BIO_WRITE () {0x2;}' unless defined(&RUMPUSER_BIO_WRITE);
    eval 'sub RUMPUSER_BIO_SYNC () {0x4;}' unless defined(&RUMPUSER_BIO_SYNC);
    eval 'sub RUMPUSER_IOV_NOSEEK () {-1;}' unless defined(&RUMPUSER_IOV_NOSEEK);
    eval 'sub RUMPUSER_SYNCFD_READ () {0x1;}' unless defined(&RUMPUSER_SYNCFD_READ);
    eval 'sub RUMPUSER_SYNCFD_WRITE () {0x2;}' unless defined(&RUMPUSER_SYNCFD_WRITE);
    eval 'sub RUMPUSER_SYNCFD_BOTH () {( &RUMPUSER_SYNCFD_READ |  &RUMPUSER_SYNCFD_WRITE);}' unless defined(&RUMPUSER_SYNCFD_BOTH);
    eval 'sub RUMPUSER_SYNCFD_BARRIER () {0x4;}' unless defined(&RUMPUSER_SYNCFD_BARRIER);
    eval 'sub RUMPUSER_SYNCFD_SYNC () {0x8;}' unless defined(&RUMPUSER_SYNCFD_SYNC);
    eval("sub RUMPUSER_CLOCK_RELWALL () { 0; }") unless defined(&RUMPUSER_CLOCK_RELWALL);
    eval("sub RUMPUSER_CLOCK_ABSMONO () { 1; }") unless defined(&RUMPUSER_CLOCK_ABSMONO);
    eval 'sub RUMPUSER_PARAM_NCPU () {"_RUMPUSER_NCPU";}' unless defined(&RUMPUSER_PARAM_NCPU);
    eval 'sub RUMPUSER_PARAM_HOSTNAME () {"_RUMPUSER_HOSTNAME";}' unless defined(&RUMPUSER_PARAM_HOSTNAME);
    eval 'sub RUMPUSER_PID_SELF () {(( &int64_t)-1);}' unless defined(&RUMPUSER_PID_SELF);
    eval 'sub RUMPUSER_PANIC () {(-1);}' unless defined(&RUMPUSER_PANIC);
    eval 'sub RUMPUSER_RANDOM_HARD () {0x1;}' unless defined(&RUMPUSER_RANDOM_HARD);
    eval 'sub RUMPUSER_RANDOM_NOWAIT () {0x2;}' unless defined(&RUMPUSER_RANDOM_NOWAIT);
    if(defined(&LIBRUMPUSER) || defined(&RUMP__CURLWP_PRIVATE)) {
	eval("sub RUMPUSER_LWP_CREATE () { 0; }") unless defined(&RUMPUSER_LWP_CREATE);
	eval("sub RUMPUSER_LWP_DESTROY () { 1; }") unless defined(&RUMPUSER_LWP_DESTROY);
	eval("sub RUMPUSER_LWP_SET () { 2; }") unless defined(&RUMPUSER_LWP_SET);
	eval("sub RUMPUSER_LWP_CLEAR () { 3; }") unless defined(&RUMPUSER_LWP_CLEAR);
    }
    eval 'sub RUMPUSER_MTX_SPIN () {0x1;}' unless defined(&RUMPUSER_MTX_SPIN);
    eval 'sub RUMPUSER_MTX_KMUTEX () {0x2;}' unless defined(&RUMPUSER_MTX_KMUTEX);
    eval("sub RUMPUSER_RW_READER () { 0; }") unless defined(&RUMPUSER_RW_READER);
    eval("sub RUMPUSER_RW_WRITER () { 1; }") unless defined(&RUMPUSER_RW_WRITER);
    if(defined(&_RUMP_SYSPROXY) || defined(&LIBRUMPUSER)) {
    }
}
1;
