require '_h2ph_pre.ph';

unless(defined(&_NFS_NQNFS_H_)) {
    eval 'sub _NFS_NQNFS_H_ () {1;}' unless defined(&_NFS_NQNFS_H_);
    eval 'sub NQ_CLOCKSKEW () {3;}' unless defined(&NQ_CLOCKSKEW);
    eval 'sub NQ_WRITESLACK () {5;}' unless defined(&NQ_WRITESLACK);
    eval 'sub NQ_MAXLEASE () {60;}' unless defined(&NQ_MAXLEASE);
    eval 'sub NQ_MINLEASE () {5;}' unless defined(&NQ_MINLEASE);
    eval 'sub NQ_DEFLEASE () {30;}' unless defined(&NQ_DEFLEASE);
    eval 'sub NQ_RENEWAL () {3;}' unless defined(&NQ_RENEWAL);
    eval 'sub NQ_TRYLATERDEL () {15;}' unless defined(&NQ_TRYLATERDEL);
    eval 'sub NQ_MAXNUMLEASE () {2048;}' unless defined(&NQ_MAXNUMLEASE);
    eval 'sub NQ_DEADTHRESH () { &NQ_NEVERDEAD;}' unless defined(&NQ_DEADTHRESH);
    eval 'sub NQ_NEVERDEAD () {9;}' unless defined(&NQ_NEVERDEAD);
    eval 'sub NQLCHSZ () {256;}' unless defined(&NQLCHSZ);
    eval 'sub NQNFS_PROG () {300105;}' unless defined(&NQNFS_PROG);
    eval 'sub NQNFS_VER3 () {3;}' unless defined(&NQNFS_VER3);
    eval 'sub NQNFS_EVICTSIZ () {156;}' unless defined(&NQNFS_EVICTSIZ);
    if(defined(&HASNVRAM)) {
	undef(&HASNVRAM) if defined(&HASNVRAM);
    }
    eval 'sub NQSTORENOVRAM {
        local($t) = @_;
	    eval q();
    }' unless defined(&NQSTORENOVRAM);
    eval 'sub NQLOADNOVRAM {
        local($t) = @_;
	    eval q();
    }' unless defined(&NQLOADNOVRAM);
    eval 'sub LC_MOREHOSTSIZ () {10;}' unless defined(&LC_MOREHOSTSIZ);
    eval 'sub lph_flag () { ($lph_un->{un_udp}->{udp_flag});}' unless defined(&lph_flag);
    eval 'sub lph_port () { ($lph_un->{un_udp}->{udp_port});}' unless defined(&lph_port);
    eval 'sub lph_haddr () { ($lph_un->{un_udp}->{udp_haddr});}' unless defined(&lph_haddr);
    eval 'sub lph_inetaddr () { ($lph_un->{un_udp}->{udp_haddr}->{had_inetaddr});}' unless defined(&lph_inetaddr);
    eval 'sub lph_claddr () { ($lph_un->{un_connless}->{connless_haddr});}' unless defined(&lph_claddr);
    eval 'sub lph_nam () { ($lph_un->{un_connless}->{connless_haddr}->{had_nam});}' unless defined(&lph_nam);
    eval 'sub lph_slp () { ($lph_un->{un_conn}->{conn_slp});}' unless defined(&lph_slp);
    eval 'sub lc_flag () { ($lc_host->{lph_un}->{un_udp}->{udp_flag});}' unless defined(&lc_flag);
    eval 'sub LC_VALID () {0x0001;}' unless defined(&LC_VALID);
    eval 'sub LC_WRITE () {0x0002;}' unless defined(&LC_WRITE);
    eval 'sub LC_NONCACHABLE () {0x0004;}' unless defined(&LC_NONCACHABLE);
    eval 'sub LC_LOCKED () {0x0008;}' unless defined(&LC_LOCKED);
    eval 'sub LC_WANTED () {0x0010;}' unless defined(&LC_WANTED);
    eval 'sub LC_EXPIREDWANTED () {0x0020;}' unless defined(&LC_EXPIREDWANTED);
    eval 'sub LC_UDP () {0x0040;}' unless defined(&LC_UDP);
    eval 'sub LC_CLTP () {0x0080;}' unless defined(&LC_CLTP);
    eval 'sub LC_LOCAL () {0x0100;}' unless defined(&LC_LOCAL);
    eval 'sub LC_VACATED () {0x0200;}' unless defined(&LC_VACATED);
    eval 'sub LC_WRITTEN () {0x0400;}' unless defined(&LC_WRITTEN);
    eval 'sub LC_SREF () {0x0800;}' unless defined(&LC_SREF);
    eval 'sub NQLOCALSLP () {( -1);}' unless defined(&NQLOCALSLP);
    eval 'sub nqsrv_getl {
        local($v, $l) = @_;
	    eval q(  &nqsrv_getlease(($v),  ($nfsd->{nd_duration}), (( ($nfsd->{nd_flag}) &  &ND_LEASE) ? ( ($nfsd->{nd_flag}) &  &ND_LEASE) : (($l) |  &ND_CHECK)),  &slp,  &procp,  ($nfsd->{nd_nam}),  &cache,  &frev,  &cred));
    }' unless defined(&nqsrv_getl);
    eval 'sub NQNFS_CKINVALID {
        local($v, $n, $f) = @_;
	    eval q((( ($time->{tv_sec}) > ($n)-> &n_expiry  &&  &VFSTONFS(($v)-> &v_mount)-> &nm_timeouts <  &VFSTONFS(($v)-> &v_mount)-> &nm_deadthresh) || (($f) ==  &ND_WRITE  && (($n)-> &n_flag &  &NQNFSWRITE) == 0)));
    }' unless defined(&NQNFS_CKINVALID);
    eval 'sub NQNFS_CKCACHABLE {
        local($v, $f) = @_;
	    eval q((( ($time->{tv_sec}) <=  &VTONFS($v)-> &n_expiry ||  &VFSTONFS(($v)-> &v_mount)-> &nm_timeouts >=  &VFSTONFS(($v)-> &v_mount)-> &nm_deadthresh)  && ( &VTONFS($v)-> &n_flag &  &NQNFSNONCACHE) == 0 && (($f) ==  &ND_READ || ( &VTONFS($v)-> &n_flag &  &NQNFSWRITE))));
    }' unless defined(&NQNFS_CKCACHABLE);
    eval 'sub NQNFS_NEEDLEASE {
        local($v, $p) = @_;
	    eval q(( ($time->{tv_sec}) >  &VTONFS($v)-> &n_expiry ? (( &VTONFS($v)-> &n_flag &  &NQNFSEVICTED) ? 0:  $nqnfs_piggy[$p]) : ((( ($time->{tv_sec}) +  &NQ_RENEWAL) >  &VTONFS($v)-> &n_expiry  &&  $nqnfs_piggy[$p]) ? (( &VTONFS($v)-> &n_flag &  &NQNFSWRITE) ?  &ND_WRITE :  $nqnfs_piggy[$p]) : 0)));
    }' unless defined(&NQNFS_NEEDLEASE);
    eval 'sub NQFHHASH {
        local($f) = @_;
	    eval q(( $nqfhhashtbl[(*(($f))) &  &nqfhhash]));
    }' unless defined(&NQFHHASH);
    eval 'sub NQNFS_EXPIRED () {500;}' unless defined(&NQNFS_EXPIRED);
    eval 'sub NQNFS_TRYLATER () {501;}' unless defined(&NQNFS_TRYLATER);
    if(defined(&_KERNEL)) {
    }
}
1;
