libuv/src
Kevin Adler 91ca6788bb
ibmi: return EISDIR on read from directory fd
On IBM i PASE, EOPNOTSUPP is returned when reading a directory instead
of EISDIR, like (seemingly) every other platform which doesn't support
reading directories. To ensure compatibility with software expecting
EISDIR, we map the EOPNOTSUPP to EISDIR when the fd passed in was a
directory.

This is a partial revert of 25a3894, but scoped to PASE and the fstat
call is moved to the end so it's out of the fast path.

Refs: https://github.com/nodejs/node/issues/25433
Fixes: https://github.com/libuv/libuv/issues/2147
PR-URL: https://github.com/libuv/libuv/pull/2148
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2019-01-17 11:08:07 -05:00
..
unix ibmi: return EISDIR on read from directory fd 2019-01-17 11:08:07 -05:00
win win: fix msvc warning 2019-01-15 10:42:13 -05:00
fs-poll.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
idna.c unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
idna.h unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
inet.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
strscpy.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
strscpy.h unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
threadpool.c unix,win: fix threadpool race condition 2018-10-07 15:50:57 -07:00
timer.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
uv-common.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
uv-common.h unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
uv-data-getter-setters.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00