128b8f954SHendrik Brueckner/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
228b8f954SHendrik Brueckner#ifndef _ASM_GENERIC_ERRNO_BASE_H
328b8f954SHendrik Brueckner#define _ASM_GENERIC_ERRNO_BASE_H
428b8f954SHendrik Brueckner
528b8f954SHendrik Brueckner#define	EPERM		 1	/* Operation not permitted */
628b8f954SHendrik Brueckner#define	ENOENT		 2	/* No such file or directory */
728b8f954SHendrik Brueckner#define	ESRCH		 3	/* No such process */
828b8f954SHendrik Brueckner#define	EINTR		 4	/* Interrupted system call */
928b8f954SHendrik Brueckner#define	EIO		 5	/* I/O error */
1028b8f954SHendrik Brueckner#define	ENXIO		 6	/* No such device or address */
1128b8f954SHendrik Brueckner#define	E2BIG		 7	/* Argument list too long */
1228b8f954SHendrik Brueckner#define	ENOEXEC		 8	/* Exec format error */
1328b8f954SHendrik Brueckner#define	EBADF		 9	/* Bad file number */
1428b8f954SHendrik Brueckner#define	ECHILD		10	/* No child processes */
1528b8f954SHendrik Brueckner#define	EAGAIN		11	/* Try again */
1628b8f954SHendrik Brueckner#define	ENOMEM		12	/* Out of memory */
1728b8f954SHendrik Brueckner#define	EACCES		13	/* Permission denied */
1828b8f954SHendrik Brueckner#define	EFAULT		14	/* Bad address */
1928b8f954SHendrik Brueckner#define	ENOTBLK		15	/* Block device required */
2028b8f954SHendrik Brueckner#define	EBUSY		16	/* Device or resource busy */
2128b8f954SHendrik Brueckner#define	EEXIST		17	/* File exists */
2228b8f954SHendrik Brueckner#define	EXDEV		18	/* Cross-device link */
2328b8f954SHendrik Brueckner#define	ENODEV		19	/* No such device */
2428b8f954SHendrik Brueckner#define	ENOTDIR		20	/* Not a directory */
2528b8f954SHendrik Brueckner#define	EISDIR		21	/* Is a directory */
2628b8f954SHendrik Brueckner#define	EINVAL		22	/* Invalid argument */
2728b8f954SHendrik Brueckner#define	ENFILE		23	/* File table overflow */
2828b8f954SHendrik Brueckner#define	EMFILE		24	/* Too many open files */
2928b8f954SHendrik Brueckner#define	ENOTTY		25	/* Not a typewriter */
3028b8f954SHendrik Brueckner#define	ETXTBSY		26	/* Text file busy */
3128b8f954SHendrik Brueckner#define	EFBIG		27	/* File too large */
3228b8f954SHendrik Brueckner#define	ENOSPC		28	/* No space left on device */
3328b8f954SHendrik Brueckner#define	ESPIPE		29	/* Illegal seek */
3428b8f954SHendrik Brueckner#define	EROFS		30	/* Read-only file system */
3528b8f954SHendrik Brueckner#define	EMLINK		31	/* Too many links */
3628b8f954SHendrik Brueckner#define	EPIPE		32	/* Broken pipe */
3728b8f954SHendrik Brueckner#define	EDOM		33	/* Math argument out of domain of func */
3828b8f954SHendrik Brueckner#define	ERANGE		34	/* Math result not representable */
3928b8f954SHendrik Brueckner
4028b8f954SHendrik Brueckner#endif
41