Fennix  1.0.0
Full Documentation
Loading...
Searching...
No Matches
errno.h File Reference

Go to the source code of this file.

Macros

#define EOK   0
 
#define E2BIG   1
 
#define EACCES   2
 
#define EADDRINUSE   3
 
#define EADDRNOTAVAIL   4
 
#define EAFNOSUPPORT   5
 
#define EAGAIN   6
 
#define EALREADY   7
 
#define EBADF   8
 
#define EBADMSG   9
 
#define EBUSY   10
 
#define ECANCELED   11
 
#define ECHILD   12
 
#define ECONNABORTED   13
 
#define ECONNREFUSED   14
 
#define ECONNRESET   15
 
#define EDEADLK   16
 
#define EDESTADDRREQ   17
 
#define EDOM   18
 
#define EDQUOT   19
 
#define EEXIST   20
 
#define EFAULT   21
 
#define EFBIG   22
 
#define EHOSTUNREACH   23
 
#define EIDRM   24
 
#define EILSEQ   25
 
#define EINPROGRESS   26
 
#define EINTR   27
 
#define EINVAL   28
 
#define EIO   29
 
#define EISCONN   30
 
#define EISDIR   31
 
#define ELOOP   32
 
#define EMFILE   33
 
#define EMLINK   34
 
#define EMSGSIZE   35
 
#define EMULTIHOP   36
 
#define ENAMETOOLONG   37
 
#define ENETDOWN   38
 
#define ENETRESET   39
 
#define ENETUNREACH   40
 
#define ENFILE   41
 
#define ENOBUFS   42
 
#define ENODATA   43
 
#define ENODEV   44
 
#define ENOENT   45
 
#define ENOEXEC   46
 
#define ENOLCK   47
 
#define ENOLINK   48
 
#define ENOMEM   49
 
#define ENOMSG   50
 
#define ENOPROTOOPT   51
 
#define ENOSPC   52
 
#define ENOSR   53
 
#define ENOSTR   54
 
#define ENOSYS   55
 
#define ENOTCONN   56
 
#define ENOTDIR   57
 
#define ENOTEMPTY   58
 
#define ENOTRECOVERABLE   59
 
#define ENOTSOCK   60
 
#define ENOTSUP   61
 
#define ENOTTY   62
 
#define ENXIO   63
 
#define EOPNOTSUPP   64
 
#define EOVERFLOW   65
 
#define EOWNERDEAD   66
 
#define EPERM   67
 
#define EPIPE   68
 
#define EPROTO   69
 
#define EPROTONOSUPPORT   70
 
#define EPROTOTYPE   71
 
#define ERANGE   72
 
#define EROFS   73
 
#define ESPIPE   74
 
#define ESRCH   75
 
#define ESTALE   76
 
#define ETIME   77
 
#define ETIMEDOUT   78
 
#define ETXTBSY   79
 
#define EWOULDBLOCK   80
 
#define EXDEV   81
 

Macro Definition Documentation

◆ E2BIG

#define E2BIG   1

Argument list too long. The sum of the number of bytes used by the new process image's argument list and environment list is greater than the system-imposed limit of {ARG_MAX} bytes. or: Lack of space in an output buffer. or: Argument is greater than the system-imposed maximum.

Definition at line 43 of file errno.h.

◆ EACCES

#define EACCES   2

Permission denied. An attempt was made to access a file in a way forbidden by its file access permissions.

Definition at line 49 of file errno.h.

◆ EADDRINUSE

#define EADDRINUSE   3

Address in use. The specified address is in use.

Definition at line 54 of file errno.h.

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   4

Address not available. The specified address is not available from the local system.

Definition at line 60 of file errno.h.

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   5

Address family not supported. The implementation does not support the specified address family, or the specified address is not a valid address for the address family of the specified socket.

Definition at line 67 of file errno.h.

◆ EAGAIN

#define EAGAIN   6

Resource temporarily unavailable. This is a temporary condition and later calls to the same routine may complete normally.

Definition at line 73 of file errno.h.

◆ EALREADY

#define EALREADY   7

Connection already in progress. A connection request is already in progress for the specified socket.

Definition at line 79 of file errno.h.

◆ EBADF

#define EBADF   8

Bad file descriptor. A file descriptor argument is out of range, refers to no open file, or a read (write) request is made to a file that is only open for writing (reading).

Definition at line 86 of file errno.h.

◆ EBADMSG

#define EBADMSG   9

Bad message. During a read(), getmsg(), getpmsg(), or ioctl() I_RECVFD request to a STREAMS device, a message arrived at the head of the STREAM that is inappropriate for the function receiving the message. read() Message waiting to be read on a STREAM is not a data message. getmsg() or getpmsg() A file descriptor was received instead of a control message. ioctl() Control or data information was received instead of a file descriptor when I_RECVFD was specified.

Definition at line 101 of file errno.h.

◆ EBUSY

#define EBUSY   10

Resource busy. An attempt was made to make use of a system resource that is not currently available, as it is being used by another process in a manner that would have conflicted with the request being made by this process.

Definition at line 109 of file errno.h.

◆ ECANCELED

#define ECANCELED   11

Operation canceled. The associated asynchronous operation was canceled before completion.

Definition at line 115 of file errno.h.

◆ ECHILD

#define ECHILD   12

No child process. A wait(), waitid(), or waitpid() function was executed by a process that had no existing or unwaited-for child process.

Definition at line 122 of file errno.h.

◆ ECONNABORTED

#define ECONNABORTED   13

Connection aborted. The connection has been aborted.

Definition at line 127 of file errno.h.

◆ ECONNREFUSED

#define ECONNREFUSED   14

Connection refused. An attempt to connect to a socket was refused because there was no process listening or because the queue of connection requests was full and the underlying protocol does not support retransmissions.

Definition at line 135 of file errno.h.

◆ ECONNRESET

#define ECONNRESET   15

Connection reset. The connection was forcibly closed by the peer.

Definition at line 140 of file errno.h.

◆ EDEADLK

#define EDEADLK   16

Resource deadlock would occur. An attempt was made to lock a system resource that would have resulted in a deadlock situation.

Definition at line 146 of file errno.h.

◆ EDESTADDRREQ

#define EDESTADDRREQ   17

Destination address required. No bind address was established.

Definition at line 151 of file errno.h.

◆ EDOM

#define EDOM   18

Domain error. An input argument is outside the defined domain of the mathematical function (defined in the ISO C standard).

Definition at line 157 of file errno.h.

◆ EDQUOT

#define EDQUOT   19

Reserved.

Definition at line 162 of file errno.h.

◆ EEXIST

#define EEXIST   20

File exists. An existing file was mentioned in an inappropriate context; for example, as a new link name in the link() function.

Definition at line 168 of file errno.h.

◆ EFAULT

#define EFAULT   21

Bad address. The system detected an invalid address in attempting to use an argument of a call. The reliable detection of this error cannot be guaranteed, and when not detected may result in the generation of a signal, indicating an address violation, which is sent to the process.

Definition at line 177 of file errno.h.

◆ EFBIG

#define EFBIG   22

File too large. The size of a file would exceed the maximum file size of an implementation or offset maximum established in the corresponding file description.

Definition at line 184 of file errno.h.

◆ EHOSTUNREACH

#define EHOSTUNREACH   23

Host is unreachable. The destination host cannot be reached (probably because the host is down or a remote router cannot reach it).

Definition at line 191 of file errno.h.

◆ EIDRM

#define EIDRM   24

Identifier removed. Returned during XSI interprocess communication if an identifier has been removed from the system.

Definition at line 197 of file errno.h.

◆ EILSEQ

#define EILSEQ   25

Illegal byte sequence. A wide-character code has been detected that does not correspond to a valid character, or a byte sequence does not form a valid wide-character code (defined in the ISO C standard).

Definition at line 204 of file errno.h.

◆ EINPROGRESS

#define EINPROGRESS   26

Operation in progress. This code is used to indicate that an asynchronous operation has not yet completed. or: O_NONBLOCK is set for the socket file descriptor and the connection cannot be immediately established.

Definition at line 213 of file errno.h.

◆ EINTR

#define EINTR   27

Interrupted function call. An asynchronous signal was caught by the process during the execution of an interruptible function. If the signal handler performs a normal return, the interrupted function call may return this condition (see the Base Definitions volume of POSIX.1-2017, <signal.h>).

Definition at line 222 of file errno.h.

◆ EINVAL

#define EINVAL   28

Invalid argument. Some invalid argument was supplied; for example, specifying an undefined signal in a signal() function or a kill() function.

Definition at line 229 of file errno.h.

◆ EIO

#define EIO   29

Input/output error. Some physical input or output error has occurred. This error may be reported on a subsequent operation on the same file descriptor. Any other error-causing operation on the same file descriptor may cause the [EIO] error indication to be lost.

Definition at line 237 of file errno.h.

◆ EISCONN

#define EISCONN   30

Socket is connected. The specified socket is already connected.

Definition at line 242 of file errno.h.

◆ EISDIR

#define EISDIR   31

Is a directory. An attempt was made to open a directory with write mode specified.

Definition at line 248 of file errno.h.

◆ ELOOP

#define ELOOP   32

Symbolic link loop. A loop exists in symbolic links encountered during pathname resolution. This error may also be returned if more than {SYMLOOP_MAX} symbolic links are encountered during pathname resolution.

Definition at line 256 of file errno.h.

◆ EMFILE

#define EMFILE   33

File descriptor value too large or too many open streams. An attempt was made to open a file descriptor with a value greater than or equal to {OPEN_MAX}, or an attempt was made to open more than the maximum number of streams allowed in the process.

Definition at line 264 of file errno.h.

◆ EMLINK

#define EMLINK   34

Too many links. An attempt was made to have the link count of a single file exceed {LINK_MAX}.

Definition at line 270 of file errno.h.

◆ EMSGSIZE

#define EMSGSIZE   35

Message too large. A message sent on a transport provider was larger than an internal message buffer or some other network limit. or: Inappropriate message buffer length.

Definition at line 278 of file errno.h.

◆ EMULTIHOP

#define EMULTIHOP   36

Reserved.

Definition at line 283 of file errno.h.

◆ ENAMETOOLONG

#define ENAMETOOLONG   37

Filename too long. The length of a pathname exceeds {PATH_MAX} and the implementation considers this to be an error, or a pathname component is longer than {NAME_MAX}. This error may also occur when pathname substitution, as a result of encountering a symbolic link during pathname resolution, results in a pathname string the size of which exceeds {PATH_MAX}.

Definition at line 293 of file errno.h.

◆ ENETDOWN

#define ENETDOWN   38

Network is down. The local network interface used to reach the destination is down.

Definition at line 299 of file errno.h.

◆ ENETRESET

#define ENETRESET   39

The connection was aborted by the network.

Definition at line 304 of file errno.h.

◆ ENETUNREACH

#define ENETUNREACH   40

Network unreachable. No route to the network is present.

Definition at line 309 of file errno.h.

◆ ENFILE

#define ENFILE   41

Too many files open in system. Too many files are currently open in the system. The system has reached its predefined limit for simultaneously open files and temporarily cannot accept requests to open another one.

Definition at line 317 of file errno.h.

◆ ENOBUFS

#define ENOBUFS   42

No buffer space available. Insufficient buffer resources were available in the system to perform the socket operation.

Definition at line 323 of file errno.h.

◆ ENODATA

#define ENODATA   43

No message available. No message is available on the STREAM head read queue.

Definition at line 329 of file errno.h.

◆ ENODEV

#define ENODEV   44

No such device. An attempt was made to apply an inappropriate function to a device; for example, trying to read a write-only device such as a printer.

Definition at line 336 of file errno.h.

◆ ENOENT

#define ENOENT   45

No such file or directory. A component of a specified pathname does not exist, or the pathname is an empty string.

Definition at line 342 of file errno.h.

◆ ENOEXEC

#define ENOEXEC   46

Executable file format error. A request is made to execute a file that, although it has appropriate privileges, is not in the format required by the implementation for executable files.

Definition at line 349 of file errno.h.

◆ ENOLCK

#define ENOLCK   47

No locks available. A system-imposed limit on the number of simultaneous file and record locks has been reached and no more are currently available.

Definition at line 356 of file errno.h.

◆ ENOLINK

#define ENOLINK   48

Reserved.

Definition at line 361 of file errno.h.

◆ ENOMEM

#define ENOMEM   49

Not enough space. The new process image requires more memory than is allowed by the hardware or system-imposed memory management constraints.

Definition at line 368 of file errno.h.

◆ ENOMSG

#define ENOMSG   50

No message of the desired type. The message queue does not contain a message of the required type during XSI interprocess communication.

Definition at line 374 of file errno.h.

◆ ENOPROTOOPT

#define ENOPROTOOPT   51

Protocol not available. The protocol option specified to setsockopt() is not supported by the implementation.

Definition at line 380 of file errno.h.

◆ ENOSPC

#define ENOSPC   52

No space left on a device. During the write() function on a regular file or when extending a directory, there is no free space left on the device.

Definition at line 387 of file errno.h.

◆ ENOSR

#define ENOSR   53

No STREAM resources. Insufficient STREAMS memory resources are available to perform a STREAMS-related function. This is a temporary condition; it may be recovered from if other processes release resources.

Definition at line 395 of file errno.h.

◆ ENOSTR

#define ENOSTR   54

Not a STREAM. A STREAM function was attempted on a file descriptor that was not associated with a STREAMS device.

Definition at line 401 of file errno.h.

◆ ENOSYS

#define ENOSYS   55

Functionality not supported. An attempt was made to use optional functionality that is not supported in this implementation.

Definition at line 407 of file errno.h.

◆ ENOTCONN

#define ENOTCONN   56

Socket not connected. The socket is not connected.

Definition at line 412 of file errno.h.

◆ ENOTDIR

#define ENOTDIR   57

Not a directory. A component of the specified pathname exists, but it is not a directory, when a directory was expected; or an attempt was made to create a non-directory file, and the specified pathname contains at least one non- <slash> character and ends with one or more trailing <slash> characters.

Definition at line 421 of file errno.h.

◆ ENOTEMPTY

#define ENOTEMPTY   58

Directory not empty. A directory other than an empty directory was supplied when an empty directory was expected.

Definition at line 427 of file errno.h.

◆ ENOTRECOVERABLE

#define ENOTRECOVERABLE   59

State not recoverable. The state protected by a robust mutex is not recoverable.

Definition at line 433 of file errno.h.

◆ ENOTSOCK

#define ENOTSOCK   60

Not a socket. The file descriptor does not refer to a socket.

Definition at line 438 of file errno.h.

◆ ENOTSUP

#define ENOTSUP   61

Not supported. The implementation does not support the requested feature or value.

Definition at line 444 of file errno.h.

◆ ENOTTY

#define ENOTTY   62

Inappropriate I/O control operation. A control function has been attempted for a file or special file for which the operation is inappropriate.

Definition at line 451 of file errno.h.

◆ ENXIO

#define ENXIO   63

No such device or address. Input or output on a special file refers to a device that does not exist, or makes a request beyond the capabilities of the device. It may also occur when, for example, a tape drive is not on-line.

Definition at line 459 of file errno.h.

◆ EOK

#define EOK   0

◆ EOPNOTSUPP

#define EOPNOTSUPP   64

Operation not supported on socket. The type of socket (address family or protocol) does not support the requested operation.

Definition at line 465 of file errno.h.

◆ EOVERFLOW

#define EOVERFLOW   65

Value too large to be stored in data type. An operation was attempted which would generate a value that is outside the range of values that can be represented in the relevant data type or that are allowed for a given data item.

Definition at line 473 of file errno.h.

◆ EOWNERDEAD

#define EOWNERDEAD   66

Previous owner died. The owner of a robust mutex terminated while holding the mutex lock.

Definition at line 479 of file errno.h.

◆ EPERM

#define EPERM   67

Operation not permitted. An attempt was made to perform an operation limited to processes with appropriate privileges or to the owner of a file or other resource.

Definition at line 486 of file errno.h.

◆ EPIPE

#define EPIPE   68

Broken pipe. A write was attempted on a socket, pipe, or FIFO for which there is no process to read the data.

Definition at line 492 of file errno.h.

◆ EPROTO

#define EPROTO   69

Protocol error. Some protocol error occurred. This error is device-specific, but is generally not related to a hardware failure.

Definition at line 499 of file errno.h.

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   70

Protocol not supported. The protocol is not supported by the address family, or the protocol is not supported by the implementation.

Definition at line 506 of file errno.h.

◆ EPROTOTYPE

#define EPROTOTYPE   71

Protocol wrong type for socket. The socket type is not supported by the protocol.

Definition at line 512 of file errno.h.

◆ ERANGE

#define ERANGE   72

Result too large or too small. The result of the function is too large (overflow) or too small (underflow) to be represented in the available space.

Definition at line 519 of file errno.h.

◆ EROFS

#define EROFS   73

Read-only file system. An attempt was made to modify a file or directory on a file system that is read-only.

Definition at line 525 of file errno.h.

◆ ESPIPE

#define ESPIPE   74

Invalid seek. An attempt was made to access the file offset associated with a pipe or FIFO.

Definition at line 531 of file errno.h.

◆ ESRCH

#define ESRCH   75

No such process. No process can be found corresponding to that specified by the given process ID.

Definition at line 537 of file errno.h.

◆ ESTALE

#define ESTALE   76

Reserved.

Definition at line 542 of file errno.h.

◆ ETIME

#define ETIME   77

STREAM ioctl() timeout. The timer set for a STREAMS ioctl() call has expired. The cause of this error is device-specific and could indicate either a hardware or software failure, or a timeout value that is too short for the specific operation. The status of the ioctl() operation is unspecified.

Definition at line 551 of file errno.h.

◆ ETIMEDOUT

#define ETIMEDOUT   78

Connection timed out. The connection to a remote machine has timed out. If the connection timed out during execution of the function that reported this error (as opposed to timing out prior to the function being called), it is unspecified whether the function has completed some or all of the documented behavior associated with a successful completion of the function. or: Operation timed out. The time limit associated with the operation was exceeded before the operation completed.

Definition at line 565 of file errno.h.

◆ ETXTBSY

#define ETXTBSY   79

Text file busy. An attempt was made to execute a pure-procedure program that is currently open for writing, or an attempt has been made to open for writing a pure-procedure program that is being executed.

Definition at line 573 of file errno.h.

◆ EWOULDBLOCK

#define EWOULDBLOCK   80

Operation would block. An operation on a socket marked as non-blocking has encountered a situation such as no data available that otherwise would have caused the function to suspend execution.

Definition at line 580 of file errno.h.

◆ EXDEV

#define EXDEV   81

Improper link. A link to a file on another file system was attempted.

Definition at line 585 of file errno.h.