From 9602952bb568f2e774fdfe2a6eabeb896227e7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sun, 9 Jul 2017 14:22:06 +0200 Subject: [PATCH] doc: fix prototype for uv_tty_init and uv_fs_close PR-URL: https://github.com/libuv/libuv/pull/1413 Reviewed-By: Bartosz Sosnowski Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- docs/src/guide/filesystem.rst | 2 +- docs/src/guide/utilities.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/guide/filesystem.rst b/docs/src/guide/filesystem.rst index f4004c46..06a1bf84 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 fe3c0da6..33e036dd 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.