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