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