16f52b16cSGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
21da177e4SLinus Torvalds#ifndef _ASM_GENERIC_ERRNO_BASE_H
31da177e4SLinus Torvalds#define _ASM_GENERIC_ERRNO_BASE_H
41da177e4SLinus Torvalds
51da177e4SLinus Torvalds#define	EPERM		 1	/* Operation not permitted */
61da177e4SLinus Torvalds#define	ENOENT		 2	/* No such file or directory */
71da177e4SLinus Torvalds#define	ESRCH		 3	/* No such process */
81da177e4SLinus Torvalds#define	EINTR		 4	/* Interrupted system call */
91da177e4SLinus Torvalds#define	EIO		 5	/* I/O error */
101da177e4SLinus Torvalds#define	ENXIO		 6	/* No such device or address */
111da177e4SLinus Torvalds#define	E2BIG		 7	/* Argument list too long */
121da177e4SLinus Torvalds#define	ENOEXEC		 8	/* Exec format error */
131da177e4SLinus Torvalds#define	EBADF		 9	/* Bad file number */
141da177e4SLinus Torvalds#define	ECHILD		10	/* No child processes */
151da177e4SLinus Torvalds#define	EAGAIN		11	/* Try again */
161da177e4SLinus Torvalds#define	ENOMEM		12	/* Out of memory */
171da177e4SLinus Torvalds#define	EACCES		13	/* Permission denied */
181da177e4SLinus Torvalds#define	EFAULT		14	/* Bad address */
191da177e4SLinus Torvalds#define	ENOTBLK		15	/* Block device required */
201da177e4SLinus Torvalds#define	EBUSY		16	/* Device or resource busy */
211da177e4SLinus Torvalds#define	EEXIST		17	/* File exists */
221da177e4SLinus Torvalds#define	EXDEV		18	/* Cross-device link */
231da177e4SLinus Torvalds#define	ENODEV		19	/* No such device */
241da177e4SLinus Torvalds#define	ENOTDIR		20	/* Not a directory */
251da177e4SLinus Torvalds#define	EISDIR		21	/* Is a directory */
261da177e4SLinus Torvalds#define	EINVAL		22	/* Invalid argument */
271da177e4SLinus Torvalds#define	ENFILE		23	/* File table overflow */
281da177e4SLinus Torvalds#define	EMFILE		24	/* Too many open files */
291da177e4SLinus Torvalds#define	ENOTTY		25	/* Not a typewriter */
301da177e4SLinus Torvalds#define	ETXTBSY		26	/* Text file busy */
311da177e4SLinus Torvalds#define	EFBIG		27	/* File too large */
321da177e4SLinus Torvalds#define	ENOSPC		28	/* No space left on device */
331da177e4SLinus Torvalds#define	ESPIPE		29	/* Illegal seek */
341da177e4SLinus Torvalds#define	EROFS		30	/* Read-only file system */
351da177e4SLinus Torvalds#define	EMLINK		31	/* Too many links */
361da177e4SLinus Torvalds#define	EPIPE		32	/* Broken pipe */
371da177e4SLinus Torvalds#define	EDOM		33	/* Math argument out of domain of func */
381da177e4SLinus Torvalds#define	ERANGE		34	/* Math result not representable */
391da177e4SLinus Torvalds
401da177e4SLinus Torvalds#endif
41