/* rcsid[]="$Header: nami.h,v 820.1 86/12/04 19:49:03 root Exp $" */
/* sccsid[]="%W% %Y% %Q% %G%" */

/************************************************************************
*									*
*				Copyright 1984				*
*			VALID LOGIC SYSTEMS INCORPORATED		*
*									*
*	This listing contains confidential proprietary information	*
*	which is not to be disclosed to unauthorized persons without	*
*	written consent of an officer of Valid Logic Systems 		*
*	Incorporated.							*
*									*
*	The copyright notice appearing above is included to provide	*
*	statutory protection in the event of unauthorized or 		*
*	unintentional public disclosure.				*
*									*
************************************************************************/

/*	nami.h	6.1	83/07/29	*/

struct namidata {
	int	ni_offset;
	int	ni_count;
	struct	inode *ni_pdir;
	struct	direct ni_dent;
};

enum nami_op { NAMI_LOOKUP, NAMI_CREATE, NAMI_DELETE };

/* this is temporary until the namei interface changes */
#define	LOOKUP		0	/* perform name lookup only */
#define	CREATE		1	/* setup for file creation */
#define	DELETE		2	/* setup for file deletion */
#define	LOCKPARENT	0x10	/* see the top of namei */
#if	defined(VALID_DFS) && defined(DFS_WCOUNT)
/*
 * The 'flag' parameter to namei() is an inherited botch:
 * The low order 2-bits are integer valued,
 * while the rest of 'flag' is treated as a maskable bit-string!
 */
#define	DFS_NAMEI_FWRITE	0x20	/* Analog of FWRITE */
#endif	defined(VALID_DFS) && defined(DFS_WCOUNT)
