errno: add error strings
This commit is contained in:
parent
f2dd8ae8a7
commit
abb01a4fb3
1 changed files with 8 additions and 0 deletions
|
|
@ -8,4 +8,12 @@
|
||||||
#define EINVAL 3
|
#define EINVAL 3
|
||||||
#define EBADF 4
|
#define EBADF 4
|
||||||
|
|
||||||
|
static const char *errno_str[] = {
|
||||||
|
[0] = "Success",
|
||||||
|
[ENOMEM] = "Out of memory",
|
||||||
|
[ENOENT] = "No such file or directory",
|
||||||
|
[EINVAL] = "Invalid argument",
|
||||||
|
[EBADF] = "Bad file descriptor",
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _ERRNO_H_ */
|
#endif /* _ERRNO_H_ */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue