require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_PIPE_H_)) {
    eval 'sub _SYS_PIPE_H_ () {1;}' unless defined(&_SYS_PIPE_H_);
    unless(defined(&_KERNEL)) {
	require 'sys/time.ph';
	require 'sys/selinfo.ph';
	require 'uvm/uvm_extern.ph';
	require 'machine/param.ph';
    }
    unless(defined(&PIPE_SIZE)) {
	eval 'sub PIPE_SIZE () {16384;}' unless defined(&PIPE_SIZE);
    }
    unless(defined(&BIG_PIPE_SIZE)) {
	eval 'sub BIG_PIPE_SIZE () {(64*1024);}' unless defined(&BIG_PIPE_SIZE);
    }
    eval 'sub PIPE_ASYNC () {0x4;}' unless defined(&PIPE_ASYNC);
    eval 'sub PIPE_WANTR () {0x8;}' unless defined(&PIPE_WANTR);
    eval 'sub PIPE_WANTW () {0x10;}' unless defined(&PIPE_WANTW);
    eval 'sub PIPE_WANT () {0x20;}' unless defined(&PIPE_WANT);
    eval 'sub PIPE_SEL () {0x40;}' unless defined(&PIPE_SEL);
    eval 'sub PIPE_EOF () {0x80;}' unless defined(&PIPE_EOF);
    eval 'sub PIPE_LOCK () {0x100;}' unless defined(&PIPE_LOCK);
    eval 'sub PIPE_LWANT () {0x200;}' unless defined(&PIPE_LWANT);
    if(defined(&_KERNEL)) {
    }
}
1;
