diff --git a/docs/src/fs.rst b/docs/src/fs.rst index cc8f5525..27d92d0b 100644 --- a/docs/src/fs.rst +++ b/docs/src/fs.rst @@ -229,7 +229,7 @@ API Limited equivalent to ``sendfile(2)``. -.. c:function:: int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, uv_fs_cb cb) +.. c:function:: int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb) Equivalent to ``access(2)`` on Unix. Windows uses ``GetFileAttributesW()``. diff --git a/include/uv.h b/include/uv.h index 9afdc0b5..d17f977b 100644 --- a/include/uv.h +++ b/include/uv.h @@ -1138,7 +1138,7 @@ UV_EXTERN int uv_fs_sendfile(uv_loop_t* loop, UV_EXTERN int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, - int flags, + int mode, uv_fs_cb cb); UV_EXTERN int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req,