18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _ASM_GENERIC_ERRNO_BASE_H
38c2ecf20Sopenharmony_ci#define _ASM_GENERIC_ERRNO_BASE_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define	EPERM		 1	/* Operation not permitted */
68c2ecf20Sopenharmony_ci#define	ENOENT		 2	/* No such file or directory */
78c2ecf20Sopenharmony_ci#define	ESRCH		 3	/* No such process */
88c2ecf20Sopenharmony_ci#define	EINTR		 4	/* Interrupted system call */
98c2ecf20Sopenharmony_ci#define	EIO		 5	/* I/O error */
108c2ecf20Sopenharmony_ci#define	ENXIO		 6	/* No such device or address */
118c2ecf20Sopenharmony_ci#define	E2BIG		 7	/* Argument list too long */
128c2ecf20Sopenharmony_ci#define	ENOEXEC		 8	/* Exec format error */
138c2ecf20Sopenharmony_ci#define	EBADF		 9	/* Bad file number */
148c2ecf20Sopenharmony_ci#define	ECHILD		10	/* No child processes */
158c2ecf20Sopenharmony_ci#define	EAGAIN		11	/* Try again */
168c2ecf20Sopenharmony_ci#define	ENOMEM		12	/* Out of memory */
178c2ecf20Sopenharmony_ci#define	EACCES		13	/* Permission denied */
188c2ecf20Sopenharmony_ci#define	EFAULT		14	/* Bad address */
198c2ecf20Sopenharmony_ci#define	ENOTBLK		15	/* Block device required */
208c2ecf20Sopenharmony_ci#define	EBUSY		16	/* Device or resource busy */
218c2ecf20Sopenharmony_ci#define	EEXIST		17	/* File exists */
228c2ecf20Sopenharmony_ci#define	EXDEV		18	/* Cross-device link */
238c2ecf20Sopenharmony_ci#define	ENODEV		19	/* No such device */
248c2ecf20Sopenharmony_ci#define	ENOTDIR		20	/* Not a directory */
258c2ecf20Sopenharmony_ci#define	EISDIR		21	/* Is a directory */
268c2ecf20Sopenharmony_ci#define	EINVAL		22	/* Invalid argument */
278c2ecf20Sopenharmony_ci#define	ENFILE		23	/* File table overflow */
288c2ecf20Sopenharmony_ci#define	EMFILE		24	/* Too many open files */
298c2ecf20Sopenharmony_ci#define	ENOTTY		25	/* Not a typewriter */
308c2ecf20Sopenharmony_ci#define	ETXTBSY		26	/* Text file busy */
318c2ecf20Sopenharmony_ci#define	EFBIG		27	/* File too large */
328c2ecf20Sopenharmony_ci#define	ENOSPC		28	/* No space left on device */
338c2ecf20Sopenharmony_ci#define	ESPIPE		29	/* Illegal seek */
348c2ecf20Sopenharmony_ci#define	EROFS		30	/* Read-only file system */
358c2ecf20Sopenharmony_ci#define	EMLINK		31	/* Too many links */
368c2ecf20Sopenharmony_ci#define	EPIPE		32	/* Broken pipe */
378c2ecf20Sopenharmony_ci#define	EDOM		33	/* Math argument out of domain of func */
388c2ecf20Sopenharmony_ci#define	ERANGE		34	/* Math result not representable */
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#endif
41