errno: add error strings

This commit is contained in:
Michael Shaw 2023-10-19 14:53:11 -04:00
commit abb01a4fb3

View file

@ -8,4 +8,12 @@
#define EINVAL 3
#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_ */