Error numbers
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Ciascuna delle macro definite in
<cerrno>
espande per interi espressioni costanti con int tipo, ciascuna con un valore positivo, la maggior parte della corrispondenza POSIX error codes. Le costanti sono (l'implementazione può definire più, purché cominciare 'E' seguita da cifre o lettere maiuscole)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.
Definizione nell'header <cerrno> | |
E2BIG (C++11) | Argomento elenco troppo lungo 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. (macro costante) |
EACCES (C++11) | Autorizzazione negata 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. (macro costante) |
EADDRINUSE (C++11) | Indirizzo in uso 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. (macro costante) |
EADDRNOTAVAIL (C++11) | Indirizzo non disponibile 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. (macro costante) |
EAFNOSUPPORT (C++11) | Famiglia di indirizzi non supportata 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. (macro costante) |
EAGAIN (C++11) | Risorsa non disponibile, riprovare 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. (macro costante) |
EALREADY (C++11) | Connessione già in corso 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. (macro costante) |
EBADF (C++11) | Descrittore di file non valido 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. (macro costante) |
EBADMSG (C++11) | Messaggio di Bad 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. (macro costante) |
EBUSY (C++11) | Dispositivo o risorsa occupata 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. (macro costante) |
ECANCELED (C++11) | Operazione annullata 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. (macro costante) |
ECHILD (C++11) | Nessun bambino processi 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. (macro costante) |
ECONNABORTED (C++11) | Collegamento interrotto 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. (macro costante) |
ECONNREFUSED (C++11) | Connessione rifiutata 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. (macro costante) |
ECONNRESET (C++11) | Connection reset 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. (macro costante) |
EDEADLK (C++11) | Deadlock delle risorse si sarebbe verificato 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. (macro costante) |
EDESTADDRREQ (C++11) | Indirizzo di destinazione richiesto 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. (macro costante) |
EDOM | Matematica argomento di dominio della funzione 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. (macro costante) |
EEXIST (C++11) | Il file esiste 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. (macro costante) |
EFAULT (C++11) | Indirizzo non valido 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. (macro costante) |
EFBIG (C++11) | File troppo grande 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. (macro costante) |
EHOSTUNREACH (C++11) | Host non è raggiungibile 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. (macro costante) |
EIDRM (C++11) | Identificatore rimosso 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. (macro costante) |
EILSEQ (C++11) | Sequenza di byte non valida 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. (macro costante) |
EINPROGRESS (C++11) | Operazione in corso 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. (macro costante) |
EINTR (C++11) | Interrotto funzione 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. (macro costante) |
EINVAL (C++11) | Argomento non valido 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. (macro costante) |
EIO (C++11) | Errore di I / O 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. (macro costante) |
EISCONN (C++11) | Socket è collegato 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. (macro costante) |
EISDIR (C++11) | È una directory 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. (macro costante) |
ELOOP (C++11) | Troppi livelli di collegamenti simbolici 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. (macro costante) |
EMFILE (C++11) | File descrittore di valore troppo grande 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. (macro costante) |
EMLINK (C++11) | Troppi collegamenti 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. (macro costante) |
EMSGSIZE (C++11) | Messaggio troppo grande 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. (macro costante) |
ENAMETOOLONG (C++11) | Nome del file troppo lungo 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. (macro costante) |
ENETDOWN (C++11) | Rete inattiva 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. (macro costante) |
ENETRESET (C++11) | Connessione interrotta dalla rete 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. (macro costante) |
ENETUNREACH (C++11) | Rete non raggiungibile 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. (macro costante) |
ENFILE (C++11) | Troppi file aperti nel sistema 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. (macro costante) |
ENOBUFS (C++11) | Nessuno spazio di buffer disponibile 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. (macro costante) |
ENODATA (C++11) | Nessun messaggio è disponibile nella coda di lettura STREAM testa 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. (macro costante) |
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. (macro costante) |
ENOENT (C++11) | Nessun file o directory 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. (macro costante) |
ENOEXEC (C++11) | File eseguibile errore di formato 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. (macro costante) |
ENOLCK (C++11) | Non blocca disponibile 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. (macro costante) |
ENOLINK (C++11) | Il link è stato reciso 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. (macro costante) |
ENOMEM (C++11) | Non abbastanza spazio 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. (macro costante) |
ENOMSG (C++11) | Nessun messaggio del tipo desiderato 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. (macro costante) |
ENOPROTOOPT (C++11) | Protocollo non disponibile 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. (macro costante) |
ENOSPC (C++11) | Spazio esaurito sul dispositivo 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. (macro costante) |
ENOSR (C++11) | Nessun STREAM risorse 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. (macro costante) |
ENOSTR (C++11) | Non un 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. (macro costante) |
ENOSYS (C++11) | Funzione non supportata 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. (macro costante) |
ENOTCONN (C++11) | La presa non è collegata 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. (macro costante) |
ENOTDIR (C++11) | Non è una directory 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. (macro costante) |
ENOTEMPTY (C++11) | Directory non vuota 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. (macro costante) |
ENOTRECOVERABLE (C++11) | Stato non dar luogo a rifusione 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. (macro costante) |
ENOTSOCK (C++11) | Non è una presa di corrente 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. (macro costante) |
ENOTSUP (C++11) | Non supportato 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. (macro costante) |
ENOTTY (C++11) | Inappropriato controllo I / O funzionamento 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. (macro costante) |
ENXIO (C++11) | No such device o l'indirizzo 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. (macro costante) |
EOPNOTSUPP (C++11) | Operazione non supportata su socket 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. (macro costante) |
EOVERFLOW (C++11) | Valore troppo grande per essere memorizzato nel tipo di dati 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. (macro costante) |
EOWNERDEAD (C++11) | Proprietario precedente è morto 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. (macro costante) |
EPERM (C++11) | Operazione non consentita 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. (macro costante) |
EPIPE (C++11) | Rotto tubo 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. (macro costante) |
EPROTO (C++11) | Errore di protocollo 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. (macro costante) |
EPROTONOSUPPORT (C++11) | Protocollo non supportato 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. (macro costante) |
EPROTOTYPE (C++11) | Tipo di protocollo errato per il 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. (macro costante) |
ERANGE | Risultato troppo grande 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. (macro costante) |
EROFS (C++11) | Read-only file system 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. (macro costante) |
ESPIPE (C++11) | Ricerca non valida 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. (macro costante) |
ESRCH (C++11) | Il processo non è 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. (macro costante) |
ETIME (C++11) | Flusso ioctl () timeout 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. (macro costante) |
ETIMEDOUT (C++11) | Connessione scaduta 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. (macro costante) |
ETXTBSY (C++11) | File di testo occupato 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. (macro costante) |
EWOULDBLOCK (C++11) | Operazione verrà bloccata 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. (macro costante) |
EXDEV (C++11) | Cross-dispositivo di collegamento 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. (macro costante) |
Tutti i valori devono essere unica differenza che i valori di
EOPNOTSUPP
ENOTSUP
e possono essere identici ed i valori di EAGAIN
EWOULDBLOCK
e possono essere identiciOriginal:
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.
[modifica]Esempio
#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';}}
Output:
log(-1) failed: Numerical argument out of domain
[modifica]Vedi anche
(C++11) | l'enumerazione std::error_condition elenco di tutti gli standard <cerrno> costanti 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 che si espande a POSIX thread locale variable (variabili macro) Numero di errore Original: macro which expands to POSIX-compatible thread-local error number variable (variabili macro) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
visualizza una stringa di caratteri del corrispondente errore di corrente 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. (funzione) | |
restituisce una versione di testo di un codice di errore visualizzato 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. (funzione) |