require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_PIPE_H_)) {
    eval 'sub _SYS_PIPE_H_ () {1;}' unless defined(&_SYS_PIPE_H_);
    require 'sys/selinfo.ph';
    require 'sys/time.ph';
    require 'uvm/uvm_extern.ph';
    unless(defined(&PIPE_SIZE)) {
	eval 'sub PIPE_SIZE () {16384;}' unless defined(&PIPE_SIZE);
    }
    unless(defined(&BIG_PIPE_SIZE)) {
	eval 'sub BIG_PIPE_SIZE () {(4* &PIPE_SIZE);}' unless defined(&BIG_PIPE_SIZE);
    }
    unless(defined(&PIPE_DIRECT_CHUNK)) {
	eval 'sub PIPE_DIRECT_CHUNK () {(1*1024*1024);}' unless defined(&PIPE_DIRECT_CHUNK);
    }
    unless(defined(&PIPE_MINDIRECT)) {
	eval 'sub PIPE_MINDIRECT () {8192;}' unless defined(&PIPE_MINDIRECT);
    }
    eval 'sub PIPE_ASYNC () {0x1;}' unless defined(&PIPE_ASYNC);
    eval 'sub PIPE_EOF () {0x10;}' unless defined(&PIPE_EOF);
    eval 'sub PIPE_SIGNALR () {0x20;}' unless defined(&PIPE_SIGNALR);
    eval 'sub PIPE_LOCKFL () {0x100;}' unless defined(&PIPE_LOCKFL);
    eval 'sub PIPE_RESTART () {0x400;}' unless defined(&PIPE_RESTART);
    eval 'sub KERN_PIPE_MAXKVASZ () {1;}' unless defined(&KERN_PIPE_MAXKVASZ);
    eval 'sub KERN_PIPE_LIMITKVA () {2;}' unless defined(&KERN_PIPE_LIMITKVA);
    eval 'sub KERN_PIPE_MAXBIGPIPES () {3;}' unless defined(&KERN_PIPE_MAXBIGPIPES);
    eval 'sub KERN_PIPE_NBIGPIPES () {4;}' unless defined(&KERN_PIPE_NBIGPIPES);
    eval 'sub KERN_PIPE_KVASIZE () {5;}' unless defined(&KERN_PIPE_KVASIZE);
    if(defined(&_KERNEL)) {
    }
}
1;
