1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)errno.h 7.1 (Berkeley) 6/4/86
7: */
8:
9: /*
10: * Error codes
11: */
12:
13: #define EPERM 1 /* Not owner */
14: #define ENOENT 2 /* No such file or directory */
15: #define ESRCH 3 /* No such process */
16: #define EINTR 4 /* Interrupted system call */
17: #define EIO 5 /* I/O error */
18: #define ENXIO 6 /* No such device or address */
19: #define E2BIG 7 /* Arg list too long */
20: #define ENOEXEC 8 /* Exec format error */
21: #define EBADF 9 /* Bad file number */
22: #define ECHILD 10 /* No children */
23: #define EAGAIN 11 /* No more processes */
24: #define ENOMEM 12 /* Not enough core */
25: #define EACCES 13 /* Permission denied */
26: #define EFAULT 14 /* Bad address */
27: #define ENOTBLK 15 /* Block device required */
28: #define EBUSY 16 /* Mount device busy */
29: #define EEXIST 17 /* File exists */
30: #define EXDEV 18 /* Cross-device link */
31: #define ENODEV 19 /* No such device */
32: #define ENOTDIR 20 /* Not a directory*/
33: #define EISDIR 21 /* Is a directory */
34: #define EINVAL 22 /* Invalid argument */
35: #define ENFILE 23 /* File table overflow */
36: #define EMFILE 24 /* Too many open files */
37: #define ENOTTY 25 /* Not a typewriter */
38: #define ETXTBSY 26 /* Text file busy */
39: #define EFBIG 27 /* File too large */
40: #define ENOSPC 28 /* No space left on device */
41: #define ESPIPE 29 /* Illegal seek */
42: #define EROFS 30 /* Read-only file system */
43: #define EMLINK 31 /* Too many links */
44: #define EPIPE 32 /* Broken pipe */
45:
46: /* math software */
47: #define EDOM 33 /* Argument too large */
48: #define ERANGE 34 /* Result too large */
49:
50: /* non-blocking and interrupt i/o */
51: #define EWOULDBLOCK 35 /* Operation would block */
52: #define EDEADLK EWOULDBLOCK /* ditto */
53: #define EINPROGRESS 36 /* Operation now in progress */
54: #define EALREADY 37 /* Operation already in progress */
55:
56: /* ipc/network software */
57:
58: /* argument errors */
59: #define ENOTSOCK 38 /* Socket operation on non-socket */
60: #define EDESTADDRREQ 39 /* Destination address required */
61: #define EMSGSIZE 40 /* Message too long */
62: #define EPROTOTYPE 41 /* Protocol wrong type for socket */
63: #define ENOPROTOOPT 42 /* Protocol not available */
64: #define EPROTONOSUPPORT 43 /* Protocol not supported */
65: #define ESOCKTNOSUPPORT 44 /* Socket type not supported */
66: #define EOPNOTSUPP 45 /* Operation not supported on socket */
67: #define EPFNOSUPPORT 46 /* Protocol family not supported */
68: #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
69: #define EADDRINUSE 48 /* Address already in use */
70: #define EADDRNOTAVAIL 49 /* Can't assign requested address */
71:
72: /* operational errors */
73: #define ENETDOWN 50 /* Network is down */
74: #define ENETUNREACH 51 /* Network is unreachable */
75: #define ENETRESET 52 /* Network dropped connection on reset */
76: #define ECONNABORTED 53 /* Software caused connection abort */
77: #define ECONNRESET 54 /* Connection reset by peer */
78: #define ENOBUFS 55 /* No buffer space available */
79: #define EISCONN 56 /* Socket is already connected */
80: #define ENOTCONN 57 /* Socket is not connected */
81: #define ESHUTDOWN 58 /* Can't send after socket shutdown */
82: #define ETOOMANYREFS 59 /* Too many references: can't splice */
83: #define ETIMEDOUT 60 /* Connection timed out */
84: #define ECONNREFUSED 61 /* Connection refused */
85:
86: /* */
87: #define ELOOP 62 /* Too many levels of symbolic links */
88: #define ENAMETOOLONG 63 /* File name too long */
89:
90: /* should be rearranged */
91: #define EHOSTDOWN 64 /* Host is down */
92: #define EHOSTUNREACH 65 /* No route to host */
93: #define ENOTEMPTY 66 /* Directory not empty */
94:
95: /* quotas & mush */
96: #define EPROCLIM 67 /* Too many processes */
97: #define EUSERS 68 /* Too many users */
98: #define EDQUOT 69 /* Disc quota exceeded */
Defined macros
E2BIG
defined in line
19;
never used
EBADF
defined in line
21;
never used
EBUSY
defined in line
28;
never used
EDOM
defined in line
47;
never used
EFBIG
defined in line
39;
never used
EINTR
defined in line
16;
never used
EIO
defined in line
17;
never used
ELOOP
defined in line
87;
never used
ENXIO
defined in line
18;
never used
EPERM
defined in line
13;
never used
EPIPE
defined in line
44;
never used
EROFS
defined in line
42;
never used
ESRCH
defined in line
15;
never used
EXDEV
defined in line
30;
never used