LibC: Add errno ENOTTY
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#define ENOTEMPTY 10
|
#define ENOTEMPTY 10
|
||||||
#define ENAMETOOLONG 11
|
#define ENAMETOOLONG 11
|
||||||
#define ENOBUFS 12
|
#define ENOBUFS 12
|
||||||
|
#define ENOTTY 13
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,9 @@ char* strerror(int error)
|
|||||||
case ENOBUFS:
|
case ENOBUFS:
|
||||||
strcpy(buffer, "No buffer space available");
|
strcpy(buffer, "No buffer space available");
|
||||||
break;
|
break;
|
||||||
|
case ENOTTY:
|
||||||
|
strcpy(buffer, "Inappropriate I/O control operation");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// FIXME: sprintf
|
// FIXME: sprintf
|
||||||
|
|||||||
Reference in New Issue
Block a user