xref: /csrg-svn/sys/stand.att/saerrno.h (revision 63370)
133630Sbostic /*
2*63370Sbostic  * Copyright (c) 1988, 1993
3*63370Sbostic  *	The Regents of the University of California.  All rights reserved.
433630Sbostic  *
544516Sbostic  * %sccs.include.redist.c%
633630Sbostic  *
7*63370Sbostic  *	@(#)saerrno.h	8.1 (Berkeley) 06/11/93
833630Sbostic  */
933630Sbostic 
1033630Sbostic extern	int errno;	/* just like unix */
1133630Sbostic 
1233630Sbostic /* error codes */
1333630Sbostic #define	EADAPT	1	/* bad adaptor */
1433630Sbostic #define	ECTLR	2	/* bad controller */
1533630Sbostic #define	EUNIT	3	/* bad drive */
1633630Sbostic #define	EPART	4	/* bad partition */
1733630Sbostic #define	ERDLAB	5	/* can't read disk label */
1833630Sbostic #define	EUNLAB	6	/* unlabeled disk */
1933630Sbostic #define	ENXIO	7	/* bad device specification */
2033630Sbostic #define	EBADF	8	/* bad file descriptor */
2133630Sbostic #define	EOFFSET	9	/* relative seek not supported */
2233630Sbostic #define	ESRCH	10	/* directory search for file failed */
2333630Sbostic #define	EIO	11	/* generic error */
2433630Sbostic #define	ECMD	12	/* undefined driver command */
2533630Sbostic #define	EBSE	13	/* bad sector error */
2633630Sbostic #define	EWCK	14	/* write check error */
2733630Sbostic #define	EECC	15	/* uncorrectable ecc error */
2833630Sbostic #define	EHER	16	/* hard error */
29