require '_h2ph_pre.ph';

if(defined(&_KERNEL)) {
    eval 'sub FD_ROOT () {2;}' unless defined(&FD_ROOT);
    eval 'sub FD_DEVFD () {3;}' unless defined(&FD_DEVFD);
    eval 'sub FD_STDIN () {4;}' unless defined(&FD_STDIN);
    eval 'sub FD_STDOUT () {5;}' unless defined(&FD_STDOUT);
    eval 'sub FD_STDERR () {6;}' unless defined(&FD_STDERR);
    eval 'sub FD_CTTY () {7;}' unless defined(&FD_CTTY);
    eval 'sub FD_DESC () {8;}' unless defined(&FD_DESC);
    eval 'sub FD_MAX () {12;}' unless defined(&FD_MAX);
    eval("sub Froot () { 0; }") unless defined(&Froot);
    eval("sub Fdevfd () { 1; }") unless defined(&Fdevfd);
    eval("sub Fdesc () { 2; }") unless defined(&Fdesc);
    eval("sub Flink () { 3; }") unless defined(&Flink);
    eval("sub Fctty () { 4; }") unless defined(&Fctty);
    eval 'sub VFSTOFDESC {
        local($mp) = @_;
	    eval q(((($mp)-> &mnt_data)));
    }' unless defined(&VFSTOFDESC);
    eval 'sub VTOFDESC {
        local($vp) = @_;
	    eval q((($vp)-> &v_data));
    }' unless defined(&VTOFDESC);
}
1;
