summaryrefslogtreecommitdiff
path: root/include/ulib/errno.h
blob: 03ff8fd77bffec6358253af4d5dea485681ab7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _ERRNO_H
#define _ERRNO_H

#ifdef __cplusplus
extern "C"
{
#endif

extern int errno;

// Linux/ASM-Generic
#define EPERM 1   /* Operation not permitted */
#define ENOENT 2  /* No such file or directory */
#define ESRCH 3   /* No such process */
#define EINTR 4   /* Interrupted system call */
#define EIO 5     /* I/O error */
#define ENXIO 6   /* No such device or address */
#define E2BIG 7   /* Argument list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9   /* Bad file number */
#define ECHILD 10 /* No child processes */
#define EAGAIN 11 /* Try again */
#define ENOMEM 12 /* Out of memory */
#define EACCES 13 /* Permission denied */
#define EFAULT 14 /* Bad address */

#ifdef __cplusplus
}
#endif

#endif