◐ Shell
clean mode source ↗

Error numbers - cppreference.com

<metanoindex/>

Cada um dos macros definidas em <cerrno> expande para inteiros expressões constantes com int tipo, cada um com um valor positivo, a maior parte da correspondência POSIX error codes. As seguintes constantes são definidas (a implementação pode definir mais, desde que eles começam com 'E' seguido por dígitos ou letras maiúsculas)

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.

Defined in header <cerrno>

E2BIG

(C++11)

Lista de argumentos muito longa

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 constante)

EACCES

(C++11)

Permissão negada

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 constante)

EADDRINUSE

(C++11)

Endereço a ser utilizado

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 constante)

EADDRNOTAVAIL

(C++11)

Endereço não disponível

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 constante)

EAFNOSUPPORT

(C++11)

Família de endereços não suportada

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 constante)

EAGAIN

(C++11)

Recurso não disponível, tente novamente

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 constante)

EALREADY

(C++11)

Conexão já em andamento

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 constante)

EBADF

(C++11)

Descritor de arquivo ruim

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 constante)

EBADMSG

(C++11)

Mensagem ruim

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 constante)

EBUSY

(C++11)

Dispositivo ou recurso ocupado

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 constante)

ECANCELED

(C++11)

Operação cancelada

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 constante)

ECHILD

(C++11)

Nenhum processo filho

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 constante)

ECONNABORTED

(C++11)

Conexão abortada

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 constante)

ECONNREFUSED

(C++11)

Conexão recusada

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 constante)

ECONNRESET

(C++11)

Redefinição de conexão

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 constante)

EDEADLK

(C++11)

Impasse recurso iria ocorrer

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 constante)

EDESTADDRREQ

(C++11)

Endereço de destino necessário

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 constante)

EDOM

Matemática argumento fora do domínio da função

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 constante)

EEXIST

(C++11)

Arquivo 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.


(macro constante)

EFAULT

(C++11)

Endereço incorreto

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 constante)

EFBIG

(C++11)

Arquivo muito 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 constante)

EHOSTUNREACH

(C++11)

Host está inacessível

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 constante)

EIDRM

(C++11)

Identificador removido

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 constante)

EILSEQ

(C++11)

Seqüência de byte ilegal

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 constante)

EINPROGRESS

(C++11)

Operação em andamento

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 constante)

EINTR

(C++11)

Interrompida função

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 constante)

EINVAL

(C++11)

Argumento inválido

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 constante)

EIO

(C++11)

I / O erro

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 constante)

EISCONN

(C++11)

Soquete está conectado

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 constante)

EISDIR

(C++11)

É um diretório

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 constante)

ELOOP

(C++11)

Muitos níveis de links simbólicos

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 constante)

EMFILE

(C++11)

Valor do arquivo de descritor muito 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 constante)

EMLINK

(C++11)

Excesso de links

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 constante)

EMSGSIZE

(C++11)

Mensagem muito 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 constante)

ENAMETOOLONG

(C++11)

Filename demasiado longo

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 constante)

ENETDOWN

(C++11)

Rede é baixo

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 constante)

ENETRESET

(C++11)

Conexão abortada pela rede

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 constante)

ENETUNREACH

(C++11)

Rede inacessível

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 constante)

ENFILE

(C++11)

Muitos arquivos abertos no 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 constante)

ENOBUFS

(C++11)

No espaço de buffer disponível

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 constante)

ENODATA

(C++11)

Nenhuma mensagem disponível na fila de leitura STREAM cabeça

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 constante)

ENODEV

(C++11)

Tal dispositivo não

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 constante)

ENOENT

(C++11)

Não existe tal arquivo ou diretório

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 constante)

ENOEXEC

(C++11)

Executável erro de formato de arquivo

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 constante)

ENOLCK

(C++11)

Sem proteção disponível

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 constante)

ENOLINK

(C++11)

O link foi cortado

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 constante)

ENOMEM

(C++11)

Não há espaço suficiente

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 constante)

ENOMSG

(C++11)

Nenhuma mensagem do tipo desejado

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 constante)

ENOPROTOOPT

(C++11)

Protocolo não disponível

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 constante)

ENOSPC

(C++11)

Não há espaço no 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 constante)

ENOSR

(C++11)

Não há recursos córrego

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 constante)

ENOSTR

(C++11)

Não um córrego

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 constante)

ENOSYS

(C++11)

Função não suportada

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 constante)

ENOTCONN

(C++11)

O socket não está conectado

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 constante)

ENOTDIR

(C++11)

Não é um diretório

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 constante)

ENOTEMPTY

(C++11)

Diretório não vazio

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 constante)

ENOTRECOVERABLE

(C++11)

Estado não recuperável

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 constante)

ENOTSOCK

(C++11)

Não é um soquete

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 constante)

ENOTSUP

(C++11)

Não é suportado

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 constante)

ENOTTY

(C++11)

Inadequada operação de controle de 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.


(macro constante)

ENXIO

(C++11)

Nenhum dispositivo ou endereço

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 constante)

EOPNOTSUPP

(C++11)

Operação não suportada em soquete

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 constante)

EOVERFLOW

(C++11)

Valor demasiado grande para ser armazenado no tipo de dados

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 constante)

EOWNERDEAD

(C++11)

Dono anterior morreu

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 constante)

EPERM

(C++11)

Operação não permitida

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 constante)

EPIPE

(C++11)

Quebrado 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 constante)

EPROTO

(C++11)

Erro de protocolo

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 constante)

EPROTONOSUPPORT

(C++11)

Protocolo não suportado

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 constante)

EPROTOTYPE

(C++11)

Protocolo tipo errado para 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 constante)

ERANGE

Resultar muito 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 constante)

EROFS

(C++11)

Somente leitura do sistema de arquivos

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 constante)

ESPIPE

(C++11)

Inválido procuram

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 constante)

ESRCH

(C++11)

No processo

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 constante)

ETIME

(C++11)

Fluxo ioctl () de tempo limite

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 constante)

ETIMEDOUT

(C++11)

Conexão expirou

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 constante)

ETXTBSY

(C++11)

Arquivo de texto ocupado

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 constante)

EWOULDBLOCK

(C++11)

Operação bloquearia

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 constante)

EXDEV

(C++11)

Cross-device link

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 constante)

Todos os valores são necessários para ser única excepção de que os valores de EOPNOTSUPP ENOTSUP e podem ser idênticos e os valores de EAGAIN EWOULDBLOCK e podem ser idênticos

Original:

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 identical

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exemplo

#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';
    }
}

Saída:

log(-1) failed: Numerical argument out of domain

Veja também

(C++11)

enumeração std::error_condition listando todos os padrões <cerrno> constantes macro

Original:

the std::error_condition enumeration listing all standard <cerrno> macro constants

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(classe) [edit]

macro que se expande para POSIX compatível variable
(variável macro) número de segmento local de erro

Original:

macro which expands to POSIX-compatible thread-local error number variable
(variável macro)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]

exibe uma seqüência de caracteres correspondente do erro atual para 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.


(função) [edit]

retorna uma versão do texto de um código de erro apresentado

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.


(função) [edit]