require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_NAMEI_H_)) {
    eval 'sub _SYS_NAMEI_H_ () {1;}' unless defined(&_SYS_NAMEI_H_);
    require 'sys/queue.ph';
    if(defined(&_KERNEL)) {
	eval 'sub LOOKUP () {0;}' unless defined(&LOOKUP);
	eval 'sub CREATE () {1;}' unless defined(&CREATE);
	eval 'sub DELETE () {2;}' unless defined(&DELETE);
	eval 'sub RENAME () {3;}' unless defined(&RENAME);
	eval 'sub OPMASK () {3;}' unless defined(&OPMASK);
	eval 'sub LOCKLEAF () {0x4;}' unless defined(&LOCKLEAF);
	eval 'sub LOCKPARENT () {0x8;}' unless defined(&LOCKPARENT);
	eval 'sub WANTPARENT () {0x10;}' unless defined(&WANTPARENT);
	eval 'sub NOCACHE () {0x20;}' unless defined(&NOCACHE);
	eval 'sub FOLLOW () {0x40;}' unless defined(&FOLLOW);
	eval 'sub NOFOLLOW () {0x;}' unless defined(&NOFOLLOW);
	eval 'sub MODMASK () {0xfc;}' unless defined(&MODMASK);
	eval 'sub NOCROSSMOUNT () {0x100;}' unless defined(&NOCROSSMOUNT);
	eval 'sub RDONLY () {0x200;}' unless defined(&RDONLY);
	eval 'sub HASBUF () {0x400;}' unless defined(&HASBUF);
	eval 'sub SAVENAME () {0x800;}' unless defined(&SAVENAME);
	eval 'sub SAVESTART () {0x1000;}' unless defined(&SAVESTART);
	eval 'sub ISDOTDOT () {0x2000;}' unless defined(&ISDOTDOT);
	eval 'sub MAKEENTRY () {0x4000;}' unless defined(&MAKEENTRY);
	eval 'sub ISLASTCN () {0x8000;}' unless defined(&ISLASTCN);
	eval 'sub ISSYMLINK () {0x10000;}' unless defined(&ISSYMLINK);
	eval 'sub REQUIREDIR () {0x80000;}' unless defined(&REQUIREDIR);
	eval 'sub STRIPSLASHES () {0x100000;}' unless defined(&STRIPSLASHES);
	eval 'sub PDIRUNLOCK () {0x200000;}' unless defined(&PDIRUNLOCK);
	eval 'sub NDINIT {
	    my($ndp, $op, $flags, $segflg, $namep, $p) = @_;
    	    eval q({ ($ndp)-> ($ni_cnd->{cn_nameiop}) = $op; ($ndp)-> ($ni_cnd->{cn_flags}) = $flags; ($ndp)-> &ni_segflg = $segflg; ($ndp)-> &ni_dirp = $namep; ($ndp)-> ($ni_cnd->{cn_proc}) = $p; });
	}' unless defined(&NDINIT);
    }
    eval 'sub NCHNAMLEN () {31;}' unless defined(&NCHNAMLEN);
    if(defined(&_KERNEL)) {
    }
    eval 'sub KERN_NCHSTATS_GOODHITS () {1;}' unless defined(&KERN_NCHSTATS_GOODHITS);
    eval 'sub KERN_NCHSTATS_NEGHITS () {2;}' unless defined(&KERN_NCHSTATS_NEGHITS);
    eval 'sub KERN_NCHSTATS_BADHITS () {3;}' unless defined(&KERN_NCHSTATS_BADHITS);
    eval 'sub KERN_NCHSTATS_FALSEHITS () {4;}' unless defined(&KERN_NCHSTATS_FALSEHITS);
    eval 'sub KERN_NCHSTATS_MISS () {5;}' unless defined(&KERN_NCHSTATS_MISS);
    eval 'sub KERN_NCHSTATS_LONG () {6;}' unless defined(&KERN_NCHSTATS_LONG);
    eval 'sub KERN_NCHSTATS_PASS2 () {7;}' unless defined(&KERN_NCHSTATS_PASS2);
    eval 'sub KERN_NCHSTATS_2PASSES () {8;}' unless defined(&KERN_NCHSTATS_2PASSES);
    eval 'sub KERN_NCHSTATS_REVHITS () {9;}' unless defined(&KERN_NCHSTATS_REVHITS);
    eval 'sub KERN_NCHSTATS_REVMISS () {10;}' unless defined(&KERN_NCHSTATS_REVMISS);
    eval 'sub KERN_NCHSTATS_MAXID () {11;}' unless defined(&KERN_NCHSTATS_MAXID);
    eval 'sub CTL_KERN_NCHSTATS_NAMES () {{ { 0, 0}, { "good_hits",  &CTLTYPE_INT }, { "negative_hits",  &CTLTYPE_INT }, { "bad_hits",  &CTLTYPE_INT }, { "false_hits",  &CTLTYPE_INT }, { "misses",  &CTLTYPE_INT }, { "long_names",  &CTLTYPE_INT }, { "pass2",  &CTLTYPE_INT }, { "2passes",  &CTLTYPE_INT }, { "ncs_revhits",  &CTLTYPE_INT }, { "ncs_revmiss",  &CTLTYPE_INT }, };}' unless defined(&CTL_KERN_NCHSTATS_NAMES);
}
1;
