Commit | Line | Data |
---|---|---|
879894e1 | 1 | /* |
80409bdc KB |
2 | * Copyright (c) 1988, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
879894e1 | 4 | * |
dbf0c423 | 5 | * %sccs.include.redist.c% |
879894e1 | 6 | * |
80409bdc | 7 | * @(#)saerrno.h 8.1 (Berkeley) %G% |
879894e1 KB |
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 */ |