LibC: add errno EEXISTS
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define EIO 6
|
||||
#define ENOTSUP 7
|
||||
#define EBADF 8
|
||||
#define EEXISTS 9
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@ char* strerror(int error)
|
||||
case EBADF:
|
||||
strcpy(buffer, "Bad file descriptor");
|
||||
break;
|
||||
case EEXISTS:
|
||||
strcpy(buffer, "File exists");
|
||||
break;
|
||||
default:
|
||||
{
|
||||
// FIXME: sprintf
|
||||
|
||||
Reference in New Issue
Block a user