#include <sys/errno.h>

sys/errno.h

110 macros · 1 function

function__error

extern int * __error(void)

macroerrno

#define errno (*__error())

macroEPERM

#define EPERM 1
Operation not permitted

macroENOENT

#define ENOENT 2
No such file or directory

macroESRCH

#define ESRCH 3
No such process

macroEINTR

#define EINTR 4
Interrupted system call

macroEIO

#define EIO 5
Input/output error

macroENXIO

#define ENXIO 6
Device not configured

macroE2BIG

#define E2BIG 7
Argument list too long

macroENOEXEC

#define ENOEXEC 8
Exec format error

macroEBADF

#define EBADF 9
Bad file descriptor

macroECHILD

#define ECHILD 10
No child processes

macroEDEADLK

#define EDEADLK 11
Resource deadlock avoided

macroENOMEM

11 was EAGAIN
#define ENOMEM 12
Cannot allocate memory

macroEACCES

#define EACCES 13
Permission denied

macroEFAULT

#define EFAULT 14
Bad address

macroENOTBLK

#define ENOTBLK 15
Block device required

macroEBUSY

#define EBUSY 16
Device / Resource busy

macroEEXIST

#define EEXIST 17
File exists

macroEXDEV

#define EXDEV 18
Cross-device link

macroENODEV

#define ENODEV 19
Operation not supported by device

macroENOTDIR

#define ENOTDIR 20
Not a directory

macroEISDIR

#define EISDIR 21
Is a directory

macroEINVAL

#define EINVAL 22
Invalid argument

macroENFILE

#define ENFILE 23
Too many open files in system

macroEMFILE

#define EMFILE 24
Too many open files

macroENOTTY

#define ENOTTY 25
Inappropriate ioctl for device

macroETXTBSY

#define ETXTBSY 26
Text file busy

macroEFBIG

#define EFBIG 27
File too large

macroENOSPC

#define ENOSPC 28
No space left on device

macroESPIPE

#define ESPIPE 29
Illegal seek

macroEROFS

#define EROFS 30
Read-only file system

macroEPIPE

#define EPIPE 32
Broken pipe

macroEDOM

math software
#define EDOM 33
Numerical argument out of domain

macroERANGE

#define ERANGE 34
Result too large

macroEAGAIN

non-blocking and interrupt i/o
#define EAGAIN 35
Resource temporarily unavailable

macroEWOULDBLOCK

#define EWOULDBLOCK EAGAIN
Operation would block

macroEINPROGRESS

#define EINPROGRESS 36
Operation now in progress

macroEALREADY

#define EALREADY 37
Operation already in progress

macroENOTSOCK

ipc/network software -- argument errors
#define ENOTSOCK 38
Socket operation on non-socket

macroEDESTADDRREQ

#define EDESTADDRREQ 39
Destination address required

macroEMSGSIZE

#define EMSGSIZE 40
Message too long

macroEPROTOTYPE

#define EPROTOTYPE 41
Protocol wrong type for socket

macroENOPROTOOPT

#define ENOPROTOOPT 42
Protocol not available

macroEPROTONOSUPPORT

#define EPROTONOSUPPORT 43
Protocol not supported

macroESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT 44
Socket type not supported

macroENOTSUP

#define ENOTSUP 45
Operation not supported

macroEPFNOSUPPORT

#define EPFNOSUPPORT 46
Protocol family not supported

macroEAFNOSUPPORT

#define EAFNOSUPPORT 47
Address family not supported by protocol family

macroEADDRINUSE

#define EADDRINUSE 48
Address already in use

macroEADDRNOTAVAIL

#define EADDRNOTAVAIL 49
Can't assign requested address

macroENETDOWN

ipc/network software -- operational errors
#define ENETDOWN 50
Network is down

macroENETUNREACH

#define ENETUNREACH 51
Network is unreachable

macroENETRESET

#define ENETRESET 52
Network dropped connection on reset

macroECONNABORTED

#define ECONNABORTED 53
Software caused connection abort

macroECONNRESET

#define ECONNRESET 54
Connection reset by peer

macroENOBUFS

#define ENOBUFS 55
No buffer space available

macroEISCONN

#define EISCONN 56
Socket is already connected

macroENOTCONN

#define ENOTCONN 57
Socket is not connected

macroESHUTDOWN

#define ESHUTDOWN 58
Can't send after socket shutdown

macroETOOMANYREFS

#define ETOOMANYREFS 59
Too many references: can't splice

macroETIMEDOUT

#define ETIMEDOUT 60
Operation timed out

macroECONNREFUSED

#define ECONNREFUSED 61
Connection refused

macroELOOP

#define ELOOP 62
Too many levels of symbolic links

macroENAMETOOLONG

#define ENAMETOOLONG 63
File name too long

macroEHOSTDOWN

should be rearranged
#define EHOSTDOWN 64
Host is down

macroEHOSTUNREACH

#define EHOSTUNREACH 65
No route to host

macroENOTEMPTY

#define ENOTEMPTY 66
Directory not empty

macroEPROCLIM

quotas & mush
#define EPROCLIM 67
Too many processes

macroEUSERS

#define EUSERS 68
Too many users

macroEDQUOT

#define EDQUOT 69
Disc quota exceeded

macroESTALE

Network File System
#define ESTALE 70
Stale NFS file handle

macroEREMOTE

#define EREMOTE 71
Too many levels of remote in path

macroEBADRPC

#define EBADRPC 72
RPC struct is bad

macroERPCMISMATCH

#define ERPCMISMATCH 73
RPC version wrong

macroEPROGUNAVAIL

#define EPROGUNAVAIL 74
RPC prog. not avail

macroEPROGMISMATCH

#define EPROGMISMATCH 75
Program version wrong

macroEPROCUNAVAIL

#define EPROCUNAVAIL 76
Bad procedure for program

macroENOLCK

#define ENOLCK 77
No locks available

macroENOSYS

#define ENOSYS 78
Function not implemented

macroEFTYPE

#define EFTYPE 79
Inappropriate file type or format

macroEAUTH

#define EAUTH 80
Authentication error

macroENEEDAUTH

#define ENEEDAUTH 81
Need authenticator

macroEPWROFF

Intelligent device errors
#define EPWROFF 82
Device power is off

macroEDEVERR

#define EDEVERR 83
Device error, e.g. paper out

macroEOVERFLOW

#define EOVERFLOW 84
Value too large to be stored in data type

macroEBADEXEC

Program loading errors
#define EBADEXEC 85
Bad executable

macroEBADARCH

#define EBADARCH 86
Bad CPU type in executable

macroESHLIBVERS

#define ESHLIBVERS 87
Shared library version mismatch

macroEBADMACHO

#define EBADMACHO 88
Malformed Macho file

macroECANCELED

#define ECANCELED 89
Operation canceled

macroEIDRM

#define EIDRM 90
Identifier removed

macroENOMSG

#define ENOMSG 91
No message of desired type

macroEILSEQ

#define EILSEQ 92
Illegal byte sequence

macroENOATTR

#define ENOATTR 93
Attribute not found

macroEBADMSG

#define EBADMSG 94
Bad message

macroEMULTIHOP

#define EMULTIHOP 95
Reserved

macroENODATA

#define ENODATA 96
No message available on STREAM

macroENOSR

#define ENOSR 98
No STREAM resources

macroENOSTR

#define ENOSTR 99
Not a STREAM

macroEPROTO

#define EPROTO 100
Protocol error

macroETIME

#define ETIME 101
STREAM ioctl timeout

macroEOPNOTSUPP

This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL
#define EOPNOTSUPP 102
Operation not supported on socket

macroENOPOLICY

#define ENOPOLICY 103
No such policy registered

macroENOTRECOVERABLE

#define ENOTRECOVERABLE 104
State not recoverable

macroEOWNERDEAD

#define EOWNERDEAD 105
Previous owner died

macroEQFULL

#define EQFULL 106
Interface output queue is full

macroENOTCAPABLE

#define ENOTCAPABLE 107
Capabilities insufficient

macroELAST

#define ELAST 107
Must be equal largest errno