DEFINITION MODULE UDMdefs;

FROM K32types IMPORT seid;

EXPORT QUALIFIED
	DIRSUBTYPE, ROOT,
	Dentry, dirBuf, SIZEOFDIRNAME, NUMBEROFENTRIES, SIZEOFDIRENTRY;


(* this file was inspired by /kr/sunix/nksr/NSO/UDM/udm.h *)

CONST
	SIZEOFDIRNAME	= 14;
	SIZEOFDIRENTRY	= SIZEOFDIRNAME + 4;
	PATHSIZE		= 512;
	NUMBEROFENTRIES	= 28;
	DIRFILLSIZE		= 8;
	UDMOWNER		= 2;
	UDMGROUP		= 1;

TYPE
	Dentry = RECORD
		SEID :		seid;
		name :		ARRAY [1..SIZEOFDIRNAME] OF CHAR;
	END;

	dirBuf = RECORD
		dirEntry :	ARRAY [1..NUMBEROFENTRIES] OF Dentry;
		fill :		ARRAY [1..DIRFILLSIZE] OF CHAR;
	END;

VAR	(* Strcutured CONSTs *)

	DIRSUBTYPE		: seid;
		(* template for seid of a dir *)

	ROOT			: seid;

		(* seid of the root dir *)
(*HACK	DIRSUBTYPE		= seid(subtypeNsp, CHAR(100), CARDINAL(0));TEMP*)
(*HACK	ROOT			= seid(sameNsp, CHAR(0), CARDINAL(5));TEMP*)


END UDMdefs.
