Compare commits

..

No commits in common. "a3362429d375821acf93311cefc4118dc3639021" and "b42c866db881611d0cac6045d48139008d632ecf" have entirely different histories.

2 changed files with 9 additions and 10 deletions

View File

@ -1,16 +1,15 @@
#ifndef _ERRNO_H
#define _ERRNO_H
/* The last error encountered during a call to a library or system function. */
extern int errno;
#define EPERM 1 // Operation not permitted
#define ENOENT 2 // No such file or directory
#define EBADF 9 // Bad file descriptor
#define ENOMEM 12 // Cannot allocate memory
#define EISDIR 21 // Is a directory
#define EINVAL 22 // Invalid argument
#define EMFILE 24 // Too many open files
#define ENOSYS 38 // Function not implemented
#define EPERM 1
#define ENOENT 2
#define EBADF 9
#define ENOMEM 12
#define EISDIR 21
#define EINVAL 22
#define EMFILE 24
#define ENOSYS 38
#endif

View File

@ -121,7 +121,7 @@ extern "C"
{
case EPERM: return "Operation not permitted";
case EINVAL: return "Invalid argument";
case ENOMEM: return "Cannot allocate memory";
case ENOMEM: return "Out of memory";
case ENOSYS: return "Function not implemented";
case ENOENT: return "No such file or directory";
case EBADF: return "Bad file descriptor";