require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_UNISTD_H_)) {
    eval 'sub _SYS_UNISTD_H_ () {1;}' unless defined(&_SYS_UNISTD_H_);
    require 'sys/cdefs.ph';
    eval 'sub _POSIX_JOB_CONTROL () {1;}' unless defined(&_POSIX_JOB_CONTROL);
    eval 'sub _POSIX_SAVED_IDS () {1;}' unless defined(&_POSIX_SAVED_IDS);
    eval 'sub _POSIX_VERSION () {199009;}' unless defined(&_POSIX_VERSION);
    eval 'sub _POSIX2_VERSION () {199212;}' unless defined(&_POSIX2_VERSION);
    eval 'sub _POSIX_CHOWN_RESTRICTED () {1;}' unless defined(&_POSIX_CHOWN_RESTRICTED);
    eval 'sub _POSIX_NO_TRUNC () {1;}' unless defined(&_POSIX_NO_TRUNC);
    eval 'sub _POSIX_VDISABLE () {(0377);}' unless defined(&_POSIX_VDISABLE);
    eval 'sub _POSIX_FSYNC () {1;}' unless defined(&_POSIX_FSYNC);
    eval 'sub F_OK () {0;}' unless defined(&F_OK);
    eval 'sub X_OK () {0x1;}' unless defined(&X_OK);
    eval 'sub W_OK () {0x2;}' unless defined(&W_OK);
    eval 'sub R_OK () {0x4;}' unless defined(&R_OK);
    eval 'sub SEEK_SET () {0;}' unless defined(&SEEK_SET);
    eval 'sub SEEK_CUR () {1;}' unless defined(&SEEK_CUR);
    eval 'sub SEEK_END () {2;}' unless defined(&SEEK_END);
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	eval 'sub L_SET () { &SEEK_SET;}' unless defined(&L_SET);
	eval 'sub L_INCR () { &SEEK_CUR;}' unless defined(&L_INCR);
	eval 'sub L_XTND () { &SEEK_END;}' unless defined(&L_XTND);
    }
    eval 'sub _PC_LINK_MAX () {1;}' unless defined(&_PC_LINK_MAX);
    eval 'sub _PC_MAX_CANON () {2;}' unless defined(&_PC_MAX_CANON);
    eval 'sub _PC_MAX_INPUT () {3;}' unless defined(&_PC_MAX_INPUT);
    eval 'sub _PC_NAME_MAX () {4;}' unless defined(&_PC_NAME_MAX);
    eval 'sub _PC_PATH_MAX () {5;}' unless defined(&_PC_PATH_MAX);
    eval 'sub _PC_PIPE_BUF () {6;}' unless defined(&_PC_PIPE_BUF);
    eval 'sub _PC_CHOWN_RESTRICTED () {7;}' unless defined(&_PC_CHOWN_RESTRICTED);
    eval 'sub _PC_NO_TRUNC () {8;}' unless defined(&_PC_NO_TRUNC);
    eval 'sub _PC_VDISABLE () {9;}' unless defined(&_PC_VDISABLE);
    eval 'sub _SC_ARG_MAX () {1;}' unless defined(&_SC_ARG_MAX);
    eval 'sub _SC_CHILD_MAX () {2;}' unless defined(&_SC_CHILD_MAX);
    eval 'sub _SC_CLK_TCK () {3;}' unless defined(&_SC_CLK_TCK);
    eval 'sub _SC_NGROUPS_MAX () {4;}' unless defined(&_SC_NGROUPS_MAX);
    eval 'sub _SC_OPEN_MAX () {5;}' unless defined(&_SC_OPEN_MAX);
    eval 'sub _SC_JOB_CONTROL () {6;}' unless defined(&_SC_JOB_CONTROL);
    eval 'sub _SC_SAVED_IDS () {7;}' unless defined(&_SC_SAVED_IDS);
    eval 'sub _SC_VERSION () {8;}' unless defined(&_SC_VERSION);
    eval 'sub _SC_BC_BASE_MAX () {9;}' unless defined(&_SC_BC_BASE_MAX);
    eval 'sub _SC_BC_DIM_MAX () {10;}' unless defined(&_SC_BC_DIM_MAX);
    eval 'sub _SC_BC_SCALE_MAX () {11;}' unless defined(&_SC_BC_SCALE_MAX);
    eval 'sub _SC_BC_STRING_MAX () {12;}' unless defined(&_SC_BC_STRING_MAX);
    eval 'sub _SC_COLL_WEIGHTS_MAX () {13;}' unless defined(&_SC_COLL_WEIGHTS_MAX);
    eval 'sub _SC_EXPR_NEST_MAX () {14;}' unless defined(&_SC_EXPR_NEST_MAX);
    eval 'sub _SC_LINE_MAX () {15;}' unless defined(&_SC_LINE_MAX);
    eval 'sub _SC_RE_DUP_MAX () {16;}' unless defined(&_SC_RE_DUP_MAX);
    eval 'sub _SC_2_VERSION () {17;}' unless defined(&_SC_2_VERSION);
    eval 'sub _SC_2_C_BIND () {18;}' unless defined(&_SC_2_C_BIND);
    eval 'sub _SC_2_C_DEV () {19;}' unless defined(&_SC_2_C_DEV);
    eval 'sub _SC_2_CHAR_TERM () {20;}' unless defined(&_SC_2_CHAR_TERM);
    eval 'sub _SC_2_FORT_DEV () {21;}' unless defined(&_SC_2_FORT_DEV);
    eval 'sub _SC_2_FORT_RUN () {22;}' unless defined(&_SC_2_FORT_RUN);
    eval 'sub _SC_2_LOCALEDEF () {23;}' unless defined(&_SC_2_LOCALEDEF);
    eval 'sub _SC_2_SW_DEV () {24;}' unless defined(&_SC_2_SW_DEV);
    eval 'sub _SC_2_UPE () {25;}' unless defined(&_SC_2_UPE);
    eval 'sub _SC_STREAM_MAX () {26;}' unless defined(&_SC_STREAM_MAX);
    eval 'sub _SC_TZNAME_MAX () {27;}' unless defined(&_SC_TZNAME_MAX);
    eval 'sub _SC_PAGESIZE () {28;}' unless defined(&_SC_PAGESIZE);
    eval 'sub _SC_PAGE_SIZE () { &_SC_PAGESIZE;}' unless defined(&_SC_PAGE_SIZE);
    eval 'sub _SC_FSYNC () {29;}' unless defined(&_SC_FSYNC);
    eval 'sub _SC_XOPEN_SHM () {30;}' unless defined(&_SC_XOPEN_SHM);
    eval 'sub _SC_SEM_NSEMS_MAX () {31;}' unless defined(&_SC_SEM_NSEMS_MAX);
    eval 'sub _SC_SEM_VALUE_MAX () {32;}' unless defined(&_SC_SEM_VALUE_MAX);
    if(defined(&notyet)) {
	eval 'sub _SC_GETGR_R_SIZE_MAX () {1;}' unless defined(&_SC_GETGR_R_SIZE_MAX);
	eval 'sub _SC_GETPW_R_SIZE_MAX () {1;}' unless defined(&_SC_GETPW_R_SIZE_MAX);
	eval 'sub _SC_LOGIN_NAME_MAX () {1;}' unless defined(&_SC_LOGIN_NAME_MAX);
	eval 'sub _SC_THREAD_DESTRUCTOR_ITERATIONS () {1;}' unless defined(&_SC_THREAD_DESTRUCTOR_ITERATIONS);
	eval 'sub _SC_THREAD_KEYS_MAX () {1;}' unless defined(&_SC_THREAD_KEYS_MAX);
	eval 'sub _SC_THREAD_STACK_MIN () {1;}' unless defined(&_SC_THREAD_STACK_MIN);
	eval 'sub _SC_THREAD_THREADS_MAX () {1;}' unless defined(&_SC_THREAD_THREADS_MAX);
	eval 'sub _SC_TTY_NAME_MAX () {1;}' unless defined(&_SC_TTY_NAME_MAX);
	eval 'sub _SC_THREADS () {1;}' unless defined(&_SC_THREADS);
	eval 'sub _SC_THREAD_ATTR_STACKADDR () {1;}' unless defined(&_SC_THREAD_ATTR_STACKADDR);
	eval 'sub _SC_THREAD_ATTR_STACKSIZE () {1;}' unless defined(&_SC_THREAD_ATTR_STACKSIZE);
	eval 'sub _SC_THREAD_PRIORITY_SCHEDULING () {1;}' unless defined(&_SC_THREAD_PRIORITY_SCHEDULING);
	eval 'sub _SC_THREAD_PRIO_INHERIT () {1;}' unless defined(&_SC_THREAD_PRIO_INHERIT);
	eval 'sub _SC_THREAD_PRIO_PROTECT () {1;}' unless defined(&_SC_THREAD_PRIO_PROTECT);
	eval 'sub _SC_THREAD_PROCESS_SHARED () {1;}' unless defined(&_SC_THREAD_PROCESS_SHARED);
	eval 'sub _SC_THREAD_SAFE_FUNCTIONS () {1;}' unless defined(&_SC_THREAD_SAFE_FUNCTIONS);
    }
    eval 'sub _CS_PATH () {1;}' unless defined(&_CS_PATH);
}
1;
