2022-10-08 10:06:09 +00:00
|
|
|
#ifndef _ERRNO_H
|
|
|
|
#define _ERRNO_H
|
|
|
|
|
2022-10-12 10:01:07 +00:00
|
|
|
/* The last error encountered during a call to a library or system function. */
|
2022-10-08 10:06:09 +00:00
|
|
|
extern int errno;
|
|
|
|
|
2022-10-16 15:22:12 +00:00
|
|
|
#define EPERM 1 // Operation not permitted
|
|
|
|
#define ENOENT 2 // No such file or directory
|
2022-10-18 19:30:52 +00:00
|
|
|
#define ESRCH 3 // No such process
|
2022-10-21 16:34:01 +00:00
|
|
|
#define EINTR 4 // Interrupted system call. Not implemented.
|
2022-10-16 15:22:12 +00:00
|
|
|
#define ENOEXEC 8 // Exec format error
|
|
|
|
#define EBADF 9 // Bad file descriptor
|
|
|
|
#define ENOMEM 12 // Cannot allocate memory
|
|
|
|
#define EFAULT 14 // Bad address
|
|
|
|
#define EEXIST 17 // File exists
|
2022-10-16 15:24:58 +00:00
|
|
|
#define ENOTDIR 20 // Not a directory
|
2022-10-16 15:22:12 +00:00
|
|
|
#define EISDIR 21 // Is a directory
|
|
|
|
#define EINVAL 22 // Invalid argument
|
|
|
|
#define EMFILE 24 // Too many open files
|
2022-10-21 16:34:01 +00:00
|
|
|
#define ENOTTY 25 // Inappropriate ioctl for device
|
2022-10-16 15:22:12 +00:00
|
|
|
#define ENOSPC 28 // No space left on device
|
|
|
|
#define EPIPE 32 // Broken pipe. Not implemented.
|
|
|
|
#define ENOSYS 38 // Function not implemented
|
2022-10-18 19:30:52 +00:00
|
|
|
#define ENOTSUP 95 // Operation not supported
|
2022-10-08 10:06:09 +00:00
|
|
|
|
|
|
|
#endif
|