libuv/src
cjihrig e539fc412f
unix,windows: return UV_EINVAL on NULL fs reqs
This commit introduces an INIT macro to file system functions on
Windows, similar to the one used on Unix platforms. The macro
checks for NULL requests, and returns UV_EINVAL in such
scenarios. This commit also adds support for passing NULL to
uv_fs_req_cleanup(). In this scenario, the function is a
no-op.

Fixes: https://github.com/libuv/libuv/issues/1508
PR-URL: https://github.com/libuv/libuv/pull/1509
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2017-09-02 19:04:01 -04:00
..
unix unix,windows: return UV_EINVAL on NULL fs reqs 2017-09-02 19:04:01 -04:00
win unix,windows: return UV_EINVAL on NULL fs reqs 2017-09-02 19:04:01 -04:00
fs-poll.c unix, win: count null byte on UV_ENOBUFS 2016-03-03 09:23:10 +01:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
uv-common.c fs: fix crash in uv_fs_scandir_next 2017-01-17 21:15:43 -06:00
uv-common.h unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00