1//===-- Map of Linux extension error numbers to strings ---------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_LINUX_EXTENSION_ERRORS_H
10#define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_LINUX_EXTENSION_ERRORS_H
11
12#include "src/__support/StringUtil/message_mapper.h"
13
14#include <errno.h> // For error macros
15
16namespace LIBC_NAMESPACE {
17
18constexpr MsgTable<52> LINUX_ERRORS = {
19 MsgMapping(ENOTBLK, "Block device required"),
20 MsgMapping(ECHRNG, "Channel number out of range"),
21 MsgMapping(EL2NSYNC, "Level 2 not synchronized"),
22 MsgMapping(EL3HLT, "Level 3 halted"),
23 MsgMapping(EL3RST, "Level 3 reset"),
24 MsgMapping(ELNRNG, "Link number out of range"),
25 MsgMapping(EUNATCH, "Protocol driver not attached"),
26 MsgMapping(ENOCSI, "No CSI structure available"),
27 MsgMapping(EL2HLT, "Level 2 halted"),
28 MsgMapping(EBADE, "Invalid exchange"),
29 MsgMapping(EBADR, "Invalid request descriptor"),
30 MsgMapping(EXFULL, "Exchange full"),
31 MsgMapping(ENOANO, "No anode"),
32 MsgMapping(EBADRQC, "Invalid request code"),
33 MsgMapping(EBADSLT, "Invalid slot"),
34 MsgMapping(EBFONT, "Bad font file format"),
35 MsgMapping(ENONET, "Machine is not on the network"),
36 MsgMapping(ENOPKG, "Package not installed"),
37 MsgMapping(EREMOTE, "Object is remote"),
38 MsgMapping(EADV, "Advertise error"),
39 MsgMapping(ESRMNT, "Srmount error"),
40 MsgMapping(ECOMM, "Communication error on send"),
41 MsgMapping(EDOTDOT, "RFS specific error"),
42 MsgMapping(ENOTUNIQ, "Name not unique on network"),
43 MsgMapping(EBADFD, "File descriptor in bad state"),
44 MsgMapping(EREMCHG, "Remote address changed"),
45 MsgMapping(ELIBACC, "Can not access a needed shared library"),
46 MsgMapping(ELIBBAD, "Accessing a corrupted shared library"),
47 MsgMapping(ELIBSCN, ".lib section in a.out corrupted"),
48 MsgMapping(ELIBMAX, "Attempting to link in too many shared libraries"),
49 MsgMapping(ELIBEXEC, "Cannot exec a shared library directly"),
50 MsgMapping(ERESTART, "Interrupted system call should be restarted"),
51 MsgMapping(ESTRPIPE, "Streams pipe error"),
52 MsgMapping(EUSERS, "Too many users"),
53 MsgMapping(ESOCKTNOSUPPORT, "Socket type not supported"),
54 MsgMapping(EPFNOSUPPORT, "Protocol family not supported"),
55 MsgMapping(ESHUTDOWN, "Cannot send after transport endpoint shutdown"),
56 MsgMapping(ETOOMANYREFS, "Too many references: cannot splice"),
57 MsgMapping(EHOSTDOWN, "Host is down"),
58 MsgMapping(EUCLEAN, "Structure needs cleaning"),
59 MsgMapping(ENOTNAM, "Not a XENIX named type file"),
60 MsgMapping(ENAVAIL, "No XENIX semaphores available"),
61 MsgMapping(EISNAM, "Is a named type file"),
62 MsgMapping(EREMOTEIO, "Remote I/O error"),
63 MsgMapping(ENOMEDIUM, "No medium found"),
64 MsgMapping(EMEDIUMTYPE, "Wrong medium type"),
65 MsgMapping(ENOKEY, "Required key not available"),
66 MsgMapping(EKEYEXPIRED, "Key has expired"),
67 MsgMapping(EKEYREVOKED, "Key has been revoked"),
68 MsgMapping(EKEYREJECTED, "Key was rejected by service"),
69 MsgMapping(ERFKILL, "Operation not possible due to RF-kill"),
70 MsgMapping(EHWPOISON, "Memory page has hardware error"),
71};
72
73} // namespace LIBC_NAMESPACE
74
75#endif // LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_TABLES_LINUX_EXTENSION_ERRORS_H
76

source code of libc/src/__support/StringUtil/tables/linux_extension_errors.h