From 8ab14e2cb9cec9cc15ee0cbb899e6ee304e22267 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Wed, 13 Jun 2018 06:58:21 -0700 Subject: [PATCH] doc: add uv_fs_fsync() AIX limitations Unlike other platforms, the fsync call on aix will not accept non-regular file file-descriptors. Refs: https://github.com/nodejs/node/pull/21298 PR-URL: https://github.com/libuv/libuv/pull/1879 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau --- docs/src/fs.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/fs.rst b/docs/src/fs.rst index 8e8fc2f1..e425d4ec 100644 --- a/docs/src/fs.rst +++ b/docs/src/fs.rst @@ -234,6 +234,10 @@ API Equivalent to :man:`fsync(2)`. + .. note:: + For AIX, `uv_fs_fsync` returns `UV_EBADF` on file descriptors referencing + non regular files. + .. c:function:: int uv_fs_fdatasync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) Equivalent to :man:`fdatasync(2)`.