include: add EUNATCH errno mapping (#4047)

add EUNATCH errno mapping
This commit is contained in:
Abdirahim Musse 2023-06-16 08:27:39 -05:00 committed by GitHub
parent 4002231bd9
commit 6a9e4293d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -339,6 +339,9 @@ Error constants
socket type not supported
.. c:macro:: UV_EUNATCH
protocol driver not attached
API
---

View File

@ -156,6 +156,7 @@ struct uv__queue {
XX(EILSEQ, "illegal byte sequence") \
XX(ESOCKTNOSUPPORT, "socket type not supported") \
XX(ENODATA, "no data available") \
XX(EUNATCH, "protocol driver not attached") \
#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \

View File

@ -468,4 +468,10 @@
# define UV__ENODATA (-4024)
#endif
#if defined(EUNATCH) && !defined(_WIN32)
# define UV__EUNATCH UV__ERR(EUNATCH)
#else
# define UV__EUNATCH (-4023)
#endif
#endif /* UV_ERRNO_H_ */