Einval Linux Error Codes
Contents |
Aug 2004 on RedHat 7.3 #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 linux error codes 127 device or address */ #define E2BIG 7 /* Arg list too long */ #define ENOEXEC 8 /* linux kernel error codes Exec format error */ #define EBADF 9 /* Bad file number */ #define ECHILD 10 /* No child processes */ #define EAGAIN 11 /* Try again */ linux exit codes #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
Linux Errno Example
*/ #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 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 */ posix error codes #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 argument out of domain of func */ #define ERANGE 34 /* Math result not representable */ #define EDEADLK 35 /* Resource deadlock would occur */ #define ENAMETOOLONG 36 /* File name too long */ #define ENOLCK 37 /* No record locks available */ #define ENOSYS 38 /* Function not implemented */ #define ENOTEMPTY 39 /* Directory not empty */ #define ELOOP 40 /* Too many symbolic links encountered */ #define EWOULDBLOCK EAGAIN /* Operation would 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 ENODAT
codes can’t occur on GNU systems, but they can occur using the GNU C Library on other systems. Macro: int EPERM Operation not permitted; only the owner of the file (or other resource) or processes with special errno.h linux kernel privileges can perform the operation. Macro: int ENOENT No such file or directory. This is
Linux Errno To String
a “file doesn’t exist” error for ordinary files that are referenced in contexts where they are expected to already exist. Macro: int ESRCH
Errno.h Windows
No process matches the specified process ID. Macro: int EINTR Interrupted function call; an asynchronous signal occurred and prevented completion of the call. When this happens, you should try the call again. You can choose to have http://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html functions resume after a signal that is handled, rather than failing with EINTR; see Interrupted Primitives. Macro: int EIO Input/output error; usually used for physical read or write errors. Macro: int ENXIO No such device or address. The system tried to use the device represented by a file you specified, and it couldn’t find the device. This can mean that the device file was installed incorrectly, or that the physical device is missing or http://www.gnu.org/s/libc/manual/html_node/Error-Codes.html not correctly attached to the computer. Macro: int E2BIG Argument list too long; used when the arguments passed to a new program being executed with one of the exec functions (see Executing a File) occupy too much memory space. This condition never arises on GNU/Hurd systems. Macro: int ENOEXEC Invalid executable file format. This condition is detected by the exec functions; see Executing a File. Macro: int EBADF Bad file descriptor; for example, I/O on a descriptor that has been closed or reading from a descriptor open only for writing (or vice versa). Macro: int ECHILD There are no child processes. This error happens on operations that are supposed to manipulate child processes, when there aren’t any processes to manipulate. Macro: int EDEADLK Deadlock avoided; allocating a system resource would have resulted in a deadlock situation. The system does not guarantee that it will notice all such situations. This error means you got lucky and the system noticed; it might just hang. See File Locks, for an example. Macro: int ENOMEM No memory available. The system cannot allocate more virtual memory because its capacity is full. Macro: int EACCES Permission denied; the file permissions do not allow the attempted operation. Macro: int EFAULT Bad address; an invalid pointer was detected. On GNU/Hurd systems, this error never happens; you get a signal inst
6 #define ESRCH 3 /* No such process */ 7 #define EINTR 4 /* Interrupted system call */ 8 #define EIO 5 /* I/O error */ 9 #define ENXIO 6 /* No such device or address */ 10 #define E2BIG 7 /* http://kernelhistory.sourcentral.org/linux-0.99.3/S/32.html Arg list too long */ 11 #define ENOEXEC 8 /* Exec format error */ 12 #define EBADF 9 /* Bad file number */ 13 #define ECHILD 10 /* No child processes */ 14 #define EAGAIN 11 /* http://lxr.free-electrons.com/ident?i=EINVAL Try again */ 15 #define ENOMEM 12 /* Out of memory */ 16 #define EACCES 13 /* Permission denied */ 17 #define EFAULT 14 /* Bad address */ 18 #define ENOTBLK 15 /* Block device required */ error codes 19 #define EBUSY 16 /* Device or resource busy */ 20 #define EEXIST 17 /* File exists */ 21 #define EXDEV 18 /* Cross-device link */ 22 #define ENODEV 19 /* No such device */ 23 #define ENOTDIR 20 /* Not a directory */ 24 #define EISDIR 21 /* Is a directory */ 25 #define EINVAL 22 /* Invalid argument */ 26 #define ENFILE 23 /* File table overflow */ 27 #define EMFILE 24 /* linux error codes Too many open files */ 28 #define ENOTTY 25 /* Not a typewriter */ 29 #define ETXTBSY 26 /* Text file busy */ 30 #define EFBIG 27 /* File too large */ 31 #define ENOSPC 28 /* No space left on device */ 32 #define ESPIPE 29 /* Illegal seek */ 33 #define EROFS 30 /* Read-only file system */ 34 #define EMLINK 31 /* Too many links */ 35 #define EPIPE 32 /* Broken pipe */ 36 #define EDOM 33 /* Math argument out of domain of func */ 37 #define ERANGE 34 /* Math result not representable */ 38 #define EDEADLK 35 /* Resource deadlock would occur */ 39 #define ENAMETOOLONG 36 /* File name too long */ 40 #define ENOLCK 37 /* No record locks available */ 41 #define ENOSYS 38 /* Function not implemented */ 42 #define ENOTEMPTY 39 /* Directory not empty */ 43 #define ELOOP 40 /* Too many symbolic links encountered */ 44 #define EWOULDBLOCK EAGAIN /* Operation would block */ 45 #define ENOMSG 42 /* No message of desired type */ 46 #define EIDRM 43 /* Identifier removed */ 47 #define ECHRNG 44 /* Channel number out of range */ 48 #define EL2NSYNC 45 /* Level 2 not synchronized */ 49 #define EL3HLT 46 /* Level 3 halted */ 50 #define EL3RST 47
Defined as a preprocessor macro in: arch/powerpc/boot/stdio.h, line 7 include/uapi/asm-generic/errno-base.h, line 25 Referenced (in 10264 files total) in: arch/m32r/kernel/smpboot.c, line 583 arch/x86/ras/mce_amd_inj.c, 5 times arch/x86/um/os-Linux/tls.c, line 36 arch/x86/um/tls_32.c, 3 times arch/x86/um/ptrace_32.c, 3 times arch/x86/um/ldt.c, 2 times arch/x86/kvm/irq_comm.c, 3 times arch/x86/kvm/cpuid.c, 2 times arch/x86/kvm/hyperv.c, 6 times arch/x86/kvm/mmu_audit.c, 2 times arch/x86/kvm/x86.c, 40 times arch/x86/kvm/assigned-dev.c, 15 times arch/x86/kvm/ioapic.c, 2 times arch/x86/kvm/svm.c, 6 times arch/x86/kvm/vmx.c, 19 times arch/x86/kvm/lapic.c, 2 times arch/x86/oprofile/nmi_int.c, 2 times arch/x86/ia32/sys_ia32.c, line 163 arch/x86/platform/olpc/olpc-xo1-sci.c, line 159 arch/x86/platform/olpc/olpc-xo15-sci.c, 3 times arch/x86/platform/olpc/olpc-xo1-pm.c, line 58 arch/x86/platform/efi/efi.c, 4 times arch/x86/platform/intel-quark/imr.c, 3 times arch/x86/platform/uv/uv_irq.c, line 89 arch/x86/platform/uv/uv_sysfs.c, line 58 arch/x86/platform/uv/tlb_uv.c, 9 times arch/x86/platform/intel-mid/pwr.c, line 274 arch/x86/platform/intel-mid/intel-mid.c, 2 times arch/x86/platform/intel-mid/intel_mid_vrtc.c, line 115 arch/x86/platform/intel-mid/device_libs/platform_wdt.c, 2 times arch/x86/platform/intel-mid/sfi.c, line 226 arch/x86/net/bpf_jit_comp.c, 4 times arch/x86/events/msr.c, 3 times arch/x86/events/core.c, 14 times arch/x86/events/amd/uncore.c, 3 times arch/x86/events/amd/ibs.c, 8 times arch/x86/events/amd/iommu.c, 6 times arch/x86/events/amd/power.c, 2 times arch/x86/events/intel/cstate.c, 6 times arch/x86/events/intel/uncore_nhmex.c, 4 times arch/x86/events/intel/uncore.c, 12 times arch/x86/events/intel/cqm.c, 4 times arch/x86/events/intel/pt.c, 6 times arch/x86/events/intel/core.c, line 2856 arch/x86/events/intel/uncore_snb.c, 6 times arch/x86/events/intel/rapl.c, 5 times arch/x86/events/intel/p4.c, 7 times arch/x86/events/intel/lbr.c, l