require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NFS_NFSMOUNT_H_)) {
    eval 'sub _NFS_NFSMOUNT_H_ () {1;}' unless defined(&_NFS_NFSMOUNT_H_);
    if(defined(&_KERNEL)  && !defined(&NFS_ARGS_ONLY)) {
	require 'sys/condvar.ph';
	require 'sys/rwlock.ph';
	require 'sys/mutex.ph';
	require 'sys/disk.ph';
    }
    eval 'sub NFS_ARGSVERSION () {3;}' unless defined(&NFS_ARGSVERSION);
    eval 'sub NFSMNT_SOFT () {0x1;}' unless defined(&NFSMNT_SOFT);
    eval 'sub NFSMNT_WSIZE () {0x2;}' unless defined(&NFSMNT_WSIZE);
    eval 'sub NFSMNT_RSIZE () {0x4;}' unless defined(&NFSMNT_RSIZE);
    eval 'sub NFSMNT_TIMEO () {0x8;}' unless defined(&NFSMNT_TIMEO);
    eval 'sub NFSMNT_RETRANS () {0x10;}' unless defined(&NFSMNT_RETRANS);
    eval 'sub NFSMNT_MAXGRPS () {0x20;}' unless defined(&NFSMNT_MAXGRPS);
    eval 'sub NFSMNT_INT () {0x40;}' unless defined(&NFSMNT_INT);
    eval 'sub NFSMNT_NOCONN () {0x80;}' unless defined(&NFSMNT_NOCONN);
    eval 'sub NFSMNT_NQNFS () {0x100;}' unless defined(&NFSMNT_NQNFS);
    eval 'sub NFSMNT_NFSV3 () {0x200;}' unless defined(&NFSMNT_NFSV3);
    eval 'sub NFSMNT_KERB () {0x400;}' unless defined(&NFSMNT_KERB);
    eval 'sub NFSMNT_DUMBTIMR () {0x800;}' unless defined(&NFSMNT_DUMBTIMR);
    eval 'sub NFSMNT_LEASETERM () {0x1000;}' unless defined(&NFSMNT_LEASETERM);
    eval 'sub NFSMNT_READAHEAD () {0x2000;}' unless defined(&NFSMNT_READAHEAD);
    eval 'sub NFSMNT_DEADTHRESH () {0x4000;}' unless defined(&NFSMNT_DEADTHRESH);
    eval 'sub NFSMNT_RESVPORT () {0x8000;}' unless defined(&NFSMNT_RESVPORT);
    eval 'sub NFSMNT_RDIRPLUS () {0x10000;}' unless defined(&NFSMNT_RDIRPLUS);
    eval 'sub NFSMNT_READDIRSIZE () {0x20000;}' unless defined(&NFSMNT_READDIRSIZE);
    eval 'sub NFSMNT_XLATECOOKIE () {0x40000;}' unless defined(&NFSMNT_XLATECOOKIE);
    eval 'sub NFSMNT_NOAC () {0x80000;}' unless defined(&NFSMNT_NOAC);
    eval 'sub NFSMNT_BITS () {"\\177\\20" "b\\00soft\\0b\\01wsize\\0b\\02rsize\\0b\\03timeo\\0" "b\\04retrans\\0b\\05maxgrps\\0b\\06intr\\0b\\07noconn\\0" "b\\10nqnfs\\0b\\11nfsv3\\0b\\12kerb\\0b\\13dumbtimr\\0" "b\\14leaseterm\\0b\\15readahead\\0b\\16deadthresh\\0b\\17resvport\\0" "b\\20rdirplus\\0b\\21readdirsize\\0b\\22xlatecookie\\0b\\23noac\\0";}' unless defined(&NFSMNT_BITS);
    eval 'sub NFSMNT_HASWRITEVERF () {0x1;}' unless defined(&NFSMNT_HASWRITEVERF);
    eval 'sub NFSMNT_GOTPATHCONF () {0x2;}' unless defined(&NFSMNT_GOTPATHCONF);
    eval 'sub NFSMNT_GOTFSINFO () {0x4;}' unless defined(&NFSMNT_GOTFSINFO);
    eval 'sub NFSMNT_MNTD () {0x8;}' unless defined(&NFSMNT_MNTD);
    eval 'sub NFSMNT_DISMNT () {0x20;}' unless defined(&NFSMNT_DISMNT);
    eval 'sub NFSMNT_SNDLOCK () {0x40;}' unless defined(&NFSMNT_SNDLOCK);
    eval 'sub NFSMNT_WANTSND () {0x80;}' unless defined(&NFSMNT_WANTSND);
    eval 'sub NFSMNT_RCVLOCK () {0x100;}' unless defined(&NFSMNT_RCVLOCK);
    eval 'sub NFSMNT_WANTRCV () {0x200;}' unless defined(&NFSMNT_WANTRCV);
    eval 'sub NFSMNT_WAITAUTH () {0x400;}' unless defined(&NFSMNT_WAITAUTH);
    eval 'sub NFSMNT_HASAUTH () {0x800;}' unless defined(&NFSMNT_HASAUTH);
    eval 'sub NFSMNT_WANTAUTH () {0x1000;}' unless defined(&NFSMNT_WANTAUTH);
    eval 'sub NFSMNT_AUTHERR () {0x2000;}' unless defined(&NFSMNT_AUTHERR);
    eval 'sub NFSMNT_SWAPCOOKIE () {0x4000;}' unless defined(&NFSMNT_SWAPCOOKIE);
    eval 'sub NFSMNT_STALEWRITEVERF () {0x8000;}' unless defined(&NFSMNT_STALEWRITEVERF);
    eval 'sub NFSMNT_WCCKLUDGE () {0x10000;}' unless defined(&NFSMNT_WCCKLUDGE);
    eval 'sub NFSMNT_DISMNTFORCE () {0x20000;}' unless defined(&NFSMNT_DISMNTFORCE);
    if(defined(&_KERNEL)  && !defined(&NFS_ARGS_ONLY)) {
	eval 'sub VFSTONFS {
	    my($mp) = @_;
    	    eval q(((($mp)-> &mnt_data)));
	}' unless defined(&VFSTONFS);
    }
}
1;
