require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_LIMITS_H_)) {
    eval 'sub _LIMITS_H_ () {1;}' unless defined(&_LIMITS_H_);
    require 'sys/cdefs.ph';
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0)) {
	eval 'sub _POSIX_ARG_MAX () {4096;}' unless defined(&_POSIX_ARG_MAX);
	eval 'sub _POSIX_CHILD_MAX () {25;}' unless defined(&_POSIX_CHILD_MAX);
	eval 'sub _POSIX_LINK_MAX () {8;}' unless defined(&_POSIX_LINK_MAX);
	eval 'sub _POSIX_MAX_CANON () {255;}' unless defined(&_POSIX_MAX_CANON);
	eval 'sub _POSIX_MAX_INPUT () {255;}' unless defined(&_POSIX_MAX_INPUT);
	eval 'sub _POSIX_NAME_MAX () {14;}' unless defined(&_POSIX_NAME_MAX);
	eval 'sub _POSIX_NGROUPS_MAX () {0;}' unless defined(&_POSIX_NGROUPS_MAX);
	eval 'sub _POSIX_OPEN_MAX () {16;}' unless defined(&_POSIX_OPEN_MAX);
	eval 'sub _POSIX_PATH_MAX () {256;}' unless defined(&_POSIX_PATH_MAX);
	eval 'sub _POSIX_PIPE_BUF () {512;}' unless defined(&_POSIX_PIPE_BUF);
	eval 'sub _POSIX_RE_DUP_MAX () {255;}' unless defined(&_POSIX_RE_DUP_MAX);
	eval 'sub _POSIX_SSIZE_MAX () {32767;}' unless defined(&_POSIX_SSIZE_MAX);
	eval 'sub _POSIX_STREAM_MAX () {8;}' unless defined(&_POSIX_STREAM_MAX);
	eval 'sub _POSIX_SYMLINK_MAX () {255;}' unless defined(&_POSIX_SYMLINK_MAX);
	eval 'sub _POSIX_SYMLOOP_MAX () {8;}' unless defined(&_POSIX_SYMLOOP_MAX);
	eval 'sub _POSIX_TZNAME_MAX () {3;}' unless defined(&_POSIX_TZNAME_MAX);
	eval 'sub _POSIX2_BC_BASE_MAX () {99;}' unless defined(&_POSIX2_BC_BASE_MAX);
	eval 'sub _POSIX2_BC_DIM_MAX () {2048;}' unless defined(&_POSIX2_BC_DIM_MAX);
	eval 'sub _POSIX2_BC_SCALE_MAX () {99;}' unless defined(&_POSIX2_BC_SCALE_MAX);
	eval 'sub _POSIX2_BC_STRING_MAX () {1000;}' unless defined(&_POSIX2_BC_STRING_MAX);
	eval 'sub _POSIX2_COLL_WEIGHTS_MAX () {2;}' unless defined(&_POSIX2_COLL_WEIGHTS_MAX);
	eval 'sub _POSIX2_EXPR_NEST_MAX () {32;}' unless defined(&_POSIX2_EXPR_NEST_MAX);
	eval 'sub _POSIX2_LINE_MAX () {2048;}' unless defined(&_POSIX2_LINE_MAX);
	eval 'sub _POSIX2_RE_DUP_MAX () { &_POSIX_RE_DUP_MAX;}' unless defined(&_POSIX2_RE_DUP_MAX);
	if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 200112) {
	    eval 'sub _POSIX_TTY_NAME_MAX () {9;}' unless defined(&_POSIX_TTY_NAME_MAX);
	    eval 'sub _POSIX_LOGIN_NAME_MAX () {9;}' unless defined(&_POSIX_LOGIN_NAME_MAX);
	}
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	eval 'sub PASS_MAX () {128;}' unless defined(&PASS_MAX);
	eval 'sub NL_ARGMAX () {9;}' unless defined(&NL_ARGMAX);
	eval 'sub NL_LANGMAX () {14;}' unless defined(&NL_LANGMAX);
	eval 'sub NL_MSGMAX () {32767;}' unless defined(&NL_MSGMAX);
	eval 'sub NL_NMAX () {1;}' unless defined(&NL_NMAX);
	eval 'sub NL_SETMAX () {255;}' unless defined(&NL_SETMAX);
	eval 'sub NL_TEXTMAX () {255;}' unless defined(&NL_TEXTMAX);
	eval 'sub TMP_MAX () {308915776;}' unless defined(&TMP_MAX);
    }
    require 'sys/limits.ph';
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0)) {
	require 'sys/syslimits.ph';
    }
}
1;
