require '_h2ph_pre.ph';

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 () {0x0004;}' unless defined(&LOCKLEAF);
	eval 'sub LOCKPARENT () {0x0008;}' unless defined(&LOCKPARENT);
	eval 'sub WANTPARENT () {0x0010;}' unless defined(&WANTPARENT);
	eval 'sub NOCACHE () {0x0020;}' unless defined(&NOCACHE);
	eval 'sub FOLLOW () {0x0040;}' unless defined(&FOLLOW);
	eval 'sub NOFOLLOW () {0x0000;}' unless defined(&NOFOLLOW);
	eval 'sub MODMASK () {0x00fc;}' unless defined(&MODMASK);
	eval 'sub NOCROSSMOUNT () {0x000100;}' unless defined(&NOCROSSMOUNT);
	eval 'sub RDONLY () {0x000200;}' unless defined(&RDONLY);
	eval 'sub HASBUF () {0x000400;}' unless defined(&HASBUF);
	eval 'sub SAVENAME () {0x000800;}' unless defined(&SAVENAME);
	eval 'sub SAVESTART () {0x001000;}' unless defined(&SAVESTART);
	eval 'sub ISDOTDOT () {0x002000;}' unless defined(&ISDOTDOT);
	eval 'sub MAKEENTRY () {0x004000;}' unless defined(&MAKEENTRY);
	eval 'sub ISLASTCN () {0x008000;}' unless defined(&ISLASTCN);
	eval 'sub ISSYMLINK () {0x010000;}' unless defined(&ISSYMLINK);
	eval 'sub ISWHITEOUT () {0x020000;}' unless defined(&ISWHITEOUT);
	eval 'sub DOWHITEOUT () {0x040000;}' unless defined(&DOWHITEOUT);
	eval 'sub REQUIREDIR () {0x080000;}' unless defined(&REQUIREDIR);
	eval 'sub STRIPSLASHES () {0x100000;}' unless defined(&STRIPSLASHES);
	eval 'sub PARAMASK () {0x1fff00;}' unless defined(&PARAMASK);
	eval 'sub NDINIT {
	    local($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)) {
    }
}
1;
