mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-29 13:03:38 +01:00
errno: add ENOTEMPTY for rmdir()
This commit is contained in:
parent
937b7bfb63
commit
dbfefe5172
2 changed files with 35 additions and 33 deletions
|
@ -9,22 +9,23 @@ extern "C" {
|
||||||
threads are supported. */
|
threads are supported. */
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
|
||||||
#define EDOM 1 /* Outside of domain of math function. */
|
#define EDOM 1 /* Outside of domain of math function. */
|
||||||
#define EILSEQ 2 /* Illegal multi-byte character sequence. */
|
#define EILSEQ 2 /* Illegal multi-byte character sequence. */
|
||||||
#define ERANGE 3 /* Range error during text-to-numeric conversion. */
|
#define ERANGE 3 /* Range error during text-to-numeric conversion. */
|
||||||
#define EACCES 4 /* File access denied. */
|
#define EACCES 4 /* File access denied. */
|
||||||
#define EEXIST 5 /* File already exists. */
|
#define EEXIST 5 /* File already exists. */
|
||||||
#define EINVAL 6 /* Invalid argument in general; lots of uses. */
|
#define EINVAL 6 /* Invalid argument in general; lots of uses. */
|
||||||
#define ENFILE 7 /* Out of file descriptors. */
|
#define ENFILE 7 /* Out of file descriptors. */
|
||||||
#define ENOENT 8 /* File or folder does not exist. */
|
#define ENOENT 8 /* File or folder does not exist. */
|
||||||
#define ENOMEM 9 /* System ran out of memory (RAM). */
|
#define ENOMEM 9 /* System ran out of memory (RAM). */
|
||||||
#define EDQUOT 10 /* Out of inodes or memory space. */
|
#define EDQUOT 10 /* Out of inodes or memory space. */
|
||||||
#define ENOSPC 11 /* No space left on device. */
|
#define ENOSPC 11 /* No space left on device. */
|
||||||
#define ENOTSUP 12 /* Operation not supported. */
|
#define ENOTSUP 12 /* Operation not supported. */
|
||||||
#define EBADF 13 /* Invalid file descriptor. */
|
#define EBADF 13 /* Invalid file descriptor. */
|
||||||
#define ESPIPE 14 /* File descriptor is unable to seek. */
|
#define ESPIPE 14 /* File descriptor is unable to seek. */
|
||||||
#define EISDIR 15 /* File descriptor is a directory. */
|
#define EISDIR 15 /* File descriptor is a directory. */
|
||||||
#define ENOTDIR 16 /* File descriptor is not a directory. */
|
#define ENOTDIR 16 /* File descriptor is not a directory. */
|
||||||
|
#define ENOTEMPTY 17 /* Directory is not empty. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,23 +2,24 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
static char *errno_strings [] = {
|
static char *errno_strings [] = {
|
||||||
[0] = "Success",
|
[0] = "Success",
|
||||||
[EDOM] = "Numerical argument out of domain",
|
[EDOM] = "Numerical argument out of domain",
|
||||||
[EILSEQ] = "Invalid or incomplete multibyte or wide character",
|
[EILSEQ] = "Invalid or incomplete multibyte or wide character",
|
||||||
[ERANGE] = "Numerical result out of range",
|
[ERANGE] = "Numerical result out of range",
|
||||||
[EACCES] = "Permission denied",
|
[EACCES] = "Permission denied",
|
||||||
[EEXIST] = "File exists",
|
[EEXIST] = "File exists",
|
||||||
[EINVAL] = "Invalid argument",
|
[EINVAL] = "Invalid argument",
|
||||||
[ENFILE] = "Too many open files in system",
|
[ENFILE] = "Too many open files in system",
|
||||||
[ENOENT] = "No such file or directory",
|
[ENOENT] = "No such file or directory",
|
||||||
[ENOMEM] = "Cannot allocate memory",
|
[ENOMEM] = "Cannot allocate memory",
|
||||||
[EDQUOT] = "Disk quota exceeded",
|
[EDQUOT] = "Disk quota exceeded",
|
||||||
[ENOSPC] = "No space left on device",
|
[ENOSPC] = "No space left on device",
|
||||||
[ENOTSUP] = "Operation not supported",
|
[ENOTSUP] = "Operation not supported",
|
||||||
[EBADF] = "Bad file descriptor",
|
[EBADF] = "Bad file descriptor",
|
||||||
[ESPIPE] = "Illegal seek",
|
[ESPIPE] = "Illegal seek",
|
||||||
[EISDIR] = "Is a directory",
|
[EISDIR] = "Is a directory",
|
||||||
[ENOTDIR] = "Not a directory",
|
[ENOTDIR] = "Not a directory",
|
||||||
|
[ENOTEMPTY] = "Directory not empty",
|
||||||
};
|
};
|
||||||
|
|
||||||
char *strerror(int e)
|
char *strerror(int e)
|
||||||
|
|
Loading…
Reference in a new issue