1: /* errno.h 4.1 82/12/28 */
2:
3: /*
4: * Error codes
5: */
6:
7: #define EPERM 1 /* Not owner */
8: #define ENOENT 2 /* No such file or directory */
9: #define ESRCH 3 /* No such process */
10: #define EINTR 4 /* Interrupted system call */
11: #define EIO 5 /* I/O error */
12: #define ENXIO 6 /* No such device or address */
13: #define E2BIG 7 /* Arg list too long */
14: #define ENOEXEC 8 /* Exec format error */
15: #define EBADF 9 /* Bad file number */
16: #define ECHILD 10 /* No children */
17: #define EAGAIN 11 /* No more processes */
18: #define ENOMEM 12 /* Not enough core */
19: #define EACCES 13 /* Permission denied */
20: #define EFAULT 14 /* Bad address */
21: #define ENOTBLK 15 /* Block device required */
22: #define EBUSY 16 /* Exclusive use facility busy */
23: #define EEXIST 17 /* File exists */
24: #define EXDEV 18 /* Cross-device link */
25: #define ENODEV 19 /* No such device */
26: #define ENOTDIR 20 /* Not a directory*/
27: #define EISDIR 21 /* Is a directory */
28: #define EINVAL 22 /* Invalid argument */
29: #define ENFILE 23 /* File table overflow */
30: #define EMFILE 24 /* Too many open files */
31: #define ENOTTY 25 /* Inappropriate ioctl for device */
32: #define ETXTBSY 26 /* Text file busy */
33: #define EFBIG 27 /* File too large */
34: #define ENOSPC 28 /* No space left on device */
35: #define ESPIPE 29 /* Illegal seek */
36: #define EROFS 30 /* Read-only file system */
37: #define EMLINK 31 /* Too many links */
38: #define EPIPE 32 /* Broken pipe */
39:
40: /* math software */
41: #define EDOM 33 /* Argument too large */
42: #define ERANGE 34 /* Result too large */
43:
44: /* disk quotas */
45: #define EQUOT 35 /* Disk quota exceeded */
46:
47: /* symbolic links */
48: #define ELOOP 36 /* Too many levels of symbolic links */
49:
50: /* non-blocking and interrupt i/o */
51: #define EWOULDBLOCK 37 /* Operation would block */
52:
53: /*
54: * The following errors relate specifically to the
55: * TCP/IP implementation (UCB_NET).
56: */
57:
58: #define EINPROGRESS 38 /* Operation now in progress */
59: #define EALREADY 39 /* Operation already in progress */
60: /* ipc/network software */
61:
62: /* argument errors */
63: #define ENOTSOCK 40 /* Socket operation on non-socket */
64: #define EDESTADDRREQ 41 /* Destination address required */
65: #define EMSGSIZE 42 /* Message too long */
66: #define EPROTOTYPE 43 /* Protocol wrong type for socket */
67: #define ENOPROTOOPT 44 /* Protocol not available */
68: #define EPROTONOSUPPORT 45 /* Protocol not supported */
69: #define ESOCKTNOSUPPORT 46 /* Socket type not supported */
70: #define EOPNOTSUPP 47 /* Operation not supported on socket */
71: #define EPFNOSUPPORT 48 /* Protocol family not supported */
72: #define EAFNOSUPPORT 49 /* Address family not supported by protocol family */
73: #define EADDRINUSE 50 /* Address already in use */
74: #define EADDRNOTAVAIL 51 /* Can't assign requested address */
75:
76: /* operational errors */
77: #define ENETDOWN 52 /* Network is down */
78: #define ENETUNREACH 53 /* Network is unreachable */
79: #define ENETRESET 54 /* Network dropped connection on reset */
80: #define ECONNABORTED 55 /* Software caused connection abort */
81: #define ECONNRESET 56 /* Connection reset by peer */
82: #define ENOBUFS 57 /* No buffer space available */
83: #define EISCONN 58 /* Socket is already connected */
84: #define ENOTCONN 59 /* Socket is not connected */
85: #define ESHUTDOWN 60 /* Can't send after socket shutdown */
86: #define ETOOMANYREFS 61 /* Too many references: can't splice */
87: #define ETIMEDOUT 62 /* Connection timed out */
88: #define ECONNREFUSED 63 /* Connection refused */
89:
90: /* */
91: #define ENAMETOOLONG 64 /* File name too long */
92:
93: /* should be rearranged */
94: #define EHOSTDOWN 65 /* Host is down */
95: #define EHOSTUNREACH 66 /* No route to host */
Defined macros
E2BIG
defined in line
13; used 2 times
EACCES
defined in line
19; used 19 times
EBADF
defined in line
15; used 11 times
EBUSY
defined in line
22; used 17 times
EDOM
defined in line
41; used 9 times
EFAULT
defined in line
20; used 64 times
- in /usr/src/lib/c/gen/gethostname.c line
21-26(2)
- in /usr/src/sys/autoconfig/do_config.c line
105
- in /usr/src/sys/dev/Others/bk.c line
125
- in /usr/src/sys/dev/Others/ft.c line
137
- in /usr/src/sys/dev/Others/rc.c line
37
- in /usr/src/sys/dev/Others/rx2.c line
340
- in /usr/src/sys/dev/Others/rx3.c line
597,
604,
613
- in /usr/src/sys/dev/bio.c line
648
- in /usr/src/sys/dev/cary.c line
126
- in /usr/src/sys/dev/hp.badsect.c line
683
- in /usr/src/sys/dev/hp.c line
578
- in /usr/src/sys/dev/ht.c line
459,
510
- in /usr/src/sys/dev/lp.c line
111
- in /usr/src/sys/dev/mem.c line
32
- in /usr/src/sys/dev/rm.badsect.c line
743
- in /usr/src/sys/dev/rm.c line
613
- in /usr/src/sys/dev/tm.c line
660,
710
- in /usr/src/sys/dev/ts.c line
622,
669
- in /usr/src/sys/dev/tty.c line
324,
332,
366,
425,
438,
453,
466,
482-487(2),
496-501(2),
539,
548-553(2),
561,
568,
575,
582,
591,
600
- in /usr/src/sys/dev/vp.c line
191,
216
- in /usr/src/sys/dev/xp.badsect.c line
849
- in /usr/src/sys/dev/xp.c line
734
- in /usr/src/sys/sys/ioctl.c line
90
- in /usr/src/sys/sys/nami.c line
460
- in /usr/src/sys/sys/rdwri.c line
256
- in /usr/src/sys/sys/subr.c line
178,
204
- in /usr/src/sys/sys/sys1.c line
148-153(2)
- in /usr/src/sys/sys/sys3.c line
129,
375
- in /usr/src/sys/sys/sys4.c line
55,
499,
579
- in /usr/src/sys/sys/syslocal.c line
202,
367,
759,
776
EFBIG
defined in line
33; used 2 times
EINTR
defined in line
10; used 20 times
EINVAL
defined in line
28; used 56 times
- in /usr/src/lib/jobs/sigset.c line
25,
53
- in /usr/src/sys/dev/Others/dmc.c line
182,
224
- in /usr/src/sys/dev/Others/ft.c line
105,
142
- in /usr/src/sys/dev/Others/rc.c line
23,
50-54(2),
64
- in /usr/src/sys/dev/dvhp.c line
89
- in /usr/src/sys/dev/hk.c line
139,
524-527(2)
- in /usr/src/sys/dev/hp.badsect.c line
104,
670-673(2)
- in /usr/src/sys/dev/hp.c line
89,
565-568(2)
- in /usr/src/sys/dev/hs.c line
64
- in /usr/src/sys/dev/rf.c line
39
- in /usr/src/sys/dev/rk.c line
45
- in /usr/src/sys/dev/rm.badsect.c line
112,
730-733(2)
- in /usr/src/sys/dev/rm.c line
101,
600-603(2)
- in /usr/src/sys/dev/rp.c line
56
- in /usr/src/sys/dev/xp.badsect.c line
248,
831-839(3)
- in /usr/src/sys/dev/xp.c line
225,
716-724(3)
- in /usr/src/sys/sys/fakemx.c line
30
- in /usr/src/sys/sys/machdep.c line
314
- in /usr/src/sys/sys/nami.c line
462
- in /usr/src/sys/sys/rdwri.c line
36,
121
- in /usr/src/sys/sys/sys3.c line
296
- in /usr/src/sys/sys/sys4.c line
321,
376,
407,
434
- in /usr/src/sys/sys/syslocal.c line
771
- in /usr/src/sys/sys/trap.c line
437
- in /usr/src/ucb/Mail/sigretro.c line
82,
132,
162,
204,
240,
272
EIO
defined in line
11; used 30 times
ELOOP
defined in line
48; used 1 times
ENOENT
defined in line
8; used 8 times
ENOTTY
defined in line
31; used 13 times
ENXIO
defined in line
12; used 122 times
- in /usr/src/sys/autoconfig/do_config.c line
105
- in /usr/src/sys/dev/Others/cr.c line
102
- in /usr/src/sys/dev/Others/dc.c line
83
- in /usr/src/sys/dev/Others/dj.c line
28
- in /usr/src/sys/dev/Others/dmc.c line
135
- in /usr/src/sys/dev/Others/du.c line
108
- in /usr/src/sys/dev/Others/dv.c line
433
- in /usr/src/sys/dev/Others/ft.c line
50,
75
- in /usr/src/sys/dev/Others/ml.c line
126
- in /usr/src/sys/dev/Others/mx1.c line
85,
164,
189,
263,
277-286(3),
299,
311,
321,
334,
362,
387,
393-403(3),
425,
442,
460,
509,
532-544(4),
555
- in /usr/src/sys/dev/Others/mx2.c line
49,
68-77(3),
103,
226,
239,
247,
341,
376,
461,
477,
638,
669,
679,
806,
816
- in /usr/src/sys/dev/Others/nap.c line
26
- in /usr/src/sys/dev/Others/rx2.c line
81,
96,
336
- in /usr/src/sys/dev/Others/rx3.c line
174
- in /usr/src/sys/dev/cary.c line
80
- in /usr/src/sys/dev/cat.c line
40
- in /usr/src/sys/dev/dh.c line
87
- in /usr/src/sys/dev/dn.c line
39
- in /usr/src/sys/dev/dvhp.c line
83,
394,
409
- in /usr/src/sys/dev/dz.c line
77
- in /usr/src/sys/dev/hk.c line
135,
473,
488
- in /usr/src/sys/dev/hp.badsect.c line
98,
467,
482
- in /usr/src/sys/dev/hp.c line
83,
403,
418
- in /usr/src/sys/dev/hs.c line
60
- in /usr/src/sys/dev/ht.c line
87,
186,
484-488(2),
513
- in /usr/src/sys/dev/kl.c line
55
- in /usr/src/sys/dev/lp.c line
69
- in /usr/src/sys/dev/mem.c line
50,
78
- in /usr/src/sys/dev/rf.c line
35
- in /usr/src/sys/dev/rk.c line
41,
152,
167
- in /usr/src/sys/dev/rl.c line
63,
116
- in /usr/src/sys/dev/rm.badsect.c line
106,
526,
541
- in /usr/src/sys/dev/rm.c line
95,
437,
452
- in /usr/src/sys/dev/rp.c line
52,
179,
194
- in /usr/src/sys/dev/sys.c line
20,
31,
43,
62,
73
- in /usr/src/sys/dev/tm.c line
115,
355,
685-689(2),
713
- in /usr/src/sys/dev/ts.c line
102-106(2),
280,
644-648(2),
672
- in /usr/src/sys/dev/tty.c line
336
- in /usr/src/sys/dev/vp.c line
96
- in /usr/src/sys/dev/xp.badsect.c line
242
- in /usr/src/sys/dev/xp.c line
219
- in /usr/src/sys/sys/fio.c line
173
- in /usr/src/sys/sys/sys3.c line
321,
343
EPERM
defined in line
7; used 3 times
EPIPE
defined in line
38; used 2 times
EQUOT
defined in line
45; used 1 times
EROFS
defined in line
36; used 1 times
ESRCH
defined in line
9; used 9 times
EXDEV
defined in line
24; used 1 times
Usage of this include