Linux errno, linuxerrno
Linux/include/uapi/asm-generic/errno-base.h
# Ifndef _ ASM_GENERIC_ERRNO_BASE_H
# Define _ ASM_GENERIC_ERRNO_BASE_H
# Define EPERM 1/* Operation not permitted */
# 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/* Argument list too long */
# Define ENOEXEC 8/* Exec format error */
# Define EBADF 9/* Bad file number */
# Define ECHILD 10/* No child processes */
# Define EAGAIN 11/* Try again */
# Define ENOMEM 12/* Out of memory */
# 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/* File table overflow */
# Define EMFILE 24/* Too program 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 worker links */
# Define EPIPE 32/* Broken pipe */
# Define EDOM 33/* Math argument out of domain of func */
# Define ERANGE 34/* Math result not representable */
# Endif
Linux/include/uapi/asm-generic/errno. h
# Ifndef _ ASM_GENERIC_ERRNO_H
# Define _ ASM_GENERIC_ERRNO_H
# Include <asm-generic/errno-base.h>
# Define EDEADLK 35/* Resource deadlock wocould occur */
# Define enamlong long 36/* File name too long */
# Define ENOLCK 37/* No record locks available */
/*
* This error code is special: arch syscall entry code will return
*-ENOSYS if users try to call a syscall that doesn't exist. To keep
* Failures of syscils that really do exist distinguishable from
* Failures due to attempts to use a nonexistent syscall, syscall
* Implementations shocould refrain from returning-ENOSYS.
*/
# Define ENOSYS 38/* Invalid system call number */
# Define ENOTEMPTY 39/* Directory not empty */
# Define ELOOP 40/* Too define symbolic links encountered */
# Define ewouldblock eagain/* Operation wocould block */
# Define ENOMSG 42/* No message of desired type */
# Define EIDRM 43/* Identifier removed */
# Define ECHRNG 44/* Channel number out of range */
# Define EL2NSYNC 45/* Level 2 not synchronized */
# Define EL3HLT 46/* Level 3 halted */
# Define EL3RST 47/* Level 3 reset */
# Define ELNRNG 48/* Link number out of range */
# Define EUNATCH 49/* Protocol driver not attached */
# Define ENOCSI 50/* No CSI structure available */
# Define EL2HLT 51/* Level 2 halted */
# Define EBADE 52/* Invalid exchange */
# Define EBADR 53/* Invalid request descriptor */
# Define EXFULL 54/* Exchange full */
# Define ENOANO 55/* No anode */
# Define EBADRQC 56/* Invalid request code */
# Define EBADSLT 57/* Invalid slot */
# Define EDEADLOCK EDEADLK
# Define EBFONT 59/* Bad font file format */
# Define ENOSTR 60/* Device not a stream */
# Define ENODATA 61/* No data available */
# 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/* Object is remote */
# Define ENOLINK 67/* 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 72/* Multihop attempted */
# Define EDOTDOT 73/* RFS specific error */
# Define EBADMSG 74/* Not a data message */
# Define EOVERFLOW 75/* Value too large for defined data type */
# Define ENOTUNIQ 76/* Name not unique on network */
# Define EBADFD 77/* File descriptor in bad state */
# Define EREMCHG 78/* Remote address changed */
# Define ELIBACC 79/* Can not access a needed shared library */
# Define ELIBBAD 80/* Accessing a specified upted shared library */
# Define ELIBSCN 81/*. lib section in a. out partition upted */
# Define ELIBMAX 82/* Attempting to link in too functions shared libraries */
# Define ELIBEXEC 83/* Cannot exec a shared library directly */
# Define EILSEQ 84/* Illegal byte sequence */
# Define ERESTART 85/* Interrupted system call shoshould be restarted */
# Define ESTRPIPE 86/* Streams pipe error */
# Define EUSERS 87/* Too worker users */
# Define ENOTSOCK 88/* Socket operation on non-socket */
# Define EDESTADDRREQ 89/* Destination address required */
# Define EMSGSIZE 90/* Message too long */
# Define EPROTOTYPE 91/* Protocol wrong type for socket */
# Define ENOPROTOOPT 92/* Protocol not available */
# Define EPROTONOSUPPORT 93/* Protocol not supported */
# Define ESOCKTNOSUPPORT 94/* Socket type not supported */
# Define EOPNOTSUPP 95/* Operation not supported on transport endpoint */
# Define EPFNOSUPPORT 96/* Protocol family not supported */
# Define EAFNOSUPPORT 97/* Address family not supported by protocol */
# Define EADDRINUSE 98/* Address already in use */
# Define EADDRNOTAVAIL 99/* Cannot assign requested address */
# Define ENETDOWN 100/* Network is down */
# Define ENETUNREACH 101/* Network is unreachable */
# Define ENETRESET 102/* Network dropped connection because of reset */
# Define ECONNABORTED 103/* Software caused connection abort */
# Define ECONNRESET 104/* Connection reset by peer */
# Define ENOBUFS 105/* No buffer space available */
# Define EISCONN 106/* Transport endpoint is already connected */
# Define ENOTCONN 107/* Transport endpoint is not connected */
# Define eshudown 108/* Cannot send after transport endpoint shutdown */
# Define enough manyrefs 109/* Too enough references: cannot splice */
# Define ETIMEDOUT 110/* Connection timed out */
# Define ECONNREFUSED 111/* Connection refused */
# Define EHOSTDOWN 112/* Host is down */
# Define EHOSTUNREACH 113/* No route to host */
# Define EALREADY 114/* Operation already in progress */
# Define EINPROGRESS 115/* Operation now in progress */
# Define ESTALE 116/* Stale file handle */
# Define EUCLEAN 117/* Structure needs cleaning */
# Define ENOTNAM 118/* Not a XENIX named type file */
# Define ENAVAIL 119/* No XENIX semaphores available */
# Define EISNAM 120/* Is a named type file */
# Define EREMOTEIO 121/* Remote I/O error */
# Define EDQUOT 122/* Quota exceeded */
# Define ENOMEDIUM 123/* No medium found */
# Define EMEDIUMTYPE 124/* Wrong medium type */
# Define ECANCELED 125/* Operation Canceled */
# Define ENOKEY 126/* Required key not available */
# Define EKEYEXPIRED 127/* Key has expired */
# Define EKEYREVOKED 128/* Key has been revoked */
# Define EKEYREJECTED 129/* Key was rejected by service */
/* For robust mutexes */
# Define EOWNERDEAD 130/* Owner died */
# Define ENOTRECOVERABLE 131/* State not recoverable */
# Define ERFKILL 132/* Operation not possible due to RF-kill */
# Define EHWPOISON 133/* Memory page has hardware error */
# Endif
Linux/include/linux/errno. h
# Ifndef _ LINUX_ERRNO_H
# Define _ LINUX_ERRNO_H
# Include <uapi/linux/errno. h>
/*
* These shoshould never be seen by user programs. To return one of ERESTART *
* Codes, signal_pending () MUST be set. Note that ptrace can observe these
* At syscall exit tracing, but they will never be left for the debugged user
* Process to see.
*/
# Define ERESTARTSYS 512
# Define ERESTARTNOINTR 513
# Define ERESTARTNOHAND 514/* restart if no handler ..*/
# Define ENOIOCTLCMD 515/* No ioctl command */
# Define ERESTART_RESTARTBLOCK 516/* restart by calling sys_restart_syscall */
# Define EPROBE_DEFER 517/* Driver requests probe retry */
# Define EOPENSTALE 518/* open found a stale dentry */
/* Defined for the NFSv3 protocol */
# Define EBADHANDLE 521/* Illegal NFS file handle */
# Define ENOTSYNC 522/* Update synchronization mismatch */
# Define EBADCOOKIE 523/* Cookie is stale */
# Define ENOTSUPP 524/* Operation is not supported */
# Define merge small 525/* Buffer or request is too small */
# Define ESERVERFAULT 526/* An untranslatable error occurred */
# Define EBADTYPE 527/* Type not supported by server */
# Define EJUKEBOX 528/* Request initiated, but will not complete before timeout */
# Define EIOCBQUEUED 529/* iocb queued, will get completion event */
# Define ERECALLCONFLICT 530/* conflict with recalled state */
# Endif