|
|
|
@ -2,23 +2,24 @@
|
|
|
|
|
#include <errno.h> |
|
|
|
|
|
|
|
|
|
static char *errno_strings [] = { |
|
|
|
|
[0] = "Success", |
|
|
|
|
[EDOM] = "Numerical argument out of domain", |
|
|
|
|
[EILSEQ] = "Invalid or incomplete multibyte or wide character", |
|
|
|
|
[ERANGE] = "Numerical result out of range", |
|
|
|
|
[EACCES] = "Permission denied", |
|
|
|
|
[EEXIST] = "File exists", |
|
|
|
|
[EINVAL] = "Invalid argument", |
|
|
|
|
[ENFILE] = "Too many open files in system", |
|
|
|
|
[ENOENT] = "No such file or directory", |
|
|
|
|
[ENOMEM] = "Cannot allocate memory", |
|
|
|
|
[EDQUOT] = "Disk quota exceeded", |
|
|
|
|
[ENOSPC] = "No space left on device", |
|
|
|
|
[ENOTSUP] = "Operation not supported", |
|
|
|
|
[EBADF] = "Bad file descriptor", |
|
|
|
|
[ESPIPE] = "Illegal seek", |
|
|
|
|
[EISDIR] = "Is a directory", |
|
|
|
|
[ENOTDIR] = "Not a directory", |
|
|
|
|
[0] = "Success", |
|
|
|
|
[EDOM] = "Numerical argument out of domain", |
|
|
|
|
[EILSEQ] = "Invalid or incomplete multibyte or wide character", |
|
|
|
|
[ERANGE] = "Numerical result out of range", |
|
|
|
|
[EACCES] = "Permission denied", |
|
|
|
|
[EEXIST] = "File exists", |
|
|
|
|
[EINVAL] = "Invalid argument", |
|
|
|
|
[ENFILE] = "Too many open files in system", |
|
|
|
|
[ENOENT] = "No such file or directory", |
|
|
|
|
[ENOMEM] = "Cannot allocate memory", |
|
|
|
|
[EDQUOT] = "Disk quota exceeded", |
|
|
|
|
[ENOSPC] = "No space left on device", |
|
|
|
|
[ENOTSUP] = "Operation not supported", |
|
|
|
|
[EBADF] = "Bad file descriptor", |
|
|
|
|
[ESPIPE] = "Illegal seek", |
|
|
|
|
[EISDIR] = "Is a directory", |
|
|
|
|
[ENOTDIR] = "Not a directory", |
|
|
|
|
[ENOTEMPTY] = "Directory not empty", |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
char *strerror(int e) |
|
|
|
|