XenevaOS
Loading...
Searching...
No Matches
Macros | Variables
errno.h File Reference
#include <_xeneva.h>
Include dependency graph for errno.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EPERM   1 /* Not super-user */
 
#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 /* Arg 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 core */
 
#define EACCES   13 /* Permission denied */
 
#define EFAULT   14 /* Bad address */
 
#define ENOTBLK   15 /* Block device required */
 
#define EBUSY   16 /* Mount device 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 /* Too many open files */
 
#define ENOTTY   25 /* Not a typewriter */
 
#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 /* Math arg out of domain of func */
 
#define ERANGE   34 /* Math result not representable */
 
#define ENOMSG   35 /* No message of desired type */
 
#define EIDRM   36 /* Identifier removed */
 
#define ECHRNG   37 /* Channel number out of range */
 
#define EL2NSYNC   38 /* Level 2 not synchronized */
 
#define EL3HLT   39 /* Level 3 halted */
 
#define EL3RST   40 /* Level 3 reset */
 
#define ELNRNG   41 /* Link number out of range */
 
#define EUNATCH   42 /* Protocol driver not attached */
 
#define ENOCSI   43 /* No CSI structure available */
 
#define EL2HLT   44 /* Level 2 halted */
 
#define EDEADLK   45 /* Deadlock condition */
 
#define ENOLCK   46 /* No record locks available */
 
#define EBADE   50 /* Invalid exchange */
 
#define EBADR   51 /* Invalid request descriptor */
 
#define EXFULL   52 /* Exchange full */
 
#define ENOANO   53 /* No anode */
 
#define EBADRQC   54 /* Invalid request code */
 
#define EBADSLT   55 /* Invalid slot */
 
#define EDEADLOCK   56 /* File locking deadlock error */
 
#define EBFONT   57 /* Bad font file fmt */
 
#define ENOSTR   60 /* Device not a stream */
 
#define ENODATA   61 /* No data (for no delay io) */
 
#define ETIME   62 /* Timer expired */
 
#define ENOSR   63 /* Out of streams resources */
 
#define ENONET   64 /* Machine is not on the network */
 
#define ENOPKG   65 /* Package not installed */
 
#define EREMOTE   66 /* The object is remote */
 
#define ENOLINK   67 /* The link has been severed */
 
#define EADV   68 /* Advertise error */
 
#define ESRMNT   69 /* Srmount error */
 
#define ECOMM   70 /* Communication error on send */
 
#define EPROTO   71 /* Protocol error */
 
#define EMULTIHOP   74 /* Multihop attempted */
 
#define ELBIN   75 /* Inode is remote (not really error) */
 
#define EDOTDOT   76 /* Cross mount point (not really error) */
 
#define EBADMSG   77 /* Trying to read unreadable message */
 
#define EFTYPE   79 /* Inappropriate file type or format */
 
#define ENOTUNIQ   80 /* Given log. name not unique */
 
#define EBADFD   81 /* f.d. invalid for this operation */
 
#define EREMCHG   82 /* Remote address changed */
 
#define ELIBACC   83 /* Can't access a needed shared lib */
 
#define ELIBBAD   84 /* Accessing a corrupted shared lib */
 
#define ELIBSCN   85 /* .lib section in a.out corrupted */
 
#define ELIBMAX   86 /* Attempting to link in too many libs */
 
#define ELIBEXEC   87 /* Attempting to exec a shared library */
 
#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 transport endpoint */
 
#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 /* Connection aborted */
 
#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
 
#define EISCONN   127 /* Socket is already connected */
 
#define ENOTCONN   128 /* Socket is not connected */
 
#define ETOOMANYREFS   129
 
#define EPROCLIM   130
 
#define EUSERS   131
 
#define EDQUOT   132
 
#define ESTALE   133
 
#define ENOTSUP   134 /* Not supported */
 
#define EILSEQ   138
 
#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 ESTRPIPE   143 /* Streams pipe error */
 
#define EWOULDBLOCK   EAGAIN /* Operation would block */
 

Variables

int errno
 

Macro Definition Documentation

◆ E2BIG

#define E2BIG   7 /* Arg list too long */

◆ EACCES

#define EACCES   13 /* Permission denied */

◆ EADDRINUSE

#define EADDRINUSE   112 /* Address already in use */

◆ EADDRNOTAVAIL

#define EADDRNOTAVAIL   125 /* Address not available */

◆ EADV

#define EADV   68 /* Advertise error */

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   106 /* Address family not supported by protocol family */

◆ EAGAIN

#define EAGAIN   11 /* No more processes */

◆ EALREADY

#define EALREADY   120 /* Socket already connected */

◆ EBADE

#define EBADE   50 /* Invalid exchange */

◆ EBADF

#define EBADF   9 /* Bad file number */

◆ EBADFD

#define EBADFD   81 /* f.d. invalid for this operation */

◆ EBADMSG

#define EBADMSG   77 /* Trying to read unreadable message */

◆ EBADR

#define EBADR   51 /* Invalid request descriptor */

◆ EBADRQC

#define EBADRQC   54 /* Invalid request code */

◆ EBADSLT

#define EBADSLT   55 /* Invalid slot */

◆ EBFONT

#define EBFONT   57 /* Bad font file fmt */

◆ EBUSY

#define EBUSY   16 /* Mount device busy */

◆ ECANCELED

#define ECANCELED   140 /* Operation canceled */

◆ ECHILD

#define ECHILD   10 /* No children */

◆ ECHRNG

#define ECHRNG   37 /* Channel number out of range */

◆ ECOMM

#define ECOMM   70 /* Communication error on send */

◆ ECONNABORTED

#define ECONNABORTED   113 /* Connection aborted */

◆ ECONNREFUSED

#define ECONNREFUSED   111 /* Connection refused */

◆ ECONNRESET

#define ECONNRESET   104 /* Connection reset by peer */

◆ EDEADLK

#define EDEADLK   45 /* Deadlock condition */

◆ EDEADLOCK

#define EDEADLOCK   56 /* File locking deadlock error */

◆ EDESTADDRREQ

#define EDESTADDRREQ   121 /* Destination address required */

◆ EDOM

#define EDOM   33 /* Math arg out of domain of func */

◆ EDOTDOT

#define EDOTDOT   76 /* Cross mount point (not really error) */

◆ EDQUOT

#define EDQUOT   132

◆ EEXIST

#define EEXIST   17 /* File exists */

◆ EFAULT

#define EFAULT   14 /* Bad address */

◆ EFBIG

#define EFBIG   27 /* File too large */

◆ EFTYPE

#define EFTYPE   79 /* Inappropriate file type or format */

◆ EHOSTDOWN

#define EHOSTDOWN   117 /* Host is down */

◆ EHOSTUNREACH

#define EHOSTUNREACH   118 /* Host is unreachable */

◆ EIDRM

#define EIDRM   36 /* Identifier removed */

◆ EILSEQ

#define EILSEQ   138

◆ EINPROGRESS

#define EINPROGRESS   119 /* Connection already in progress */

◆ EINTR

#define EINTR   4 /* Interrupted system call */

◆ EINVAL

#define EINVAL   22 /* Invalid argument */

◆ EIO

#define EIO   5 /* I/O error */

◆ EISCONN

#define EISCONN   127 /* Socket is already connected */

◆ EISDIR

#define EISDIR   21 /* Is a directory */

◆ EL2HLT

#define EL2HLT   44 /* Level 2 halted */

◆ EL2NSYNC

#define EL2NSYNC   38 /* Level 2 not synchronized */

◆ EL3HLT

#define EL3HLT   39 /* Level 3 halted */

◆ EL3RST

#define EL3RST   40 /* Level 3 reset */

◆ ELBIN

#define ELBIN   75 /* Inode is remote (not really error) */

◆ ELIBACC

#define ELIBACC   83 /* Can't access a needed shared lib */

◆ ELIBBAD

#define ELIBBAD   84 /* Accessing a corrupted shared lib */

◆ ELIBEXEC

#define ELIBEXEC   87 /* Attempting to exec a shared library */

◆ ELIBMAX

#define ELIBMAX   86 /* Attempting to link in too many libs */

◆ ELIBSCN

#define ELIBSCN   85 /* .lib section in a.out corrupted */

◆ ELNRNG

#define ELNRNG   41 /* Link number out of range */

◆ ELOOP

#define ELOOP   92 /* Too many symbolic links */

◆ EMFILE

#define EMFILE   24 /* Too many open files */

◆ EMLINK

#define EMLINK   31 /* Too many links */

◆ EMSGSIZE

#define EMSGSIZE   122 /* Message too long */

◆ EMULTIHOP

#define EMULTIHOP   74 /* Multihop attempted */

◆ ENAMETOOLONG

#define ENAMETOOLONG   91 /* File or path name too long */

◆ ENETDOWN

#define ENETDOWN   115 /* Network interface is not configured */

◆ ENETRESET

#define ENETRESET   126

◆ ENETUNREACH

#define ENETUNREACH   114 /* Network is unreachable */

◆ ENFILE

#define ENFILE   23 /* Too many open files in system */

◆ ENOANO

#define ENOANO   53 /* No anode */

◆ ENOBUFS

#define ENOBUFS   105 /* No buffer space available */

◆ ENOCSI

#define ENOCSI   43 /* No CSI structure available */

◆ ENODATA

#define ENODATA   61 /* No data (for no delay io) */

◆ ENODEV

#define ENODEV   19 /* No such device */

◆ ENOENT

#define ENOENT   2 /* No such file or directory */

◆ ENOEXEC

#define ENOEXEC   8 /* Exec format error */

◆ ENOLCK

#define ENOLCK   46 /* No record locks available */

◆ ENOLINK

#define ENOLINK   67 /* The link has been severed */

◆ ENOMEM

#define ENOMEM   12 /* Not enough core */

◆ ENOMSG

#define ENOMSG   35 /* No message of desired type */

◆ ENONET

#define ENONET   64 /* Machine is not on the network */

◆ ENOPKG

#define ENOPKG   65 /* Package not installed */

◆ ENOPROTOOPT

#define ENOPROTOOPT   109 /* Protocol not available */

◆ ENOSPC

#define ENOSPC   28 /* No space left on device */

◆ ENOSR

#define ENOSR   63 /* Out of streams resources */

◆ ENOSTR

#define ENOSTR   60 /* Device not a stream */

◆ ENOSYS

#define ENOSYS   88 /* Function not implemented */

◆ ENOTBLK

#define ENOTBLK   15 /* Block device required */

◆ ENOTCONN

#define ENOTCONN   128 /* Socket is not connected */

◆ ENOTDIR

#define ENOTDIR   20 /* Not a directory */

◆ ENOTEMPTY

#define ENOTEMPTY   90 /* Directory not empty */

◆ ENOTRECOVERABLE

#define ENOTRECOVERABLE   141 /* State not recoverable */

◆ ENOTSOCK

#define ENOTSOCK   108 /* Socket operation on non-socket */

◆ ENOTSUP

#define ENOTSUP   134 /* Not supported */

◆ ENOTTY

#define ENOTTY   25 /* Not a typewriter */

◆ ENOTUNIQ

#define ENOTUNIQ   80 /* Given log. name not unique */

◆ ENXIO

#define ENXIO   6 /* No such device or address */

◆ EOPNOTSUPP

#define EOPNOTSUPP   95 /* Operation not supported on transport endpoint */

◆ EOVERFLOW

#define EOVERFLOW   139 /* Value too large for defined data type */

◆ EOWNERDEAD

#define EOWNERDEAD   142 /* Previous owner died */

◆ EPERM

#define EPERM   1 /* Not super-user */

◆ EPFNOSUPPORT

#define EPFNOSUPPORT   96 /* Protocol family not supported */

◆ EPIPE

#define EPIPE   32 /* Broken pipe */

◆ EPROCLIM

#define EPROCLIM   130

◆ EPROTO

#define EPROTO   71 /* Protocol error */

◆ EPROTONOSUPPORT

#define EPROTONOSUPPORT   123 /* Unknown protocol */

◆ EPROTOTYPE

#define EPROTOTYPE   107 /* Protocol wrong type for socket */

◆ ERANGE

#define ERANGE   34 /* Math result not representable */

◆ EREMCHG

#define EREMCHG   82 /* Remote address changed */

◆ EREMOTE

#define EREMOTE   66 /* The object is remote */

◆ EROFS

#define EROFS   30 /* Read only file system */

◆ ESHUTDOWN

#define ESHUTDOWN   110 /* Can't send after socket shutdown */

◆ ESOCKTNOSUPPORT

#define ESOCKTNOSUPPORT   124 /* Socket type not supported */

◆ ESPIPE

#define ESPIPE   29 /* Illegal seek */

◆ ESRCH

#define ESRCH   3 /* No such process */

◆ ESRMNT

#define ESRMNT   69 /* Srmount error */

◆ ESTALE

#define ESTALE   133

◆ ESTRPIPE

#define ESTRPIPE   143 /* Streams pipe error */

◆ ETIME

#define ETIME   62 /* Timer expired */

◆ ETIMEDOUT

#define ETIMEDOUT   116 /* Connection timed out */

◆ ETOOMANYREFS

#define ETOOMANYREFS   129

◆ ETXTBSY

#define ETXTBSY   26 /* Text file busy */

◆ EUNATCH

#define EUNATCH   42 /* Protocol driver not attached */

◆ EUSERS

#define EUSERS   131

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN /* Operation would block */

◆ EXDEV

#define EXDEV   18 /* Cross-device link */

◆ EXFULL

#define EXFULL   52 /* Exchange full */

Variable Documentation

◆ errno

int errno
extern

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.