libc: Add a few errors to errno.h

As well as ino_t, which I forgot in the fstat() commit :)
This commit is contained in:
apio 2022-10-21 18:34:01 +02:00
parent 62fa773b27
commit 93207820b3
3 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#define EPERM 1
#define ENOENT 2
#define ESRCH 3
#define EINTR 4
#define ENOEXEC 8
#define EBADF 9
#define ENOMEM 12
@ -12,6 +13,7 @@
#define EISDIR 21
#define EINVAL 22
#define EMFILE 24
#define ENOTTY 25
#define ENOSPC 28
#define ENOSYS 38
#define ENOTSUP 95

View File

@ -7,6 +7,7 @@ extern int errno;
#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. Not implemented.
#define ENOEXEC 8 // Exec format error
#define EBADF 9 // Bad file descriptor
#define ENOMEM 12 // Cannot allocate memory
@ -16,6 +17,7 @@ extern int errno;
#define EISDIR 21 // Is a directory
#define EINVAL 22 // Invalid argument
#define EMFILE 24 // Too many open files
#define ENOTTY 25 // Inappropriate ioctl for device
#define ENOSPC 28 // No space left on device
#define EPIPE 32 // Broken pipe. Not implemented.
#define ENOSYS 38 // Function not implemented

View File

@ -16,4 +16,7 @@ typedef long int off_t;
/* The type of a file's mode. */
typedef unsigned short mode_t;
/* The type of a filesystem inode. */
typedef unsigned long ino_t;
#endif