Errno

Description

Errno contains the definition for errno and the defines for the errno values.

Functions

int * sl_errno (void)
Errno function used with macro errno.

Macros

#define errno (* sl_errno ())
Macro for errno usage.
#define EPERM 1
Not owner.
#define ENOENT 2
No such file or directory.
#define ESRCH 3
No such process.
#define EINTR 4
Interrupted system call.
#define EIO 5
I/O error.
#define ENXIO 6
No such device or address.
#define E2BIG 7
Arguments list too long.
#define ENOEXEC 8
Exec format error.
#define EBADF 9
Bad file number.
#define ECHILD 10
No children.
#define EAGAIN 11
No more processes.
#define ENOMEM 12
Not enough space.
#define EACCES 13
Permission denied.
#define EFAULT 14
Bad address.
#define ENOTBLK 15
Block device required.
#define EBUSY 16
Device or resource busy.
#define EEXIST 17
File exists.
#define EXDEV 18
Cross-device link.
#define ENODEV 19
No such device.
#define ENOTDIR 20
Not a directory.
#define EISDIR 21
Is a directory.
#define EINVAL 22
Invalid argument.
#define ENFILE 23
Too many open files in system.
#define EMFILE 24
File descriptor value too large.
#define ENOTTY 25
Not a character device.
#define ETXTBSY 26
Text file busy.
#define EFBIG 27
File too large.
#define ENOSPC 28
No space left on device.
#define ESPIPE 29
Illegal seek.
#define EROFS 30
Read-only file system.
#define EMLINK 31
Too many links.
#define EPIPE 32
Broken pipe.
#define EDOM 33
Mathematics argument out of domain of function.
#define ERANGE 34
Result too large.
#define ENOMSG 35
No message of desired type.
#define EIDRM 36
Identifier removed.
#define EDEADLK 45
Deadlock.
#define ENOLCK 46
No lock.
#define ENOSTR 60
Not a stream.
#define ENODATA 61
No data (for no delay io)
#define ETIME 62
Stream ioctl timeout.
#define ENOSR 63
No stream resources.
#define ENOLINK 67
Virtual circuit is gone.
#define EPROTO 71
Protocol error.
#define EMULTIHOP 74
Multihop attempted.
#define EBADMSG 77
Bad message.
#define EFTYPE 79
Inappropriate file type or format.
#define ENOSYS 88
Function not implemented.
#define ENOTEMPTY 90
Directory not empty.
#define ENAMETOOLONG 91
File or path name too long.
#define ELOOP 92
Too many symbolic links.
#define EOPNOTSUPP 95
Operation not supported on socket.
#define EPFNOSUPPORT 96
Protocol family not supported.
#define ECONNRESET 104
Connection reset by peer.
#define ENOBUFS 105
No buffer space available.
#define EAFNOSUPPORT 106
Address family not supported by protocol family.
#define EPROTOTYPE 107
Protocol wrong type for socket.
#define ENOTSOCK 108
Socket operation on non-socket.
#define ENOPROTOOPT 109
Protocol not available.
#define ESHUTDOWN 110
Can't send after socket shutdown.
#define ECONNREFUSED 111
Connection refused.
#define EADDRINUSE 112
Address already in use.
#define ECONNABORTED 113
Software caused connection abort.
#define ENETUNREACH 114
Network is unreachable.
#define ENETDOWN 115
Network interface is not configured.
#define ETIMEDOUT 116
Connection timed out.
#define EHOSTDOWN 117
Host is down.
#define EHOSTUNREACH 118
Host is unreachable.
#define EINPROGRESS 119
Connection already in progress.
#define EALREADY 120
Socket already connected.
#define EDESTADDRREQ 121
Destination address required.
#define EMSGSIZE 122
Message too long.
#define EPROTONOSUPPORT 123
Unknown protocol.
#define ESOCKTNOSUPPORT 124
Socket type not supported.
#define EADDRNOTAVAIL 125
Address not available.
#define ENETRESET 126
Connection aborted by network.
#define EISCONN 127
Socket is already connected.
#define ENOTCONN 128
Socket is not connected.
#define ETOOMANYREFS 129
Too many references: can't splice.
#define ENOTSUP 134
Not supported.
#define EILSEQ 138
Illegal byte sequence.
#define EOVERFLOW 139
Value too large for defined data type.
#define ECANCELED 140
Operation canceled.
#define ENOTRECOVERABLE 141
State not recoverable.
#define EOWNERDEAD 142
Previous owner died.
#define EWOULDBLOCK EAGAIN
Operation would block.

Function Documentation

sl_errno()

int* sl_errno ( void )

Errno function used with macro errno.

Returns
Address of global variable used to store errno value

Macro Definition Documentation

errno

#define errno   (* sl_errno ())

Macro for errno usage.

Can be used to retrieve errno value and to assign errno value since function returns address of variable used to store errno value.

EPERM

#define EPERM   1

Not owner.

ENOENT

#define ENOENT   2

No such file or directory.

ESRCH

#define ESRCH   3

No such process.

EINTR

#define EINTR   4

Interrupted system call.

EIO

#define EIO   5

I/O error.

ENXIO

#define ENXIO   6

No such device or address.

E2BIG

#define E2BIG   7

Arguments list too long.

ENOEXEC

#define ENOEXEC   8

Exec format error.

EBADF

#define EBADF   9

Bad file number.

ECHILD

#define ECHILD   10

No children.

EAGAIN

#define EAGAIN   11

No more processes.

ENOMEM

#define ENOMEM   12

Not enough space.

EACCES

#define EACCES   13

Permission denied.

EFAULT

#define EFAULT   14

Bad address.

ENOTBLK

#define ENOTBLK   15

Block device required.

EBUSY

#define EBUSY   16

Device or resource busy.

EEXIST

#define EEXIST   17

File exists.

EXDEV

#define EXDEV   18

Cross-device link.

ENODEV

#define ENODEV   19

No such device.

ENOTDIR

#define ENOTDIR   20

Not a directory.

EISDIR

#define EISDIR   21

Is a directory.

EINVAL

#define EINVAL   22

Invalid argument.

ENFILE

#define ENFILE   23

Too many open files in system.

EMFILE

#define EMFILE   24

File descriptor value too large.

ENOTTY

#define ENOTTY   25

Not a character device.

ETXTBSY

#define ETXTBSY   26

Text file busy.

EFBIG

#define EFBIG   27

File too large.

ENOSPC

#define ENOSPC   28

No space left on device.

ESPIPE

#define ESPIPE   29

Illegal seek.

EROFS

#define EROFS   30

Read-only file system.

EMLINK

#define EMLINK   31

Too many links.

EPIPE

#define EPIPE   32

Broken pipe.

EDOM

#define EDOM   33

Mathematics argument out of domain of function.

ERANGE

#define ERANGE   34

Result too large.

ENOMSG

#define ENOMSG   35

No message of desired type.

EIDRM

#define EIDRM   36

Identifier removed.

EDEADLK

#define EDEADLK   45

Deadlock.

ENOLCK

#define ENOLCK   46

No lock.

ENOSTR

#define ENOSTR   60

Not a stream.

ENODATA

#define ENODATA   61

No data (for no delay io)

ETIME

#define ETIME   62

Stream ioctl timeout.

ENOSR

#define ENOSR   63

No stream resources.

ENOLINK

#define ENOLINK   67

Virtual circuit is gone.

EPROTO

#define EPROTO   71

Protocol error.

EMULTIHOP

#define EMULTIHOP   74

Multihop attempted.

EBADMSG

#define EBADMSG   77

Bad message.

EFTYPE

#define EFTYPE   79

Inappropriate file type or format.

ENOSYS

#define ENOSYS   88

Function not implemented.

ENOTEMPTY

#define ENOTEMPTY   90

Directory not empty.

ENAMETOOLONG

#define ENAMETOOLONG   91

File or path name too long.

ELOOP

#define ELOOP   92

Too many symbolic links.

EOPNOTSUPP

#define EOPNOTSUPP   95

Operation not supported on socket.

EPFNOSUPPORT

#define EPFNOSUPPORT   96

Protocol family not supported.

ECONNRESET

#define ECONNRESET   104

Connection reset by peer.

ENOBUFS

#define ENOBUFS   105

No buffer space available.

EAFNOSUPPORT

#define EAFNOSUPPORT   106

Address family not supported by protocol family.

EPROTOTYPE

#define EPROTOTYPE   107

Protocol wrong type for socket.

ENOTSOCK

#define ENOTSOCK   108

Socket operation on non-socket.

ENOPROTOOPT

#define ENOPROTOOPT   109

Protocol not available.

ESHUTDOWN

#define ESHUTDOWN   110

Can't send after socket shutdown.

ECONNREFUSED

#define ECONNREFUSED   111

Connection refused.

EADDRINUSE

#define EADDRINUSE   112

Address already in use.

ECONNABORTED

#define ECONNABORTED   113

Software caused connection abort.

ENETUNREACH

#define ENETUNREACH   114

Network is unreachable.

ENETDOWN

#define ENETDOWN   115

Network interface is not configured.

ETIMEDOUT

#define ETIMEDOUT   116

Connection timed out.

EHOSTDOWN

#define EHOSTDOWN   117

Host is down.

EHOSTUNREACH

#define EHOSTUNREACH   118

Host is unreachable.

EINPROGRESS

#define EINPROGRESS   119

Connection already in progress.

EALREADY

#define EALREADY   120

Socket already connected.

EDESTADDRREQ

#define EDESTADDRREQ   121

Destination address required.

EMSGSIZE

#define EMSGSIZE   122

Message too long.

EPROTONOSUPPORT

#define EPROTONOSUPPORT   123

Unknown protocol.

ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124

Socket type not supported.

EADDRNOTAVAIL

#define EADDRNOTAVAIL   125

Address not available.

ENETRESET

#define ENETRESET   126

Connection aborted by network.

EISCONN

#define EISCONN   127

Socket is already connected.

ENOTCONN

#define ENOTCONN   128

Socket is not connected.

ETOOMANYREFS

#define ETOOMANYREFS   129

Too many references: can't splice.

ENOTSUP

#define ENOTSUP   134

Not supported.

EILSEQ

#define EILSEQ   138

Illegal byte sequence.

EOVERFLOW

#define EOVERFLOW   139

Value too large for defined data type.

ECANCELED

#define ECANCELED   140

Operation canceled.

ENOTRECOVERABLE

#define ENOTRECOVERABLE   141

State not recoverable.

EOWNERDEAD

#define EOWNERDEAD   142

Previous owner died.

EWOULDBLOCK

#define EWOULDBLOCK EAGAIN

Operation would block.