mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add EHOSTUNREACH.
This commit is contained in:
parent
fd6b3cce91
commit
62734a008b
2 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
||||||
#define EISCONN 69
|
#define EISCONN 69
|
||||||
#define EFAULT 70
|
#define EFAULT 70
|
||||||
#define EDESTADDRREQ 71
|
#define EDESTADDRREQ 71
|
||||||
|
#define EHOSTUNREACH 72
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
||||||
case EISCONN: return "Socket is connected";
|
case EISCONN: return "Socket is connected";
|
||||||
case EFAULT: return "Bad address";
|
case EFAULT: return "Bad address";
|
||||||
case EDESTADDRREQ: return "Destinatiohn address required";
|
case EDESTADDRREQ: return "Destinatiohn address required";
|
||||||
|
case EHOSTUNREACH: return "Host is unreachable";
|
||||||
default: return "Unknown error condition";
|
default: return "Unknown error condition";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue