unix,windows: map EFTYPE errno
Refs: https://github.com/nodejs/node/pull/20588 PR-URL: https://github.com/libuv/libuv/pull/1836 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
b82c624f74
commit
fe3fbd63e5
@ -433,5 +433,11 @@
|
||||
# define UV__ENOTTY (-4029)
|
||||
#endif
|
||||
|
||||
#if defined(EFTYPE) && !defined(_WIN32)
|
||||
# define UV__EFTYPE UV__ERR(EFTYPE)
|
||||
#else
|
||||
# define UV__EFTYPE (-4028)
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* UV_ERRNO_H_ */
|
||||
|
||||
@ -142,6 +142,7 @@ extern "C" {
|
||||
XX(EHOSTDOWN, "host is down") \
|
||||
XX(EREMOTEIO, "remote I/O error") \
|
||||
XX(ENOTTY, "inappropriate ioctl for device") \
|
||||
XX(EFTYPE, "inappropriate file type or format") \
|
||||
|
||||
#define UV_HANDLE_TYPE_MAP(XX) \
|
||||
XX(ASYNC, async) \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user