epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / dissectors / errno.c
blob0514b7ebeacbc72ac69d2efd69c10b1c60f198d7
1 /* errno.c
2 * String descriptions for errno values.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #include "config.h"
13 #include <epan/value_string.h>
15 /* Note: sorted in (unsigned) ascending order with no gaps to enable direct,
16 * array-indexed access. */
17 static const value_string linux_negative_errno_vals[] = {
18 /* from include/uapi/asm-generic/errno.h */
19 { -133, "Memory page has hardware error (-EHWPOISON)" },
20 { -132, "Operation not possible due to RF-kill (-ERFKILL)" },
21 { -131, "State not recoverable (-ENOTRECOVERABLE)" },
22 { -130, "Owner died (-EOWNERDEAD)" },
23 { -129, "Key was rejected by service (-EKEYREJECTED)" },
24 { -128, "Key has been revoked (-EKEYREVOKED)" },
25 { -127, "Key has expired (-EKEYEXPIRED)" },
26 { -126, "Required key not available (-ENOKEY)" },
27 { -125, "Operation Canceled (-ECANCELED)" },
28 { -124, "Wrong medium type (-EMEDIUMTYPE)" },
29 { -123, "No medium found (-ENOMEDIUM)" },
30 { -122, "Quota exceeded (-EDQUOT)" },
31 { -121, "Remote I/O error (-EREMOTEIO)" },
32 { -120, "Is a named type file (-EISNAM)" },
33 { -119, "No XENIX semaphores available (-ENAVAIL)" },
34 { -118, "Not a XENIX named type file (-ENOTNAM)" },
35 { -117, "Structure needs cleaning (-EUCLEAN)" },
36 { -116, "Stale file handle (-ESTALE)" },
37 { -115, "Operation now in progress (-EINPROGRESS)" },
38 { -114, "Operation already in progress (-EALREADY)" },
39 { -113, "No route to host (-EHOSTUNREACH)" },
40 { -112, "Host is down (-EHOSTDOWN)" },
41 { -111, "Connection refused (-ECONNREFUSED)" },
42 { -110, "Connection timed out (-ETIMEDOUT)" },
43 { -109, "Too many references: cannot splice (-ETOOMANYREFS)" },
44 { -108, "Cannot send after transport endpoint shutdown (-ESHUTDOWN)" },
45 { -107, "Transport endpoint is not connected (-ENOTCONN)" },
46 { -106, "Transport endpoint is already connected (-EISCONN)" },
47 { -105, "No buffer space available (-ENOBUFS)" },
48 { -104, "Connection reset by peer (-ECONNRESET)" },
49 { -103, "Software caused connection abort (-ECONNABORTED)" },
50 { -102, "Network dropped connection because of reset (-ENETRESET)" },
51 { -101, "Network is unreachable (-ENETUNREACH)" },
52 { -100, "Network is down (-ENETDOWN)" },
53 { -99, "Cannot assign requested address (-EADDRNOTAVAIL)" },
54 { -98, "Address already in use (-EADDRINUSE)" },
55 { -97, "Address family not supported by protocol (-EAFNOSUPPORT)" },
56 { -96, "Protocol family not supported (-EPFNOSUPPORT)" },
57 { -95, "Operation not supported on transport endpoint (-EOPNOTSUPP)" },
58 { -94, "Socket type not supported (-ESOCKTNOSUPPORT)" },
59 { -93, "Protocol not supported (-EPROTONOSUPPORT)" },
60 { -92, "Protocol not available (-ENOPROTOOPT)" },
61 { -91, "Protocol wrong type for socket (-EPROTOTYPE)" },
62 { -90, "Message too long (-EMSGSIZE)" },
63 { -89, "Destination address required (-EDESTADDRREQ)" },
64 { -88, "Socket operation on non-socket (-ENOTSOCK)" },
65 { -87, "Too many users (-EUSERS)" },
66 { -86, "Streams pipe error (-ESTRPIPE)" },
67 { -85, "Interrupted system call should be restarted (-ERESTART)" },
68 { -84, "Illegal byte sequence (-EILSEQ)" },
69 { -83, "Cannot exec a shared library directly (-ELIBEXEC)" },
70 { -82, "Attempting to link in too many shared libraries (-ELIBMAX)" },
71 { -81, ".lib section in a.out corrupted (-ELIBSCN)" },
72 { -80, "Accessing a corrupted shared library (-ELIBBAD)" },
73 { -79, "Can not access a needed shared library (-ELIBACC)" },
74 { -78, "Remote address changed (-EREMCHG)" },
75 { -77, "File descriptor in bad state (-EBADFD)" },
76 { -76, "Name not unique on network (-ENOTUNIQ)" },
77 { -75, "Value too large for defined data type (-EOVERFLOW)" },
78 { -74, "Not a data message (-EBADMSG)" },
79 { -73, "RFS specific error (-EDOTDOT)" },
80 { -72, "Multihop attempted (-EMULTIHOP)" },
81 { -71, "Protocol error (-EPROTO)" },
82 { -70, "Communication error on send (-ECOMM)" },
83 { -69, "Srmount error (-ESRMNT)" },
84 { -68, "Advertise error (-EADV)" },
85 { -67, "Link has been severed (-ENOLINK)" },
86 { -66, "Object is remote (-EREMOTE)" },
87 { -65, "Package not installed (-ENOPKG)" },
88 { -64, "Machine is not on the network (-ENONET)" },
89 { -63, "Out of streams resources (-ENOSR)" },
90 { -62, "Timer expired (-ETIME)" },
91 { -61, "No data available (-ENODATA)" },
92 { -60, "Device not a stream (-ENOSTR)" },
93 { -59, "Bad font file format (-EBFONT)" },
94 { -58, "(-58 \?\?\?)" }, /* dummy so that there are no "gaps" */
95 { -57, "Invalid slot (-EBADSLT)" },
96 { -56, "Invalid request code (-EBADRQC)" },
97 { -55, "No anode (-ENOANO)" },
98 { -54, "Exchange full (-EXFULL)" },
99 { -53, "Invalid request descriptor (-EBADR)" },
100 { -52, "Invalid exchange (-EBADE)" },
101 { -51, "Level 2 halted (-EL2HLT)" },
102 { -50, "No CSI structure available (-ENOCSI)" },
103 { -49, "Protocol driver not attached (-EUNATCH)" },
104 { -48, "Link number out of range (-ELNRNG)" },
105 { -47, "Level 3 reset (-EL3RST)" },
106 { -46, "Level 3 halted (-EL3HLT)" },
107 { -45, "Level 2 not synchronized (-EL2NSYNC)" },
108 { -44, "Channel number out of range (-ECHRNG)" },
109 { -43, "Identifier removed (-EIDRM)" },
110 { -42, "No message of desired type (-ENOMSG)" },
111 { -41, "(-41 \?\?\?)" }, /* dummy so that there are no "gaps" */
112 { -40, "Too many symbolic links encountered (-ELOOP)" },
113 { -39, "Directory not empty (-ENOTEMPTY)" },
114 { -38, "Invalid system call number (-ENOSYS)" },
115 { -37, "No record locks available (-ENOLCK)" },
116 { -36, "File name too long (-ENAMETOOLONG)" },
117 { -35, "Resource deadlock would occur (-EDEADLK)" },
118 /* from include/uapi/asm-generic/errno-base.h */
119 { -34, "Math result not representable (-ERANGE)" },
120 { -33, "Math argument out of domain of func (-EDOM)" },
121 { -32, "Broken pipe (-EPIPE)" },
122 { -31, "Too many links (-EMLINK)" },
123 { -30, "Read-only file system (-EROFS)" },
124 { -29, "Illegal seek (-ESPIPE)" },
125 { -28, "No space left on device (-ENOSPC)" },
126 { -27, "File too large (-EFBIG)" },
127 { -26, "Text file busy (-ETXTBSY)" },
128 { -25, "Not a typewriter (-ENOTTY)" },
129 { -24, "Too many open files (-EMFILE)" },
130 { -23, "File table overflow (-ENFILE)" },
131 { -22, "Invalid argument (-EINVAL)" },
132 { -21, "Is a directory (-EISDIR)" },
133 { -20, "Not a directory (-ENOTDIR)" },
134 { -19, "No such device (-ENODEV)" },
135 { -18, "Cross-device link (-EXDEV)" },
136 { -17, "File exists (-EEXIST)" },
137 { -16, "Device or resource busy (-EBUSY)" },
138 { -15, "Block device required (-ENOTBLK)" },
139 { -14, "Bad address (-EFAULT)" },
140 { -13, "Permission denied (-EACCES)" },
141 { -12, "Out of memory (-ENOMEM)" },
142 { -11, "Try again (-EAGAIN)" },
143 { -10, "No child processes (-ECHILD)" },
144 { -9, "Bad file number (-EBADF)" },
145 { -8, "Exec format error (-ENOEXEC)" },
146 { -7, "Argument list too long (-E2BIG)" },
147 { -6, "No such device or address (-ENXIO)" },
148 { -5, "I/O error (-EIO)" },
149 { -4, "Interrupted system call (-EINTR)" },
150 { -3, "No such process (-ESRCH)" },
151 { -2, "No such file or directory (-ENOENT)" },
152 { -1, "Operation not permitted (-EPERM)" },
153 { 0, "Success" },
154 { 0, NULL }
157 value_string_ext linux_negative_errno_vals_ext = VALUE_STRING_EXT_INIT(linux_negative_errno_vals);
160 * Editor modelines - https://www.wireshark.org/tools/modelines.html
162 * Local variables:
163 * c-basic-offset: 4
164 * tab-width: 8
165 * indent-tabs-mode: nil
166 * End:
168 * vi: set shiftwidth=4 tabstop=8 expandtab:
169 * :indentSize=4:tabSize=8:noTabs=true: