require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_SIGINFO_H)) {
    eval 'sub _SYS_SIGINFO_H () {1;}' unless defined(&_SYS_SIGINFO_H);
    require 'sys/cdefs.ph';
    eval 'sub SI_FROMUSER {
        my($sip) = @_;
	    eval q((($sip)-> &si_code <= 0));
    }' unless defined(&SI_FROMUSER);
    eval 'sub SI_FROMKERNEL {
        my($sip) = @_;
	    eval q((($sip)-> &si_code > 0));
    }' unless defined(&SI_FROMKERNEL);
    eval 'sub SI_NOINFO () {32767;}' unless defined(&SI_NOINFO);
    eval 'sub SI_USER () {0;}' unless defined(&SI_USER);
    eval 'sub SI_LWP () {(-1);}' unless defined(&SI_LWP);
    eval 'sub SI_QUEUE () {(-2);}' unless defined(&SI_QUEUE);
    eval 'sub SI_TIMER () {(-3);}' unless defined(&SI_TIMER);
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199309|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	eval 'sub ILL_ILLOPC () {1;}' unless defined(&ILL_ILLOPC);
	eval 'sub ILL_ILLOPN () {2;}' unless defined(&ILL_ILLOPN);
	eval 'sub ILL_ILLADR () {3;}' unless defined(&ILL_ILLADR);
	eval 'sub ILL_ILLTRP () {4;}' unless defined(&ILL_ILLTRP);
	eval 'sub ILL_PRVOPC () {5;}' unless defined(&ILL_PRVOPC);
	eval 'sub ILL_PRVREG () {6;}' unless defined(&ILL_PRVREG);
	eval 'sub ILL_COPROC () {7;}' unless defined(&ILL_COPROC);
	eval 'sub ILL_BADSTK () {8;}' unless defined(&ILL_BADSTK);
	eval 'sub NSIGILL () {8;}' unless defined(&NSIGILL);
	eval 'sub EMT_TAGOVF () {1;}' unless defined(&EMT_TAGOVF);
	eval 'sub NSIGEMT () {1;}' unless defined(&NSIGEMT);
	eval 'sub FPE_INTDIV () {1;}' unless defined(&FPE_INTDIV);
	eval 'sub FPE_INTOVF () {2;}' unless defined(&FPE_INTOVF);
	eval 'sub FPE_FLTDIV () {3;}' unless defined(&FPE_FLTDIV);
	eval 'sub FPE_FLTOVF () {4;}' unless defined(&FPE_FLTOVF);
	eval 'sub FPE_FLTUND () {5;}' unless defined(&FPE_FLTUND);
	eval 'sub FPE_FLTRES () {6;}' unless defined(&FPE_FLTRES);
	eval 'sub FPE_FLTINV () {7;}' unless defined(&FPE_FLTINV);
	eval 'sub FPE_FLTSUB () {8;}' unless defined(&FPE_FLTSUB);
	eval 'sub NSIGFPE () {8;}' unless defined(&NSIGFPE);
	eval 'sub SEGV_MAPERR () {1;}' unless defined(&SEGV_MAPERR);
	eval 'sub SEGV_ACCERR () {2;}' unless defined(&SEGV_ACCERR);
	eval 'sub NSIGSEGV () {2;}' unless defined(&NSIGSEGV);
	eval 'sub BUS_ADRALN () {1;}' unless defined(&BUS_ADRALN);
	eval 'sub BUS_ADRERR () {2;}' unless defined(&BUS_ADRERR);
	eval 'sub BUS_OBJERR () {3;}' unless defined(&BUS_OBJERR);
	eval 'sub NSIGBUS () {3;}' unless defined(&NSIGBUS);
    }
    eval 'sub TRAP_BRKPT () {1;}' unless defined(&TRAP_BRKPT);
    eval 'sub TRAP_TRACE () {2;}' unless defined(&TRAP_TRACE);
    eval 'sub NSIGTRAP () {2;}' unless defined(&NSIGTRAP);
    eval 'sub CLD_EXITED () {1;}' unless defined(&CLD_EXITED);
    eval 'sub CLD_KILLED () {2;}' unless defined(&CLD_KILLED);
    eval 'sub CLD_DUMPED () {3;}' unless defined(&CLD_DUMPED);
    eval 'sub CLD_TRAPPED () {4;}' unless defined(&CLD_TRAPPED);
    eval 'sub CLD_STOPPED () {5;}' unless defined(&CLD_STOPPED);
    eval 'sub CLD_CONTINUED () {6;}' unless defined(&CLD_CONTINUED);
    eval 'sub NSIGCLD () {6;}' unless defined(&NSIGCLD);
    if(0) {
	eval 'sub POLL_IN () {1;}' unless defined(&POLL_IN);
	eval 'sub POLL_OUT () {2;}' unless defined(&POLL_OUT);
	eval 'sub POLL_MSG () {3;}' unless defined(&POLL_MSG);
	eval 'sub POLL_ERR () {4;}' unless defined(&POLL_ERR);
	eval 'sub POLL_PRI () {5;}' unless defined(&POLL_PRI);
	eval 'sub POLL_HUP () {6;}' unless defined(&POLL_HUP);
	eval 'sub NSIGPOLL () {6;}' unless defined(&NSIGPOLL);
	eval 'sub PROF_SIG () {1;}' unless defined(&PROF_SIG);
	eval 'sub NSIGPROF () {1;}' unless defined(&NSIGPROF);
    }
    eval 'sub SI_MAXSZ () {128;}' unless defined(&SI_MAXSZ);
    eval 'sub SI_PAD () {(( &SI_MAXSZ / $sizeof{\'int\'}) - 3);}' unless defined(&SI_PAD);
    require 'sys/time.ph';
    if(0) {
    }
    eval 'sub si_pid () { ($_data->{_proc}->{_pid});}' unless defined(&si_pid);
    eval 'sub si_status () { ($_data->{_proc}->{_pdata}->{_cld}->{_status});}' unless defined(&si_status);
    eval 'sub si_stime () { ($_data->{_proc}->{_pdata}->{_cld}->{_stime});}' unless defined(&si_stime);
    eval 'sub si_utime () { ($_data->{_proc}->{_pdata}->{_cld}->{_utime});}' unless defined(&si_utime);
    eval 'sub si_uid () { ($_data->{_proc}->{_pdata}->{_kill}->{_uid});}' unless defined(&si_uid);
    eval 'sub si_value () { ($_data->{_proc}->{_pdata}->{_kill}->{_value});}' unless defined(&si_value);
    eval 'sub si_addr () { ($_data->{_fault}->{_addr});}' unless defined(&si_addr);
    eval 'sub si_trapno () { ($_data->{_fault}->{_trapno});}' unless defined(&si_trapno);
    eval 'sub si_fd () { ($_data->{_file}->{_fd});}' unless defined(&si_fd);
    eval 'sub si_band () { ($_data->{_file}->{_band});}' unless defined(&si_band);
    eval 'sub si_tstamp () { ($_data->{_prof}->{_tstamp});}' unless defined(&si_tstamp);
    eval 'sub si_syscall () { ($_data->{_prof}->{_syscall});}' unless defined(&si_syscall);
    eval 'sub si_nsysarg () { ($_data->{_prof}->{_nsysarg});}' unless defined(&si_nsysarg);
    eval 'sub si_sysarg () { ($_data->{_prof}->{_sysarg});}' unless defined(&si_sysarg);
    eval 'sub si_fault () { ($_data->{_prof}->{_fault});}' unless defined(&si_fault);
    eval 'sub si_faddr () { ($_data->{_prof}->{_faddr});}' unless defined(&si_faddr);
    eval 'sub si_mstate () { ($_data->{_prof}->{_mstate});}' unless defined(&si_mstate);
    if(defined( &_KERNEL)) {
    }
}
1;
