#define RUMP_NAMEI_LOOKUP	0
#define RUMP_NAMEI_CREATE	1
#define RUMP_NAMEI_DELETE	2
#define RUMP_NAMEI_RENAME	3
#define RUMP_NAMEI_OPMASK	3
#define RUMP_NAMEI_LOCKLEAF	0x0004
#define RUMP_NAMEI_LOCKPARENT	0x0008
#define RUMP_NAMEI_NOCHROOT	0x0010
#define RUMP_NAMEI_NOCACHE	0x0020
#define RUMP_NAMEI_FOLLOW	0x0040
#define RUMP_NAMEI_NOFOLLOW	0x0000
#define RUMP_NAMEI_TRYEMULROOT	0x0010
#define RUMP_NAMEI_EMULROOTSET	0x0080
#define RUMP_NAMEI_MODMASK	0x00fc
#define RUMP_NAMEI_NOCROSSMOUNT	0x0000100
#define RUMP_NAMEI_RDONLY	0x0000200
#define RUMP_NAMEI_HASBUF	0x0000400
#define RUMP_NAMEI_SAVENAME	0x0000800
#define RUMP_NAMEI_SAVESTART	0x0001000
#define RUMP_NAMEI_ISDOTDOT	0x0002000
#define RUMP_NAMEI_MAKEENTRY	0x0004000
#define RUMP_NAMEI_ISLASTCN	0x0008000
#define RUMP_NAMEI_ISSYMLINK	0x0010000
#define RUMP_NAMEI_ISWHITEOUT	0x0020000
#define RUMP_NAMEI_DOWHITEOUT	0x0040000
#define RUMP_NAMEI_REQUIREDIR	0x0080000
#define RUMP_NAMEI_CREATEDIR	0x0200000
#define RUMP_NAMEI_PARAMASK	0x02fff00
#define	RUMP_O_RDONLY	0x00000000	/* open for reading only */
#define	RUMP_O_WRONLY	0x00000001	/* open for writing only */
#define	RUMP_O_RDWR		0x00000002	/* open for reading and writing */
#define	RUMP_O_ACCMODE	0x00000003	/* mask for above modes */
#define	RUMP_O_NONBLOCK	0x00000004	/* no delay */
#define	RUMP_O_APPEND	0x00000008	/* set append mode */
#define	RUMP_O_SHLOCK	0x00000010	/* open with shared file lock */
#define	RUMP_O_EXLOCK	0x00000020	/* open with exclusive file lock */
#define	RUMP_O_ASYNC		0x00000040	/* signal pgrp when data ready */
#define	RUMP_O_SYNC		0x00000080	/* synchronous writes */
#define	RUMP_O_NOFOLLOW	0x00000100	/* don't follow symlinks on the last */
#define	RUMP_O_CREAT		0x00000200	/* create if nonexistent */
#define	RUMP_O_TRUNC		0x00000400	/* truncate to zero length */
#define	RUMP_O_EXCL		0x00000800	/* error if already exists */
#define	RUMP_O_DSYNC		0x00010000	/* write: I/O data completion */
#define	RUMP_O_RSYNC		0x00020000	/* read: I/O completion as for write */
#define	RUMP_O_DIRECT	0x00080000	/* direct I/O hint */
#define	RUMP_O_NOCTTY	0x00008000	/* don't assign controlling terminal */
#ifndef __VTYPE_DEFINED
#define __VTYPE_DEFINED
enum vtype	{ VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD };
#endif /* __VTYPE_DEFINED */
#ifndef EJUSTRETURN
#define	EJUSTRETURN	-2		/* don't modify regs, just return */
#endif /* EJUSTRETURN */
