diff --git a/docs/src/guide/filesystem.rst b/docs/src/guide/filesystem.rst index f4004c460..06a1bf845 100644 --- a/docs/src/guide/filesystem.rst +++ b/docs/src/guide/filesystem.rst @@ -40,7 +40,7 @@ File descriptors are closed using .. code-block:: c - int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) + int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_os_fd_t fd, uv_fs_cb cb) Filesystem operation callbacks have the signature: diff --git a/docs/src/guide/utilities.rst b/docs/src/guide/utilities.rst index fe3c0da6b..33e036dd4 100644 --- a/docs/src/guide/utilities.rst +++ b/docs/src/guide/utilities.rst @@ -370,7 +370,7 @@ terminal information. The first thing to do is to initialize a ``uv_tty_t`` with the file descriptor it reads/writes from. This is achieved with:: - int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_file fd, int readable) + int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_os_fd_t fd, int readable) Set ``readable`` to true if you plan to use ``uv_read_start()`` on the stream.