]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/String/ErrorList.c
StdLib: Fix printf issues with floating point and wide character strings. Also resol...
[mirror_edk2.git] / StdLib / LibC / String / ErrorList.c
CommitLineData
2aa62f2b 1/** @file\r
2 This header defines the human readable descriptions of the errors declared\r
3 in errno.h.\r
4\r
5 The string literals defined in this file must be kept in sync with the\r
6 error numbers declared in <errno.h>. This is because the error numbers are\r
7 used to index into the sys_errlist array to retrieve its associated\r
8 string literal.\r
9\r
10 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
11 This program and the accompanying materials are licensed and made available under\r
12 the terms and conditions of the BSD License that accompanies this distribution.\r
13 The full text of the license may be found at\r
14 http://opensource.org/licenses/bsd-license.php.\r
15\r
16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
18\r
19**/\r
20#include <LibConfig.h>\r
21#include <sys/EfiCdefs.h>\r
22\r
23/* Describe the error numbers, sequentially, beginning at 0. */\r
24const char *const\r
25sys_errlist[] = {\r
26 "No Error Detected", /* 0 errno reset or no error yet detected */\r
27 "Operation not permitted", /* 1 EPERM */\r
28 "No such file or directory", /* 2 ENOENT */\r
29 "No such process", /* 3 ESRCH */\r
30 "Interrupted system call", /* 4 EINTR */\r
31 "Input/output error", /* 5 EIO */\r
32 "Device not configured", /* 6 ENXIO */\r
33 "Argument list too long", /* 7 E2BIG */\r
34 "Exec format error", /* 8 ENOEXEC */\r
35 "Bad file descriptor", /* 9 EBADF */\r
36 "No child processes", /* 10 ECHILD */\r
37 "Resource deadlock avoided", /* 11 EDEADLK */\r
38 "Cannot allocate memory", /* 12 ENOMEM */\r
39 "Permission denied", /* 13 EACCES */\r
40 "Bad address", /* 14 EFAULT */\r
41 "Block device required", /* 15 ENOTBLK */\r
42 "Device busy", /* 16 EBUSY */\r
43 "File exists", /* 17 EEXIST */\r
44 "Cross-device link", /* 18 EXDEV */\r
45 "Operation not supported by device", /* 19 ENODEV */\r
46 "Not a directory", /* 20 ENOTDIR */\r
47 "Is a directory", /* 21 EISDIR */\r
48 "Invalid argument", /* 22 EINVAL */\r
49 "Too many open files in system", /* 23 ENFILE */\r
50 "Too many open files", /* 24 EMFILE */\r
51 "Inappropriate ioctl for device", /* 25 ENOTTY */\r
52 "Text file busy", /* 26 ETXTBSY */\r
53 "File too large", /* 27 EFBIG */\r
54 "No space left on device", /* 28 ENOSPC */\r
55 "Illegal seek", /* 29 ESPIPE */\r
56 "Read-only filesystem", /* 30 EROFS */\r
57 "Too many links", /* 31 EMLINK */\r
58 "Broken pipe", /* 32 EPIPE */\r
59\r
60 /* math software -- these are the only two values required by the C Standard */\r
61 "Numerical argument out of domain", /* 33 EDOM */\r
62 "Result too large", /* 34 ERANGE */\r
63\r
64 /* non-blocking and interrupt i/o */\r
65 "Resource temporarily unavailable", /* 35 EAGAIN or EWOULDBLOCK */\r
66 "Operation now in progress", /* 36 EINPROGRESS */\r
67 "Operation already in progress", /* 37 EALREADY */\r
68\r
69 /* ipc/network software -- argument errors */\r
70 "Socket operation on non-socket", /* 38 ENOTSOCK */\r
71 "Destination address required", /* 39 EDESTADDRREQ */\r
72 "Message too long", /* 40 EMSGSIZE */\r
73 "Protocol wrong type for socket", /* 41 EPROTOTYPE */\r
74 "Protocol not available", /* 42 ENOPROTOOPT */\r
75 "Protocol not supported", /* 43 EPROTONOSUPPORT */\r
76 "Socket type not supported", /* 44 ESOCKTNOSUPPORT */\r
77 "Operation not supported", /* 45 EOPNOTSUPP or ENOTSUP */\r
78 "Protocol family not supported", /* 46 EPFNOSUPPORT */\r
79 "Address family not supported by protocol family", /* 47 EAFNOSUPPORT */\r
80 "Address already in use", /* 48 EADDRINUSE */\r
81 "Can't assign requested address", /* 49 EADDRNOTAVAIL */\r
82\r
83 /* ipc/network software -- operational errors */\r
84 "Network is down", /* 50 ENETDOWN */\r
85 "Network is unreachable", /* 51 ENETUNREACH */\r
86 "Network dropped connection on reset", /* 52 ENETRESET */\r
87 "Software caused connection abort", /* 53 ECONNABORTED */\r
88 "Connection reset by peer", /* 54 ECONNRESET */\r
89 "No buffer space available", /* 55 ENOBUFS */\r
90 "Socket is already connected", /* 56 EISCONN */\r
91 "Socket is not connected", /* 57 ENOTCONN */\r
92 "Can't send after socket shutdown", /* 58 ESHUTDOWN */\r
93 "Too many references: can't splice", /* 59 ETOOMANYREFS */\r
94 "Operation timed out", /* 60 ETIMEDOUT */\r
95 "Connection refused", /* 61 ECONNREFUSED */\r
96 "Too many levels of symbolic links", /* 62 ELOOP */\r
97 "File name too long", /* 63 ENAMETOOLONG */\r
98 "Host is down", /* 64 EHOSTDOWN */\r
99 "No route to host", /* 65 EHOSTUNREACH */\r
100 "Directory not empty", /* 66 ENOTEMPTY */\r
101\r
102 /* quotas, etc. */\r
103 "Too many processes", /* 67 EPROCLIM */\r
104 "Too many users", /* 68 EUSERS */\r
105 "Disc quota exceeded", /* 69 EDQUOT */\r
106\r
107 /* Network File System */\r
108 "Stale NFS file handle", /* 70 ESTALE */\r
109 "Too many levels of remote in path", /* 71 EREMOTE */\r
110 "RPC struct is bad", /* 72 EBADRPC */\r
111 "RPC version wrong", /* 73 ERPCMISMATCH */\r
112 "RPC prog. not avail", /* 74 EPROGUNAVAIL */\r
113 "Program version wrong", /* 75 EPROGMISMATCH */\r
114 "Bad procedure for program", /* 76 EPROCUNAVAIL */\r
115 "No locks available", /* 77 ENOLCK */\r
116 "Function not implemented", /* 78 ENOSYS */\r
117 "Inappropriate file type or format", /* 79 EFTYPE */\r
118 "Authentication error", /* 80 EAUTH */\r
119 "Need authenticator", /* 81 ENEEDAUTH */\r
120 "Identifier removed", /* 82 EIDRM */\r
121 "No message of desired type", /* 83 ENOMSG */\r
122 "Value too large to be stored in data type", /* 84 EOVERFLOW */\r
123 "Illegal byte sequence", /* 85 EILSEQ */\r
124 "Bad errno 86", /* 86 ENOTHING_1 */\r
125 "Operation canceled", /* 87 ECANCELED */\r
126\r
127 "Bad message", /* 88 EBADMSG */\r
128 "No message available", /* 89 ENODATA */\r
129 "No STREAM resources", /* 90 ENOSR */\r
130 "Not a STREAM", /* 91 ENOSTR */\r
131 "STREAM ioctl timeout", /* 92 ETIME */\r
132\r
133 "Attribute not found", /* 93 ENOATTR */\r
134\r
135 "Programming error", /* 94 EDOOFUS */\r
136\r
137 "Multihop attempted", /* 95 EMULTIHOP */\r
138 "Link has been severed", /* 96 ENOLINK */\r
139 "Protocol error", /* 97 EPROTO */\r
140\r
141 "Buffer too small to hold result", /* 98 EBUFSIZE */\r
142\r
143 "System Error list and errno.h are out-of-sync" /* EMAXERRORVAL - Should always be last. */\r
144};\r