require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_UNISTD_H_)) {
    eval 'sub _UNISTD_H_ () {1;}' unless defined(&_UNISTD_H_);
    require 'machine/ansi.ph';
    require 'machine/int_types.ph';
    require 'sys/cdefs.ph';
    require 'sys/featuretest.ph';
    require 'sys/types.ph';
    require 'sys/unistd.ph';
    if((defined(&_FORTIFY_SOURCE) ? &_FORTIFY_SOURCE : undef) > 0) {
	require 'ssp/unistd.ph';
    }
    eval 'sub STDIN_FILENO () {0;}' unless defined(&STDIN_FILENO);
    eval 'sub STDOUT_FILENO () {1;}' unless defined(&STDOUT_FILENO);
    eval 'sub STDERR_FILENO () {2;}' unless defined(&STDERR_FILENO);
    require 'sys/null.ph';
    if(defined(&_POSIX_C_SOURCE) || defined(&_XOPEN_SOURCE)) {
    } else {
    }
    unless(defined(&__CUSERID_DECLARED)) {
	eval 'sub __CUSERID_DECLARED () {1;}' unless defined(&__CUSERID_DECLARED);
    }
    if((defined(&__SSP_FORTIFY_LEVEL) ? &__SSP_FORTIFY_LEVEL : undef) == 0) {
    }
    if((defined(&__SSP_FORTIFY_LEVEL) ? &__SSP_FORTIFY_LEVEL : undef) == 0) {
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 2|| defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200112 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	if((defined(&__SSP_FORTIFY_LEVEL) ? &__SSP_FORTIFY_LEVEL : undef) == 0) {
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200112 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 600|| defined(&_NETBSD_SOURCE)) {
    }
    unless(defined(&__OFF_T_SYSCALLS_DECLARED)) {
	eval 'sub __OFF_T_SYSCALLS_DECLARED () {1;}' unless defined(&__OFF_T_SYSCALLS_DECLARED);
	if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199309 || (defined(&_XOPEN_SOURCE)  && defined(&_XOPEN_SOURCE_EXTENDED)) || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199309 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199506 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_REENTRANT) || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__PTHREAD_ATFORK_DECLARED)) {
	    eval 'sub __PTHREAD_ATFORK_DECLARED () {1;}' unless defined(&__PTHREAD_ATFORK_DECLARED);
	}
    }
    if(defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
    }
    if(defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
    }
    if(defined(&_XOPEN_SOURCE) || ((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || defined(&_NETBSD_SOURCE)) {
    }
    if((defined(&_XOPEN_SOURCE)  && defined(&_XOPEN_SOURCE_EXTENDED)) || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	unless(defined(&_BSD_INTPTR_T_)) {
	    eval 'sub _BSD_INTPTR_T_ () {1;}' unless defined(&_BSD_INTPTR_T_);
	}
	eval 'sub F_ULOCK () {0;}' unless defined(&F_ULOCK);
	eval 'sub F_LOCK () {1;}' unless defined(&F_LOCK);
	eval 'sub F_TLOCK () {2;}' unless defined(&F_TLOCK);
	eval 'sub F_TEST () {3;}' unless defined(&F_TEST);
	if(defined(&_XOPEN_SOURCE)) {
	} else {
	}
	if(defined(&_XOPEN_SOURCE)) {
	} else {
	}
	unless(defined(&__LIBC12_SOURCE__)) {
	}
	unless(defined(&__AUDIT__)) {
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200112 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0>= 700) || defined(&_NETBSD_SOURCE)) {
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 202405 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0>= 800) || defined(&_NETBSD_SOURCE)) {
    }
    if(defined(&_NETBSD_SOURCE)) {
	eval 'sub GETPASS_NEED_TTY () {0x1;}' unless defined(&GETPASS_NEED_TTY);
	eval 'sub GETPASS_FAIL_EOF () {0x2;}' unless defined(&GETPASS_FAIL_EOF);
	eval 'sub GETPASS_BUF_LIMIT () {0x4;}' unless defined(&GETPASS_BUF_LIMIT);
	eval 'sub GETPASS_NO_SIGNAL () {0x8;}' unless defined(&GETPASS_NO_SIGNAL);
	eval 'sub GETPASS_NO_BEEP () {0x10;}' unless defined(&GETPASS_NO_BEEP);
	eval 'sub GETPASS_ECHO () {0x20;}' unless defined(&GETPASS_ECHO);
	eval 'sub GETPASS_ECHO_STAR () {0x40;}' unless defined(&GETPASS_ECHO_STAR);
	eval 'sub GETPASS_7BIT () {0x80;}' unless defined(&GETPASS_7BIT);
	eval 'sub GETPASS_FORCE_LOWER () {0x100;}' unless defined(&GETPASS_FORCE_LOWER);
	eval 'sub GETPASS_FORCE_UPPER () {0x200;}' unless defined(&GETPASS_FORCE_UPPER);
	eval 'sub GETPASS_ECHO_NL () {0x400;}' unless defined(&GETPASS_ECHO_NL);
	unless(defined(&__PSIGNAL_DECLARED)) {
	    eval 'sub __PSIGNAL_DECLARED () {1;}' unless defined(&__PSIGNAL_DECLARED);
	}
	unless(defined(&__STRSIGNAL_DECLARED)) {
	    eval 'sub __STRSIGNAL_DECLARED () {1;}' unless defined(&__STRSIGNAL_DECLARED);
	}
	if(1) {
	}
	unless(defined(&__SYS_SIGLIST_DECLARED)) {
	    eval 'sub __SYS_SIGLIST_DECLARED () {1;}' unless defined(&__SYS_SIGLIST_DECLARED);
	}
    }
}
1;
