mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add EFAULT.
This commit is contained in:
parent
4eb06d9063
commit
1adef1d0e2
2 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@
|
||||||
#define ECONNRESET 67
|
#define ECONNRESET 67
|
||||||
#define EADDRNOTAVAIL 68
|
#define EADDRNOTAVAIL 68
|
||||||
#define EISCONN 69
|
#define EISCONN 69
|
||||||
|
#define EFAULT 70
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
||||||
case ECONNRESET: return "Connection reset";
|
case ECONNRESET: return "Connection reset";
|
||||||
case EADDRNOTAVAIL: return "Address not available";
|
case EADDRNOTAVAIL: return "Address not available";
|
||||||
case EISCONN: return "Socket is connected";
|
case EISCONN: return "Socket is connected";
|
||||||
|
case EFAULT: return "Bad address";
|
||||||
default: return "Unknown error condition";
|
default: return "Unknown error condition";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue