/*
 * USC-ACSC UNIX Monitor
 *
 * $Header:os2.h 12.0$
 * $ACIS:os2.h 12.0$
 * $Source: /ibm/acis/usr/sys/os2code/RCS/os2.h,v $
 * Copyright University of Southern California, 1988
 */

/*	OS/2 Errors */

#define	ENOERROR	0
#define	EINVALIDFUNCTION	1
#define	EFILENOTFOUND	2
#define	EPATHNOTFOUND	3
#define	ETOOMANYOPENFILES	4
#define	EACCESSDENIED	5
#define	EINVALIDHANDLE	6
#define	ENOTENOUGHMEMORY	8
#define	EINVALIDBLOCK	9
#define	EBADENVIRONMENT	10
#define	EBADFORMAT	11
#define	EINVALIDACCESS	12
#define	EINVALIDDATA	13
#define	EINVALIDDRIVE	14
#define	EWRITEPROTECT	19
#define	EBADUNIT	20
#define	ENOTREADY	21
#define	EBADCOMMAND	22
#define	ECRC	23
#define	EBADLENGTH	24
#define	ESEEK	25
#define	ENOTDOSDISK	26
#define	ESECTORNOTFOUND	27
#define	EOUTOFPAPER	28
#define	EWRITEFAULT	29
#define	EREADFAULT	30
#define	EGENFAILUER	31
#define	ESHARINGVIOLATION	32
#define	EWRONGDISK	33
#define	EFCBUNAVAILABLE	34
#define	ESHARINGBUFFEREXCEEDED	35

#define	ENOTSUPPORTED	50
#define	ENETWORKACCESSDENIED	51

#define	EFILEEXISTS	80
#define	EDUPFCB	81
#define	ECANNOTMAKE	82
#define	EFAILI24	83
#define	EOUTOFSTRUCTURES	84

#define	EDRIVELOCKED	108
#define	EBROKENPIPE	109
#define	EOPENFAILED	110
#define	EBUFFEROVERFLOW	111
#define	EDISKFULL	112

#define	EPROTECTIONVIOLATION	115

#define	EINVALIDCATEGORY	117

#define	EINSUFFICIENTBUFFER	122
#define	EINVALIDNAME	123

/* BIOS Errors */
#define BIOS_STAT_FAIL  0x00FF  /* BIOS return codes for HD and FD */
#define BIOS_STAT_ERR   0x00E0
#define BIOS_WR_FAULT   0x00CC
#define BIOS_UNDEF_ERR  0x00BB
#define BIOS_NOT_RDY    0x00AA
#define BIOS_TO                 0x0080
#define BIOS_SEEK_FAIL  0x0040
#define BIOS_CTRL_FAIL  0x0020
#define BIOS_ECC_OK             0x0011
#define BIOS_CRC_ERR    0x0010
#define BIOS_DMA_ARB    0x000F
#define BIOS_CTRL_AM    0x000E
#define BIOS_INVAL_SEC  0x000D
#define BIOS_INVAL_MED  0x000C
#define BIOS_BAD_TRACK  0x000B
#define BIOS_BAD_SECTOR 0x000A
#define BIOS_DMA_BNDRY  0x0009
#define BIOS_DMA_OVRUN  0x0008
#define BIOS_PARAM_FAIL 0x0007
#define BIOS_DSKT_CHG   0x0006
#define BIOS_RESET_FAIL 0x0005
#define BIOS_REC_NFND   0x0004
#define BIOS_WRT_PROT   0x0003
#define BIOS_BAD_ADDR   0x0002
#define BIOS_BAD_CMD    0x0001

#define BIOS_ERROR              0x8000
#define BIOS_RET_OK     0x1000

