1*28b8f954SHendrik Brueckner /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*28b8f954SHendrik Brueckner #ifndef _ASM_GENERIC_ERRNO_BASE_H 3*28b8f954SHendrik Brueckner #define _ASM_GENERIC_ERRNO_BASE_H 4*28b8f954SHendrik Brueckner 5*28b8f954SHendrik Brueckner #define EPERM 1 /* Operation not permitted */ 6*28b8f954SHendrik Brueckner #define ENOENT 2 /* No such file or directory */ 7*28b8f954SHendrik Brueckner #define ESRCH 3 /* No such process */ 8*28b8f954SHendrik Brueckner #define EINTR 4 /* Interrupted system call */ 9*28b8f954SHendrik Brueckner #define EIO 5 /* I/O error */ 10*28b8f954SHendrik Brueckner #define ENXIO 6 /* No such device or address */ 11*28b8f954SHendrik Brueckner #define E2BIG 7 /* Argument list too long */ 12*28b8f954SHendrik Brueckner #define ENOEXEC 8 /* Exec format error */ 13*28b8f954SHendrik Brueckner #define EBADF 9 /* Bad file number */ 14*28b8f954SHendrik Brueckner #define ECHILD 10 /* No child processes */ 15*28b8f954SHendrik Brueckner #define EAGAIN 11 /* Try again */ 16*28b8f954SHendrik Brueckner #define ENOMEM 12 /* Out of memory */ 17*28b8f954SHendrik Brueckner #define EACCES 13 /* Permission denied */ 18*28b8f954SHendrik Brueckner #define EFAULT 14 /* Bad address */ 19*28b8f954SHendrik Brueckner #define ENOTBLK 15 /* Block device required */ 20*28b8f954SHendrik Brueckner #define EBUSY 16 /* Device or resource busy */ 21*28b8f954SHendrik Brueckner #define EEXIST 17 /* File exists */ 22*28b8f954SHendrik Brueckner #define EXDEV 18 /* Cross-device link */ 23*28b8f954SHendrik Brueckner #define ENODEV 19 /* No such device */ 24*28b8f954SHendrik Brueckner #define ENOTDIR 20 /* Not a directory */ 25*28b8f954SHendrik Brueckner #define EISDIR 21 /* Is a directory */ 26*28b8f954SHendrik Brueckner #define EINVAL 22 /* Invalid argument */ 27*28b8f954SHendrik Brueckner #define ENFILE 23 /* File table overflow */ 28*28b8f954SHendrik Brueckner #define EMFILE 24 /* Too many open files */ 29*28b8f954SHendrik Brueckner #define ENOTTY 25 /* Not a typewriter */ 30*28b8f954SHendrik Brueckner #define ETXTBSY 26 /* Text file busy */ 31*28b8f954SHendrik Brueckner #define EFBIG 27 /* File too large */ 32*28b8f954SHendrik Brueckner #define ENOSPC 28 /* No space left on device */ 33*28b8f954SHendrik Brueckner #define ESPIPE 29 /* Illegal seek */ 34*28b8f954SHendrik Brueckner #define EROFS 30 /* Read-only file system */ 35*28b8f954SHendrik Brueckner #define EMLINK 31 /* Too many links */ 36*28b8f954SHendrik Brueckner #define EPIPE 32 /* Broken pipe */ 37*28b8f954SHendrik Brueckner #define EDOM 33 /* Math argument out of domain of func */ 38*28b8f954SHendrik Brueckner #define ERANGE 34 /* Math result not representable */ 39*28b8f954SHendrik Brueckner 40*28b8f954SHendrik Brueckner #endif 41