require '_h2ph_pre.ph';

no warnings 'redefine';

require 'sys/cdefs.ph';
if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) || (defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub ARG_MAX () {(256* 1024);}' unless defined(&ARG_MAX);
    eval 'sub CHILD_MAX () {80;}' unless defined(&CHILD_MAX);
    eval 'sub LINK_MAX () {32767;}' unless defined(&LINK_MAX);
    eval 'sub MAX_CANON () {255;}' unless defined(&MAX_CANON);
    eval 'sub MAX_INPUT () {255;}' unless defined(&MAX_INPUT);
    eval 'sub NAME_MAX () {255;}' unless defined(&NAME_MAX);
    eval 'sub NGROUPS_MAX () {16;}' unless defined(&NGROUPS_MAX);
    eval 'sub OPEN_MAX () {64;}' unless defined(&OPEN_MAX);
    eval 'sub PATH_MAX () {1024;}' unless defined(&PATH_MAX);
    eval 'sub PIPE_BUF () {512;}' unless defined(&PIPE_BUF);
    eval 'sub SYMLINK_MAX () { &PATH_MAX;}' unless defined(&SYMLINK_MAX);
    eval 'sub SYMLOOP_MAX () {32;}' unless defined(&SYMLOOP_MAX);
    eval 'sub BC_BASE_MAX () { &INT_MAX;}' unless defined(&BC_BASE_MAX);
    eval 'sub BC_DIM_MAX () {65535;}' unless defined(&BC_DIM_MAX);
    eval 'sub BC_SCALE_MAX () { &INT_MAX;}' unless defined(&BC_SCALE_MAX);
    eval 'sub BC_STRING_MAX () { &INT_MAX;}' unless defined(&BC_STRING_MAX);
    eval 'sub COLL_WEIGHTS_MAX () {2;}' unless defined(&COLL_WEIGHTS_MAX);
    eval 'sub EXPR_NEST_MAX () {32;}' unless defined(&EXPR_NEST_MAX);
    eval 'sub LINE_MAX () {2048;}' unless defined(&LINE_MAX);
    unless(defined(&RE_DUP_MAX)) {
	eval 'sub RE_DUP_MAX () {255;}' unless defined(&RE_DUP_MAX);
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	eval 'sub IOV_MAX () {1024;}' unless defined(&IOV_MAX);
	eval 'sub NZERO () {20;}' unless defined(&NZERO);
    }
}
if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 500|| (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199506|| (defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub TTY_NAME_MAX () {260;}' unless defined(&TTY_NAME_MAX);
    eval 'sub LOGIN_NAME_MAX () {32;}' unless defined(&LOGIN_NAME_MAX);
}
1;
