Namespaces
Variants

Standard library header <cerrno>

From cppreference.net
Standard library headers

Cet en-tête était à l'origine dans la bibliothèque standard C sous le nom <errno.h> .

Cet en-tête fait partie de la bibliothèque de gestion d'erreurs .

Table des matières

Macros

macro qui s'étend à une variable de numéro d'erreur thread-local compatible POSIX
(macro variable)
E2BIG
(C++11)
Liste d'arguments trop longue
(constante macro)
EACCES
(C++11)
Permission refusée
(constante macro)
EADDRINUSE
(C++11)
Adresse déjà utilisée
(constante macro)
EADDRNOTAVAIL
(C++11)
Adresse non disponible
(constante macro)
EAFNOSUPPORT
(C++11)
Famille d'adresses non prise en charge
(constante macro)
EAGAIN
(C++11)
Ressource indisponible, réessayez
(constante macro)
EALREADY
(C++11)
Connexion déjà en cours
(constante macro)
EBADF
(C++11)
Descripteur de fichier incorrect
(constante macro)
EBADMSG
(C++11)
Message incorrect
(constante macro)
EBUSY
(C++11)
Périphérique ou ressource occupé
(constante macro)
ECANCELED
(C++11)
Opération annulée
(constante macro)
ECHILD
(C++11)
Aucun processus enfant
(constante macro)
ECONNABORTED
(C++11)
Connexion abandonnée
(constante macro)
ECONNREFUSED
(C++11)
Connexion refusée
(constante macro)
ECONNRESET
(C++11)
Connexion réinitialisée
(constante macro)
EDEADLK
(C++11)
Un interblocage de ressources se produirait
(constante macro)
EDESTADDRREQ
(C++11)
Adresse de destination requise
(constante macro)
EDOM
Argument mathématique hors du domaine de la fonction
(constante macro)
EEXIST
(C++11)
Fichier existe
(constante macro)
EFAULT
(C++11)
Adresse incorrecte
(constante macro)
EFBIG
(C++11)
Fichier trop volumineux
(constante macro)
EHOSTUNREACH
(C++11)
Hôte inaccessible
(constante macro)
EIDRM
(C++11)
Identifiant supprimé
(constante macro)
EILSEQ
Séquence d'octets illégale
(constante macro)
EINPROGRESS
(C++11)
Opération en cours
(macro constante)
EINTR
(C++11)
Fonction interrompue
(constante macro)
EINVAL
(C++11)
Argument invalide
(macro constante)
EIO
(C++11)
Erreur d'E/S
(constante macro)
EISCONN
(C++11)
Le socket est connecté
(constante macro)
EISDIR
(C++11)
Est un répertoire
(constante macro)
ELOOP
(C++11)
Trop de niveaux de liens symboliques
(constante macro)
EMFILE
(C++11)
Valeur du descripteur de fichier trop grande
(constante macro)
EMLINK
(C++11)
Trop de liens
(constante macro)
EMSGSIZE
(C++11)
Message trop volumineux
(constante macro)
ENAMETOOLONG
(C++11)
Nom de fichier trop long
(constante macro)
ENETDOWN
(C++11)
Réseau hors service
(constante macro)
ENETRESET
(C++11)
Connexion interrompue par le réseau
(constante macro)
ENETUNREACH
(C++11)
Réseau inaccessible
(constante macro)
ENFILE
(C++11)
Trop de fichiers ouverts dans le système
(constante macro)
ENOBUFS
(C++11)
Aucun espace tampon disponible
(constante macro)
ENODATA
(C++11) (obsolète depuis C++23)
Aucun message n'est disponible dans la file de lecture du flux principal
(constante macro)
ENODEV
(C++11)
Périphérique inexistant
(constante macro)
ENOENT
(C++11)
Fichier ou répertoire inexistant
(constante macro)
ENOEXEC
(C++11)
Erreur de format de fichier exécutable
(constante macro)
ENOLCK
(C++11)
Aucun verrou disponible
(constante macro)
ENOLINK
(C++11)
La liaison a été rompue
(constante macro)
ENOMEM
(C++11)
Espace insuffisant
(constante macro)
ENOMSG
(C++11)
Aucun message du type souhaité
(macro constant)
ENOPROTOOPT
(C++11)
Protocole non disponible
(constante macro)
ENOSPC
(C++11)
Espace insuffisant sur le périphérique
(constante macro)
ENOSR
(C++11) (obsolète en C++23)
Aucune ressource STREAM
(constante macro)
ENOSTR
(C++11) (obsolète depuis C++23)
Pas un STREAM
(constante macro)
ENOSYS
(C++11)
Fonction non supportée
(constante macro)
ENOTCONN
(C++11)
Le socket n'est pas connecté
(constante macro)
ENOTDIR
(C++11)
N'est pas un répertoire
(constante macro)
ENOTEMPTY
(C++11)
Répertoire non vide
(constante macro)
ENOTRECOVERABLE
(C++11)
État non récupérable
(constante macro)
ENOTSOCK
(C++11)
N'est pas un socket
(constante macro)
ENOTSUP
(C++11)
Non supporté
(constante macro)
ENOTTY
(C++11)
Opération de contrôle d'E/S inappropriée
(constante macro)
ENXIO
(C++11)
Aucun périphérique ou adresse de ce type
(constante macro)
EOPNOTSUPP
(C++11)
Opération non supportée sur la socket
(constante macro)
EOVERFLOW
(C++11)
Valeur trop grande pour être stockée dans le type de données
(constante macro)
EOWNERDEAD
(C++11)
Propriétaire précédent décédé
(constante macro)
EPERM
(C++11)
Opération non permise
(constante macro)
EPIPE
(C++11)
Conduite rompue
(constante macro)
EPROTO
(C++11)
Erreur de protocole
(constante macro)
EPROTONOSUPPORT
(C++11)
Protocole non pris en charge
(constante macro)
EPROTOTYPE
(C++11)
Protocole de type incorrect pour la socket
(constante macro)
ERANGE
Résultat trop grand
(macro constante)
EROFS
(C++11)
Système de fichiers en lecture seule
(constante macro)
ESPIPE
(C++11)
Recherche invalide
(constante macro)
ESRCH
(C++11)
Aucun processus de ce type
(constante macro)
ETIME
(C++11) (obsolète en C++23)
Délai d'expiration du ioctl() de flux
(constante macro)
ETIMEDOUT
(C++11)
Connexion expirée
(constante macro)
ETXTBSY
(C++11)
Fichier texte occupé
(constante macro)
EWOULDBLOCK
(C++11)
L'opération bloquerait
(constante macro)
EXDEV
(C++11)
Lien inter-périphérique
(constante macro)

Notes

Bien que l'en-tête <cerrno> soit basé sur l'en-tête de la bibliothèque standard C <errno.h> , la majorité des macros définies par <cerrno> ont été adoptées par le C++ à partir de la norme POSIX, plutôt que de la bibliothèque standard C.

Synopsis

#define errno /* voir description */
#define E2BIG /* voir description */           // freestanding
#define EACCES /* voir description */          // freestanding
#define EADDRINUSE /* voir description */      // freestanding
#define EADDRNOTAVAIL /* voir description */   // freestanding
#define EAFNOSUPPORT /* voir description */    // freestanding
#define EAGAIN /* voir description */          // freestanding
#define EALREADY /* voir description */        // freestanding
#define EBADF /* voir description */           // freestanding
#define EBADMSG /* voir description */         // freestanding
#define EBUSY /* voir description */           // freestanding
#define ECANCELED /* voir description */       // freestanding
#define ECHILD /* voir description */          // freestanding
#define ECONNABORTED /* voir description */    // freestanding
#define ECONNREFUSED /* voir description */    // freestanding
#define ECONNRESET /* voir description */      // freestanding
#define EDEADLK /* voir description */         // freestanding
#define EDESTADDRREQ /* voir description */    // freestanding
#define EDOM /* voir description */            // freestanding
#define EEXIST /* voir description */          // freestanding
#define EFAULT /* voir description */          // freestanding
#define EFBIG /* voir description */           // freestanding
#define EHOSTUNREACH /* voir description */    // freestanding
#define EIDRM /* voir description */           // freestanding
#define EILSEQ /* voir description */          // freestanding
#define EINPROGRESS /* voir description */     // freestanding
#define EINTR /* voir description */           // freestanding
#define EINVAL /* voir description */          // freestanding
#define EIO /* voir description */             // freestanding
#define EISCONN /* voir description */         // freestanding
#define EISDIR /* voir description */          // freestanding
#define ELOOP /* voir description */           // freestanding
#define EMFILE /* voir description */          // freestanding
#define EMLINK /* voir description */          // freestanding
#define EMSGSIZE /* voir description */        // freestanding
#define ENAMETOOLONG /* voir description */    // freestanding
#define ENETDOWN /* voir description */        // freestanding
#define ENETRESET /* voir description */       // freestanding
#define ENETUNREACH /* voir description */     // freestanding
#define ENFILE /* voir description */          // freestanding
#define ENOBUFS /* voir description */         // freestanding
#define ENODEV /* voir description */          // freestanding
#define ENOENT /* voir description */          // freestanding
#define ENOEXEC /* voir description */         // freestanding
#define ENOLCK /* voir description */          // freestanding
#define ENOLINK /* voir description */         // freestanding
#define ENOMEM /* voir description */          // freestanding
#define ENOMSG /* voir description */          // freestanding
#define ENOPROTOOPT /* voir description */     // freestanding
#define ENOSPC /* voir description */          // freestanding
#define ENOSYS /* voir description */          // freestanding
#define ENOTCONN /* voir description */        // freestanding
#define ENOTDIR /* voir description */         // freestanding
#define ENOTEMPTY /* voir description */       // freestanding
#define ENOTRECOVERABLE /* voir description */ // freestanding
#define ENOTSOCK /* voir description */        // freestanding
#define ENOTSUP /* voir description */         // freestanding
#define ENOTTY /* voir description */          // freestanding
#define ENXIO /* voir description */           // freestanding
#define EOPNOTSUPP /* voir description */      // freestanding
#define EOVERFLOW /* voir description */       // freestanding
#define EOWNERDEAD /* voir description */      // freestanding
#define EPERM /* voir description */           // freestanding
#define EPIPE /* voir description */           // freestanding
#define EPROTO /* voir description */          // freestanding
#define EPROTONOSUPPORT /* voir description */ // freestanding
#define EPROTOTYPE /* voir description */      // freestanding
#define ERANGE /* voir description */          // freestanding
#define EROFS /* voir description */           // freestanding
#define ESPIPE /* voir description */          // freestanding
#define ESRCH /* voir description */           // freestanding
#define ETIMEDOUT /* voir description */       // freestanding
#define ETXTBSY /* voir description */         // freestanding
#define EWOULDBLOCK /* voir description */     // freestanding
#define EXDEV /* voir description */           // freestanding

Rapports de défauts

Les rapports de défauts modifiant le comportement suivants ont été appliqués rétroactivement aux normes C++ précédemment publiées.

DR S'applique à Comportement publié Comportement corrigé
LWG 288 C++98 la macro EILSEQ n'était pas définie dans <cerrno> définie

Voir aussi