Error numbers
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Chacune des macros définies dans
<cerrno>
se développe en entier avec des expressions constantes int type, chacune avec une valeur positive, ce qui correspond la plupart du POSIX error codes. Les constantes suivantes sont définies (la mise en œuvre peut définir plus, tant qu'ils commencent par 'E' suivi de chiffres ou de lettres majuscules)Original:
Each of the macros defined in
<cerrno>
expands to integer constant expressions with type int, each with a positive value, matching most of the POSIX error codes. The following constants are defined (the implementation may define more, as long as they begin with 'E' followed by digits or uppercase letters)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header
<cerrno> | |
E2BIG (C++11) |
Argument list too long Original: Argument list too long The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EACCES (C++11) |
Permission denied Original: Permission denied The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EADDRINUSE (C++11) |
Adresse en cours d'utilisation Original: Address in use The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EADDRNOTAVAIL (C++11) |
Adresse non disponible Original: Address not available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EAFNOSUPPORT (C++11) |
Famille d'adresse non pris en charge Original: Address family not supported The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EAGAIN (C++11) |
Ressource indisponible, réessayez Original: Resource unavailable, try again The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EALREADY (C++11) |
Connexion déjà en cours Original: Connection already in progress The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EBADF (C++11) |
Descripteur de fichier incorrect Original: Bad file descriptor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EBADMSG (C++11) |
Mauvais message Original: Bad message The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EBUSY (C++11) |
Périphérique ou ressource occupé Original: Device or resource busy The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ECANCELED (C++11) |
Opération annulée Original: Operation canceled The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ECHILD (C++11) |
Aucun processus enfant Original: No child processes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ECONNABORTED (C++11) |
Connexion interrompue Original: Connection aborted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ECONNREFUSED (C++11) |
Connexion refusée Original: Connection refused The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ECONNRESET (C++11) |
Réinitialisation de la connexion Original: Connection reset The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EDEADLK (C++11) |
Impasse des ressources se produirait Original: Resource deadlock would occur The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EDESTADDRREQ (C++11) |
Adresse de destination requise Original: Destination address required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EDOM |
Mathématiques arguments hors du domaine de la fonction Original: Mathematics argument out of domain of function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EEXIST (C++11) |
Le fichier existe Original: File exists The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EFAULT (C++11) |
Mauvaise adresse Original: Bad address The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EFBIG (C++11) |
Fichier trop grand Original: File too large The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EHOSTUNREACH (C++11) |
Hôte est inaccessible Original: Host is unreachable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EIDRM (C++11) |
Identifiant supprimé Original: Identifier removed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EILSEQ (C++11) |
Séquence d'octets illégale Original: Illegal byte sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EINPROGRESS (C++11) |
Opération en cours Original: Operation in progress The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EINTR (C++11) |
Interrompu fonction Original: Interrupted function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EINVAL (C++11) |
Invalid argument Original: Invalid argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EIO (C++11) |
I / O error Original: I/O error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EISCONN (C++11) |
Socket est connecté Original: Socket is connected The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EISDIR (C++11) |
C'est un dossier Original: Is a directory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ELOOP (C++11) |
Trop de niveaux de liens symboliques Original: Too many levels of symbolic links The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EMFILE (C++11) |
Valeur du descripteur de fichier trop volumineux Original: File descriptor value too large The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EMLINK (C++11) |
Trop de liens Original: Too many links The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EMSGSIZE (C++11) |
Message trop grand Original: Message too large The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENAMETOOLONG (C++11) |
Nom de fichier trop long Original: Filename too long The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENETDOWN (C++11) |
Réseau est en panne Original: Network is down The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENETRESET (C++11) |
Connexion a été avortée par le réseau Original: Connection aborted by network The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENETUNREACH (C++11) |
Réseau injoignable Original: Network unreachable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENFILE (C++11) |
Trop de fichiers ouverts dans le système Original: Too many files open in system The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOBUFS (C++11) |
Pas d'espace tampon disponible Original: No buffer space available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENODATA (C++11) |
Aucun message n'est disponible sur la file d'attente de lecture STREAM tête Original: No message is available on the STREAM head read queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENODEV (C++11) |
No such device Original: No such device The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOENT (C++11) |
Aucun fichier ou répertoire Original: No such file or directory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOEXEC (C++11) |
Erreur de format de fichier exécutable Original: Executable file format error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOLCK (C++11) |
Aucun verrou disponible Original: No locks available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOLINK (C++11) |
Lien a été coupé Original: Link has been severed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOMEM (C++11) |
Pas assez d'espace Original: Not enough space The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOMSG (C++11) |
Aucun message du type désiré Original: No message of the desired type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOPROTOOPT (C++11) |
Protocole ne sont pas disponibles Original: Protocol not available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOSPC (C++11) |
Pas d'espace disponible sur le périphérique Original: No space left on device The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOSR (C++11) |
Aucune ressource de flux Original: No STREAM resources The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOSTR (C++11) |
Pas STREAM Original: Not a STREAM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOSYS (C++11) |
Cette fonction n'est pas pris en charge Original: Function not supported The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTCONN (C++11) |
Le socket n'est pas connectée Original: The socket is not connected The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTDIR (C++11) |
Pas un répertoire Original: Not a directory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTEMPTY (C++11) |
Répertoire non vide Original: Directory not empty The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTRECOVERABLE (C++11) |
Etat qui n'est pas récupérable Original: State not recoverable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTSOCK (C++11) |
Pas une socket Original: Not a socket The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTSUP (C++11) |
Non pris en charge Original: Not supported The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENOTTY (C++11) |
Application inappropriée de contrôle d'E / S Original: Inappropriate I/O control operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ENXIO (C++11) |
Aucun dispositif ni aucune adresse Original: No such device or address The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EOPNOTSUPP (C++11) |
L'opération n'est pas prise en charge sur prise de courant Original: Operation not supported on socket The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EOVERFLOW (C++11) |
Valeur trop grande pour être stockée dans le type de données Original: Value too large to be stored in data type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EOWNERDEAD (C++11) |
Précédent propriétaire est décédé Original: Previous owner died The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EPERM (C++11) |
Opération non permise Original: Operation not permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EPIPE (C++11) |
Brisé tuyau Original: Broken pipe The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EPROTO (C++11) |
Erreur de protocole Original: Protocol error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EPROTONOSUPPORT (C++11) |
Protocole non supporté Original: Protocol not supported The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EPROTOTYPE (C++11) |
Type de protocole incorrect pour le socket Original: Protocol wrong type for socket The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ERANGE |
Résultat trop grand Original: Result too large The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EROFS (C++11) |
En lecture seule du système de fichiers Original: Read-only file system The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ESPIPE (C++11) |
Invalid chercher Original: Invalid seek The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ESRCH (C++11) |
Ce processus n'existe pas Original: No such process The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ETIME (C++11) |
Flux de ioctl () de temporisation Original: Stream ioctl() timeout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ETIMEDOUT (C++11) |
Connection timed out Original: Connection timed out The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
ETXTBSY (C++11) |
Fichier texte occupé Original: Text file busy The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EWOULDBLOCK (C++11) |
Opération devait bloquer Original: Operation would block The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
EXDEV (C++11) |
Croix-dispositif de liaison Original: Cross-device link The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante macro) |
Toutes les valeurs doivent être uniques à l'exception que les valeurs de
EOPNOTSUPP
et ENOTSUP
peuvent être identiques et les valeurs de EAGAIN
et EWOULDBLOCK
peuvent être identiquesOriginal:
All values are required to be unique except that the values of
EOPNOTSUPP
and ENOTSUP
may be identical and the values of EAGAIN
and EWOULDBLOCK
may be identicalThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Exemple
#include <iostream> #include <cmath> #include <cerrno> #include <cstring> int main() { double not_a_number = std::log(-1.0); if (errno == EDOM) { std::cout << "log(-1) failed: " << std::strerror(errno) << '\n'; } }
Résultat :
log(-1) failed: Numerical argument out of domain
[modifier] Voir aussi
(C++11) |
l'énumération std::error_condition liste de tous les standards <cerrno> constantes macroOriginal: the std::error_condition enumeration listing all standard <cerrno> macro constantsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
macro qui se développe pour compatible POSIX thread local variable
( variable de macro ) numéro d'erreur Original: macro variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. Original: macro which expands to POSIX-compatible thread-local error number variable ( variable de macro ) Original: macro variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
affiche une chaîne de caractères correspondant de l'erreur de courant à stderr Original: displays a character string corresponding of the current error to stderr The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
renvoie une version texte d'un code d'erreur indiqué Original: returns a text version of a given error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |