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; used 1 times
EBUSY
defined in line
28; used 6 times
EDOM
defined in line
47;
never used
EFBIG
defined in line
39;
never used
EINTR
defined in line
16;
never used
EINVAL
defined in line
34; used 61 times
- in /usr/src/sys/net/if_loop.c line
147
- in /usr/src/sys/net/if_sl.c line
534
- in /usr/src/sys/net/raw_usrreq.c line
169,
185,
224
- in /usr/src/sys/net/route.c line
194
- in /usr/src/sys/netimp/if_imp.c line
659,
667
- in /usr/src/sys/netinet/ip_output.c line
317,
326,
344,
455
- in /usr/src/sys/netinet/raw_ip.c line
117,
126,
144
- in /usr/src/sys/netinet/tcp_usrreq.c line
63,
72,
253,
335,
344,
362
- in /usr/src/sys/netinet/udp_usrreq.c line
254-258(2),
265
- in /usr/src/sys/netns/idp_usrreq.c line
252,
258,
301,
327,
344,
366-370(2),
377,
528
- in /usr/src/sys/netns/ns_ip.c line
110
- in /usr/src/sys/netns/spp_usrreq.c line
581,
802,
811,
848,
855,
874,
891,
915-920(2),
1072
- in /usr/src/sys/vaxif/if_ddn.c line
607,
615
- in /usr/src/sys/vaxif/if_de.c line
751
- in /usr/src/sys/vaxif/if_dmc.c line
856
- in /usr/src/sys/vaxif/if_ec.c line
885
- in /usr/src/sys/vaxif/if_en.c line
700
- in /usr/src/sys/vaxif/if_ex.c line
880
- in /usr/src/sys/vaxif/if_hy.c line
1374,
1390,
1406,
1418,
1452,
1472
- in /usr/src/sys/vaxif/if_il.c line
744
- in /usr/src/sys/vaxif/if_pcl.c line
482
- in /usr/src/sys/vaxif/if_qe.c line
857
- in /usr/src/sys/vaxif/if_vv.c line
981
EIO
defined in line
17; used 4 times
ELOOP
defined in line
87;
never used
ENOBUFS
defined in line
78; used 56 times
- in /usr/src/sys/net/if_loop.c line
77,
95,
108
- in /usr/src/sys/net/if_sl.c line
125,
214
- in /usr/src/sys/net/raw_cb.c line
47,
64
- in /usr/src/sys/net/route.c line
298
- in /usr/src/sys/netimp/if_imp.c line
516,
591,
597
- in /usr/src/sys/netinet/ip_output.c line
185,
210
- in /usr/src/sys/netinet/raw_ip.c line
71
- in /usr/src/sys/netinet/tcp_input.c line
382
- in /usr/src/sys/netinet/tcp_output.c line
215,
262
- in /usr/src/sys/netinet/tcp_usrreq.c line
154,
231,
269,
398
- in /usr/src/sys/netinet/udp_usrreq.c line
203
- in /usr/src/sys/netns/idp_usrreq.c line
143,
163,
261
- in /usr/src/sys/netns/ns_ip.c line
245,
338
- in /usr/src/sys/netns/spp_usrreq.c line
524,
553,
563,
691,
700,
814,
946,
1077
- in /usr/src/sys/vaxif/if_ddn.c line
516
- in /usr/src/sys/vaxif/if_de.c line
662,
686
- in /usr/src/sys/vaxif/if_dmc.c line
784,
806
- in /usr/src/sys/vaxif/if_ec.c line
641,
664
- in /usr/src/sys/vaxif/if_en.c line
617,
642
- in /usr/src/sys/vaxif/if_ex.c line
749,
773
- in /usr/src/sys/vaxif/if_hy.c line
591,
678
- in /usr/src/sys/vaxif/if_il.c line
612,
637
- in /usr/src/sys/vaxif/if_pcl.c line
237,
258
- in /usr/src/sys/vaxif/if_qe.c line
768,
792
- in /usr/src/sys/vaxif/if_vv.c line
904,
929
ENXIO
defined in line
18; used 13 times
EPERM
defined in line
13; used 7 times
EPIPE
defined in line
44;
never used
EROFS
defined in line
42;
never used
ESRCH
defined in line
15; used 1 times
EXDEV
defined in line
30;
never used
Usage of this include