mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add ETIMEDOUT.
This commit is contained in:
parent
d2b6543558
commit
633f4bb55c
2 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
||||||
#define EAFNOSUPPORT 57
|
#define EAFNOSUPPORT 57
|
||||||
#define ENOTSOCK 58
|
#define ENOTSOCK 58
|
||||||
#define EADDRINUSE 59
|
#define EADDRINUSE 59
|
||||||
|
#define ETIMEDOUT 60
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
||||||
case EAFNOSUPPORT: return "Address family not supported";
|
case EAFNOSUPPORT: return "Address family not supported";
|
||||||
case ENOTSOCK: return "Not a socket";
|
case ENOTSOCK: return "Not a socket";
|
||||||
case EADDRINUSE: return "Address already in use";
|
case EADDRINUSE: return "Address already in use";
|
||||||
|
case ETIMEDOUT: return "Connection timed out";
|
||||||
default: return "Unknown error condition";
|
default: return "Unknown error condition";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue