			/* * * * * * * * * * * * * * * * * * * * * * * */
			/*											   */
			/*	 E N V I R O N M E N T A L	  E	R R	O R	S  */
			/*											   */
			/* * * * * * * * * * * * * * * * * * * * * * * */

					/* Nucleus exception Codes */

#define	E$OK					0x0000
#define	E$TIME					0x0001		/* TIME	limit exceeded */
#define	E$MEM					0x0002		/* memory allocation exceeded */
#define	E$BUSY					0x0003		/* region is in use */
#define	E$LIMIT					0x0004		/* some	limit exceeded */

#ifndef E$CONTEXT
#define	E$CONTEXT				0x0005		/* request out of context */
#endif

#ifndef E$EXIST
#define	E$EXIST					0x0006		/* token does not refer to an *
											 * iRMX	object */
#endif											 

#define	E$STATE					0x0007		/* ready task resumed */
#define	E$NOT$CONFIGURED		0x0008
#define	E$INTERRUPT$SATURATION	0x0009		/* interrupt task accumulated
											 * the maximum allowable
											 * number of SIGNAL$INTERRUPT
											 * requests */
#define	E$INTERRUPT$OVERFLOW	0x000A		/*	interrupt task accumulated	
											 * more	than the maximum
											 * allowable number	of
											 * SIGNAL$INTERRUPT	requests */

#define	E$TRANSMISSION			0x000B		/* MPS error */
#define	E$SLOT					0x000C		/* there are no available GDT 
											 * slots */	

					/* IOS exception Codes */

#define	E$FEXIST				0x0020		/* file	already	exists */
#define	E$FNEXIST				0x0021		/* non-existant	File  */
#define	E$DEVFD					0x0022		/* device and file driver
											 * incompatible */
											 
#ifndef E$SUPPORT											 
#define	E$SUPPORT				0x0023		/* function	not	supported */
#endif

#define	E$EMPTY$ENTRY			0x0024		/* directory entry is empty */
#define	E$DIR$END				0x0025		/* no more directory entries */
#define	E$FACCESS				0x0026		/* access to file denied */
#define	E$FTYPE					0x0027		/* invalid file	type */
#define	E$SHARE					0x0028		/* file	cannot be shared with
											 * others */
#define	E$SPACE					0x0029		/* insufficient	space on
											 * volume */
#define	E$IDDR					0x002A		/* bad device driver request */
#define	E$IO					0x002B		/* io error */
#define	E$FLUSHING				0x002C		/* other end of stream file
											 * is gone */
#define	E$ILLVOL				0x002D		/* illegal volume type */
#define	E$DEV$OFFLINE			0x002E		/* device is off line */
#define	E$IFDR					0x002F		/* illegal file	driver
											 * request */
#define	E$FRAGMENTATION			0x0030		/* file	too	fragmented to
											 * extend */
#define	E$DIR$NOT$EMPTY			0x0031		/* directory not empty */
#define	E$NOT$FILE$CONN			0x0032		/* not a file connection */
#define	E$NOT$DEVICE$CONN		0x0033		/* not a device connection */
#define	E$CONN$NOT$OPEN			0x0034		/* connection is not open for
											 * requested operation */
#define	E$CONN$OPEN				0x0035		/* connection already open */
#define	E$BUFFERED$CONN			0x0036		/* connection opened by EIOS
											 * but now accessed	by BIOS */
#define	E$OUTSTANDING$CONNS		0x0037		/* specified soft detach has
											 * left	device connections
											 * intact */
#define	E$ALREADY$ATTACHED		0x0038		/* device already attached */
#define	E$DEV$DETACHING			0x0039		/* specified file on a device
											 * in the process of being
											 * detached */
#define	E$NOT$SAME$DEVICE		0x003A		/* existing	and	new	pathnames
											 * not on same device */
#define	E$ILLOGICAL$RENAME		0x003B		/* new pathname	includes
											 * existing	pathname */
#define	E$STREAM$SPECIAL		0x003C		/* stream file request out
											 * of context */
#define	E$INVALID$FNODE			0x003D		/* invalid file	descriptor */
#define	E$PATHNAME$SYNTAX		0x003E		/* pathname	null or contains
											 * invalid characters */
#define	E$FNODE$LIMIT			0x003F		/*	insufficient fnodes	on
											 * volume */


					/*	EIOS exception Codes  */

#define	E$LOG$NAME$SYNTAX		0x0040		/* invalid logical name */
#define	E$CANNOT$CLOSE			0x0041		/* buffers cannot be flushed */
#define	E$IOMEM					0x0042		/* IO system has insufficent
											 * memory */
#define	E$MEDIA					0x0044		/* no disk in drive */
#define	E$LOG$NAME$NEXIST		0x0045		/* logical name	does not
											 * exist */
#define	E$NOT$OWNER				0x0046		/* user	trying to detach a
											 * device is not the device's
											 * owner */
#define	E$IO$JOB				0x0047		/* job is not a	valid IO job */
#define	E$UDF$FORMAT			0x0048		/* udf is corrupted */
#define	E$NAME$NEXIST			0x0049		/* user	name not present in	udf */
#define	E$UID$NEXIST			0x004A		/* user	token doesn't matc	udf */
#define	E$PASSWORD$MISMATC		0x004B		/* incorrect password */
#define	E$UDF$IO				0x004C		/* specified UDF file cannot
											 * be found */
		

					/* expanded	IO exception codes */

#define	E$IO$UNCLASS			0x0050		/* an unclassified error has
											 * occured */
#define	E$IO$SOFT				0x0051		/* soft	error has occured */
#define	E$IO$HARD				0x0052		/* hard	error has occured */
#define	E$IO$OPRINT				0x0053		/* device is not ready */
#define	E$IO$WRPROT				0x0054		/* write protected */
#define	E$IO$NO$DATA			0x0055		/* no data on the next TAPE
											 * record */
#define	E$IO$MODE				0x0056		/* a tape drive attempted
											 * a read/write	operation
											 * before the previous one
											 * completed */

					/* Application Loader exception	codes */

#define	E$BAD$HEADER			0x0062		/* an invalid object file header */
#define	E$EOF					0x0065		/* unexpected End of File
											 * while reading a record */
#define	E$NO$LOADER$MEM			0x0067	
#define	E$NO$START				0x006C		/* the Application Loader
											 * could not find the start
											 * address */
#define	E$JOB$SIZE				0x006D		/* The max.	memory pool	size of
											 * job being loaded	is smaller
											 * than	the	amount required	to
											 * load	it */
#define	E$OVERLAY				0x006E		/* the overlay name	does not
											 * match */
#define	E$LOADER$SUPPORT		0x006F		/* The file	requires features
											 * not supported by	this
											 * configuration of	the
											 * Application Loader */

					/* Human Interface exception Codes */

#define	E$LITERAL				0x0080		/* literal wit	no closing
											 * quote detected while
											 * parsing */
#define	E$STRING$BUFFER			0x0081		/* buffer too small	for
											 * O.S.	returned string */
#define	E$SEPARATOR				0x0082		/* illegal command separator */
#define	E$CONTINUED				0x0083		/* user	parse buffer is
											 * continued */
#define	E$INVALID$NUMERIC		0x0084		/* invalid form	of number */
#define	E$LIST					0x0085		/* missing value-list value */
#define	E$WILDCARD				0x0086		/* invalid wildcard	character
											 * usage */
#define	E$PREPOSITION			0x0087		/* invalid preposition usage */
#define	E$PAT					0x0088		/* invalid pat	name */
#define	E$CONTROL$C				0x0089		/* job cancelled via a
									         * control-C */
#define	E$CONTROL				0x008A		/* invalid control */
#define	E$UNMATCHED$LISTS		0x008B
#define	E$INVALID$DATE			0x008C
#define	E$NO$PARAMETERS			0x008D		/* no parameters found in
											 * in command line */
#define	E$VERSION				0x008E		/* version of entered command
											 * incompatible	with system */
#define	E$GET$PATH$ORDER		0x008F		/* get$output$pathname called
											 * before get$input$pathname */
#define	E$PERMISSION			0x0090		/* do not have proper access */
#define	E$INVALID$TIME			0x0091		/* setting of time was invalid */
		
					/* UDI exception Codes */

#define	E$UNKNOWN$EXIT			0x00C0		/* normal termination */
#define	E$WARNING$EXIT			0x00C1		/* warning termination */
#define	E$ERROR$EXIT			0x00C2		/* error termination */
#define	E$FATAL$EXIT			0x00C3		/* fatal error termination */
#define	E$ABORT$EXIT			0x00C4		/* user program aborted */
#define	E$UDI$INTERNAL			0x00C5		/* unrecoverable internal error */

				/* * * * * * * * * * * * * * * * * * * * */
				/*										 */
				/*	P R	O G	R A	M M	I N	G	E R	R O	R S	 */
				/*										 */
				/* * * * * * * * * * * * * * * * * * * * */

						/* Nucleus exception Codes */

#define	E$ZERO$DIVIDE			0x8000	
#define	E$OVERFLOW				0x8001		/* overflow interrupt
											 * occured */
#define	E$TYPE					0x8002		/* token parameter is of
											 * invalid type */

#ifndef E$PARAM												
#define	E$PARAM					0x8004		/* parameter has an invalid
											 * value */
#endif
											 
#define	E$BAD$CALL				0x8005	 	/* An	OS extension received an
											 * invalid code */
#define	E$ARRAY$BOUNDS			0x8006	 	/* array overflow*/
#define	E$NDP$ERROR				0x8007	 	/* NPX error has occured */
#define	E$ILLEGAL$OPCODE		0x8008 
#define	E$EMULATOR$TRAP			0x8009	 	/* an ESC instruction was
											 * encountered wit	emulator
											 * bit set in MSW */
#define	E$CHECK$EXCEPTION		0x800A		/* a PASCAL	task exceeded CASE
											 * statement boundary */	
#define	E$CPU$XFER$DATA$LIMIT	0x800B 		/* the NPX tried to access an
											 * address that	is out of
											 * segment bound */
#define	E$PROTECTION			0x800D	 	/* General Protection error */
#define	E$NOT$PRESENT			0x800E	 	/* A request to load a segment
											 * register	whose segment is
											 * not present */
#define	E$BAD$ADDR				0x800F	 	/* Invalid logical address */


						/* IOS status codes */


						/* EIOS	exception codes */

#define	E$NOUSER				0x8021	 	/* no default user is
											 * defined */
#define	E$NOPREFIX				0x8022	 	/* no default prefix is
											 * defined */
#define	E$BAD$BUFF				0x8023	 	/* specified buffer too small
											 * for requested operation */

#define	E$NOT$LOG$NAME			0x8040	 	/* the specified object is
											 * not a device	or file
											 * connection */
#define	E$NOT$DEVICE			0x8041	 	/* the specified object is
											 * not a device	connection */
#define	E$NOT$CONNECTION		0x8042	 	/* the specified object is
											 * not a file connection */


					/* Application Loader exception	codes */


#define	E$JOB$PARAM				0x8060	 	/* maximum memory specified
											 * is less than	the	minimum
											 * memory specified */

						/* HI exception	Codes */

#define	E$PARSE$TABLES			0x8080	 	/* internal error in parse
											 * tables */
#define	E$JOB$TABLES			0x8081	 	/* internal inconsistency
											 * in job tables */
#define	E$DEFAULT$SO			0x8083	 	/* default output name string
											 * specified is invalid */
#define	E$STRING				0x8084	 	/* Returned pathname exceeds
											 * 255 characters in length */
#define	E$ERROR$OUTPUT			0x8085	 	/* send$eo$response called
											 * when	command	connection
											 * allows only
											 * send$co$response */

					/* UDI exception Codes */

#define	E$RESERVE$PARAM			0x80C6	 	/* calling program attempted
											 * to reserve more than	12
											 * files or	buffers */
#define	E$OPEN$PARAM			0x80C7	 	/* calling program attempted
											 * to open a file with more
											 * than	two	buffers */
