doc,fs: improve documentation
Update description of `uv_fs_readlink` and `uv_fs_realpath` to describe where the resulting string goes. Fixes: https://github.com/libuv/libuv/issues/1771 PR_URL: https://github.com/libuv/libuv/pull/1786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
parent
00d13c5b9f
commit
1d1287d764
@ -148,8 +148,8 @@ Public members
|
||||
|
||||
.. c:member:: void* uv_fs_t.ptr
|
||||
|
||||
Stores the result of :c:func:`uv_fs_readlink` and serves as an alias to
|
||||
`statbuf`.
|
||||
Stores the result of :c:func:`uv_fs_readlink` and
|
||||
:c:func:`uv_fs_realpath` and serves as an alias to `statbuf`.
|
||||
|
||||
.. seealso:: The :c:type:`uv_req_t` members also apply.
|
||||
|
||||
@ -311,10 +311,12 @@ API
|
||||
.. c:function:: int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb)
|
||||
|
||||
Equivalent to :man:`readlink(2)`.
|
||||
The resulting string is stored in `req->ptr`.
|
||||
|
||||
.. c:function:: int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb)
|
||||
|
||||
Equivalent to :man:`realpath(3)` on Unix. Windows uses `GetFinalPathNameByHandle <https://msdn.microsoft.com/en-us/library/windows/desktop/aa364962(v=vs.85).aspx>`_.
|
||||
The resulting string is stored in `req->ptr`.
|
||||
|
||||
.. warning::
|
||||
This function has certain platform-specific caveats that were discovered when used in Node.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user