xref: /original-bsd/sys/stand.att/saerrno.h (revision e61fc7ea)
1 /*
2  * Copyright (c) 1988 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)saerrno.h	7.3 (Berkeley) 06/28/90
8  */
9 
10 extern	int errno;	/* just like unix */
11 
12 /* error codes */
13 #define	EADAPT	1	/* bad adaptor */
14 #define	ECTLR	2	/* bad controller */
15 #define	EUNIT	3	/* bad drive */
16 #define	EPART	4	/* bad partition */
17 #define	ERDLAB	5	/* can't read disk label */
18 #define	EUNLAB	6	/* unlabeled disk */
19 #define	ENXIO	7	/* bad device specification */
20 #define	EBADF	8	/* bad file descriptor */
21 #define	EOFFSET	9	/* relative seek not supported */
22 #define	ESRCH	10	/* directory search for file failed */
23 #define	EIO	11	/* generic error */
24 #define	ECMD	12	/* undefined driver command */
25 #define	EBSE	13	/* bad sector error */
26 #define	EWCK	14	/* write check error */
27 #define	EECC	15	/* uncorrectable ecc error */
28 #define	EHER	16	/* hard error */
29