LibC: Add errno ENOTTY

This commit is contained in:
Bananymous 2023-04-05 02:47:37 +03:00
parent d0b1457f30
commit 22c72d8c70
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#define ENOTEMPTY 10
#define ENAMETOOLONG 11
#define ENOBUFS 12
#define ENOTTY 13
__BEGIN_DECLS

View File

@ -113,6 +113,9 @@ char* strerror(int error)
case ENOBUFS:
strcpy(buffer, "No buffer space available");
break;
case ENOTTY:
strcpy(buffer, "Inappropriate I/O control operation");
break;
default:
{
// FIXME: sprintf