Standardbibliothek-Header <cerrno>
Von cppreference.com
Dieser Header war ursprünglich in der C-Standardbibliothek unter <errno.h> enthalten.
Dieser Header ist Teil der Fehlerbehandlungs-Bibliothek.
Inhalt |
[bearbeiten] Makros
| Makro, das zur POSIX-kompatiblen, Thread-lokalen Fehlernummern-Variable expandiert (Makrovariable) | |
| E2BIG (C++11) |
Argumentliste zu lang (Makro-Konstante) |
| EACCES (C++11) |
Zugriff verweigert (Makro-Konstante) |
| EADDRINUSE (C++11) |
Adresse bereits belegt (Makro-Konstante) |
| EADDRNOTAVAIL (C++11) |
Adresse nicht verfügbar (Makro-Konstante) |
| EAFNOSUPPORT (C++11) |
Adressfamilie wird nicht unterstützt (Makro-Konstante) |
| EAGAIN (C++11) |
Ressource nicht verfügbar, bitte erneut versuchen (Makro-Konstante) |
| EALREADY (C++11) |
Verbindung bereits im Gange (Makro-Konstante) |
| EBADF (C++11) |
Ungültiger Dateideskriptor (Makro-Konstante) |
| EBADMSG (C++11) |
Ungültige Nachricht (Makro-Konstante) |
| EBUSY (C++11) |
Gerät oder Ressource belegt (Makro-Konstante) |
| ECANCELED (C++11) |
Operation abgebrochen (Makro-Konstante) |
| ECHILD (C++11) |
Keine Kindprozesse (Makro-Konstante) |
| ECONNABORTED (C++11) |
Verbindung abgebrochen (Makro-Konstante) |
| ECONNREFUSED (C++11) |
Verbindung verweigert (Makro-Konstante) |
| ECONNRESET (C++11) |
Verbindung zurückgesetzt (Makro-Konstante) |
| EDEADLK (C++11) |
Ressourcen-Deadlock würde auftreten (Makro-Konstante) |
| EDESTADDRREQ (C++11) |
Zieladresse erforderlich (Makro-Konstante) |
| EDOM |
Mathematik-Argument außerhalb des Definitionsbereichs der Funktion (Makro-Konstante) |
| EEXIST (C++11) |
Datei existiert bereits (Makro-Konstante) |
| EFAULT (C++11) |
Ungültige Adresse (Makro-Konstante) |
| EFBIG (C++11) |
Datei zu groß (Makro-Konstante) |
| EHOSTUNREACH (C++11) |
Host nicht erreichbar (Makro-Konstante) |
| EIDRM (C++11) |
Identifikator entfernt (Makro-Konstante) |
| EILSEQ |
Ungültige Byte-Sequenz (Makro-Konstante) |
| EINPROGRESS (C++11) |
Operation im Gange (Makro-Konstante) |
| EINTR (C++11) |
Unterbrochene Funktion (Makro-Konstante) |
| EINVAL (C++11) |
Ungültiges Argument (Makro-Konstante) |
| EIO (C++11) |
E/A-Fehler (Makro-Konstante) |
| EISCONN (C++11) |
Socket ist verbunden (Makro-Konstante) |
| EISDIR (C++11) |
Ist ein Verzeichnis (Makro-Konstante) |
| ELOOP (C++11) |
Zu viele Ebenen von symbolischen Links (Makro-Konstante) |
| EMFILE (C++11) |
Dateideskriptor-Wert zu groß (Makro-Konstante) |
| EMLINK (C++11) |
Zu viele Links (Makro-Konstante) |
| EMSGSIZE (C++11) |
Nachricht zu groß (Makro-Konstante) |
| ENAMETOOLONG (C++11) |
Dateiname zu lang (Makro-Konstante) |
| ENETDOWN (C++11) |
Netzwerk ist ausgefallen (Makro-Konstante) |
| ENETRESET (C++11) |
Verbindung durch Netzwerk abgebrochen (Makro-Konstante) |
| ENETUNREACH (C++11) |
Netzwerk nicht erreichbar (Makro-Konstante) |
| ENFILE (C++11) |
Zu viele Dateien im System geöffnet (Makro-Konstante) |
| ENOBUFS (C++11) |
Kein Pufferplatz verfügbar (Makro-Konstante) |
| ENODATA (C++11) (in C++23 veraltet) |
Keine Nachricht am Lese-Warteschlangenkopf des STREAMs verfügbar (Makro-Konstante) |
| ENODEV (C++11) |
Gerät nicht vorhanden (Makro-Konstante) |
| ENOENT (C++11) |
Keine solche Datei oder Verzeichnis (Makro-Konstante) |
| ENOEXEC (C++11) |
Formatfehler der ausführbaren Datei (Makro-Konstante) |
| ENOLCK (C++11) |
Keine Sperren verfügbar (Makro-Konstante) |
| ENOLINK (C++11) |
Link wurde getrennt (Makro-Konstante) |
| ENOMEM (C++11) |
Nicht genügend Speicherplatz (Makro-Konstante) |
| ENOMSG (C++11) |
Keine Nachricht vom gewünschten Typ (Makro-Konstante) |
| ENOPROTOOPT (C++11) |
Protokoll nicht verfügbar (Makro-Konstante) |
| ENOSPC (C++11) |
Kein Speicherplatz mehr auf Gerät vorhanden (Makro-Konstante) |
| ENOSR (C++11) (in C++23 veraltet) |
Keine STREAM-Ressourcen (Makro-Konstante) |
| ENOSTR (C++11) (in C++23 veraltet) |
Kein STREAM (Makro-Konstante) |
| ENOSYS (C++11) |
Funktion wird nicht unterstützt (Makro-Konstante) |
| ENOTCONN (C++11) |
Der Socket ist nicht verbunden (Makro-Konstante) |
| ENOTDIR (C++11) |
Kein Verzeichnis (Makro-Konstante) |
| ENOTEMPTY (C++11) |
Verzeichnis nicht leer (Makro-Konstante) |
| ENOTRECOVERABLE (C++11) |
Zustand nicht wiederherstellbar (Makro-Konstante) |
| ENOTSOCK (C++11) |
Kein Socket (Makro-Konstante) |
| ENOTSUP (C++11) |
Nicht unterstützt (Makro-Konstante) |
| ENOTTY (C++11) |
Unangemessene E/A-Steuerungsoperation (Makro-Konstante) |
| ENXIO (C++11) |
Kein solches Gerät oder Adresse (Makro-Konstante) |
| EOPNOTSUPP (C++11) |
Operation wird nicht auf Socket unterstützt (Makro-Konstante) |
| EOVERFLOW (C++11) |
Wert zu groß, um in Datentyp gespeichert zu werden (Makro-Konstante) |
| EOWNERDEAD (C++11) |
Vorheriger Besitzer gestorben (Makro-Konstante) |
| EPERM (C++11) |
Operation nicht erlaubt (Makro-Konstante) |
| EPIPE (C++11) |
Abgebrochene Pipe (Makro-Konstante) |
| EPROTO (C++11) |
Protokollfehler (Makro-Konstante) |
| EPROTONOSUPPORT (C++11) |
Protokoll nicht unterstützt (Makro-Konstante) |
| EPROTOTYPE (C++11) |
Falscher Protokolltyp für Socket (Makro-Konstante) |
| ERANGE |
Ergebnis zu groß (Makro-Konstante) |
| EROFS (C++11) |
Nur-Lese-Dateisystem (Makro-Konstante) |
| ESPIPE (C++11) |
Ungültiger Suchvorgang (Makro-Konstante) |
| ESRCH (C++11) |
Kein solcher Prozess (Makro-Konstante) |
| ETIME (C++11) (in C++23 veraltet) |
ioctl()-Zeitüberschreitung bei Stream(Makro-Konstante) |
| ETIMEDOUT (C++11) |
Verbindung abgebrochen (Zeitüberschreitung) (Makro-Konstante) |
| ETXTBSY (C++11) |
Textdatei belegt (Makro-Konstante) |
| EWOULDBLOCK (C++11) |
Operation würde blockieren (Makro-Konstante) |
| EXDEV (C++11) |
Geräteübergreifender Link (Makro-Konstante) |
[bearbeiten] Hinweise
Obwohl der Header <cerrno> auf dem C-Standardbibliotheks-Header <errno.h> basiert, wurden die meisten von <cerrno> definierten Makros von C++ aus dem POSIX-Standard übernommen und nicht aus der C-Standardbibliothek.
[bearbeiten] Synopsis
#define errno /* see description */ #define E2BIG /* see description */ // freestanding #define EACCES /* see description */ // freestanding #define EADDRINUSE /* see description */ // freestanding #define EADDRNOTAVAIL /* see description */ // freestanding #define EAFNOSUPPORT /* see description */ // freestanding #define EAGAIN /* see description */ // freestanding #define EALREADY /* see description */ // freestanding #define EBADF /* see description */ // freestanding #define EBADMSG /* see description */ // freestanding #define EBUSY /* see description */ // freestanding #define ECANCELED /* see description */ // freestanding #define ECHILD /* see description */ // freestanding #define ECONNABORTED /* see description */ // freestanding #define ECONNREFUSED /* see description */ // freestanding #define ECONNRESET /* see description */ // freestanding #define EDEADLK /* see description */ // freestanding #define EDESTADDRREQ /* see description */ // freestanding #define EDOM /* see description */ // freestanding #define EEXIST /* see description */ // freestanding #define EFAULT /* see description */ // freestanding #define EFBIG /* see description */ // freestanding #define EHOSTUNREACH /* see description */ // freestanding #define EIDRM /* see description */ // freestanding #define EILSEQ /* see description */ // freestanding #define EINPROGRESS /* see description */ // freestanding #define EINTR /* see description */ // freestanding #define EINVAL /* see description */ // freestanding #define EIO /* see description */ // freestanding #define EISCONN /* see description */ // freestanding #define EISDIR /* see description */ // freestanding #define ELOOP /* see description */ // freestanding #define EMFILE /* see description */ // freestanding #define EMLINK /* see description */ // freestanding #define EMSGSIZE /* see description */ // freestanding #define ENAMETOOLONG /* see description */ // freestanding #define ENETDOWN /* see description */ // freestanding #define ENETRESET /* see description */ // freestanding #define ENETUNREACH /* see description */ // freestanding #define ENFILE /* see description */ // freestanding #define ENOBUFS /* see description */ // freestanding #define ENODEV /* see description */ // freestanding #define ENOENT /* see description */ // freestanding #define ENOEXEC /* see description */ // freestanding #define ENOLCK /* see description */ // freestanding #define ENOLINK /* see description */ // freestanding #define ENOMEM /* see description */ // freestanding #define ENOMSG /* see description */ // freestanding #define ENOPROTOOPT /* see description */ // freestanding #define ENOSPC /* see description */ // freestanding #define ENOSYS /* see description */ // freestanding #define ENOTCONN /* see description */ // freestanding #define ENOTDIR /* see description */ // freestanding #define ENOTEMPTY /* see description */ // freestanding #define ENOTRECOVERABLE /* see description */ // freestanding #define ENOTSOCK /* see description */ // freestanding #define ENOTSUP /* see description */ // freestanding #define ENOTTY /* see description */ // freestanding #define ENXIO /* see description */ // freestanding #define EOPNOTSUPP /* see description */ // freestanding #define EOVERFLOW /* see description */ // freestanding #define EOWNERDEAD /* see description */ // freestanding #define EPERM /* see description */ // freestanding #define EPIPE /* see description */ // freestanding #define EPROTO /* see description */ // freestanding #define EPROTONOSUPPORT /* see description */ // freestanding #define EPROTOTYPE /* see description */ // freestanding #define ERANGE /* see description */ // freestanding #define EROFS /* see description */ // freestanding #define ESPIPE /* see description */ // freestanding #define ESRCH /* see description */ // freestanding #define ETIMEDOUT /* see description */ // freestanding #define ETXTBSY /* see description */ // freestanding #define EWOULDBLOCK /* see description */ // freestanding #define EXDEV /* see description */ // freestanding
[bearbeiten] Fehlerberichte
Die folgenden Verhaltensändernden Fehlerberichte wurden rückwirkend auf zuvor veröffentlichte C++-Standards angewendet.
| DR | angewendet auf | Verhalten wie veröffentlicht | Korrigiertes Verhalten |
|---|---|---|---|
| LWG 288 | C++98 | das Makro EILSEQ war in <cerrno> nicht definiert |
defined |