aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorYuval Brik <yuval@brik.org.il>2015-09-19 00:40:34 +0300
committerSaúl Ibarra Corretgé <saghul@gmail.com>2015-12-05 11:32:58 +0100
commite76b8838e51f6e8f1944b6c6d50c3948ed764a0b (patch)
tree9c1c475c88fbef18cbc1568d0f8acc96a1ff14bb /docs/src
parent176fdc735205f009b9c66e498d7b35a0142531c2 (diff)
downloadlibuv-e76b8838e51f6e8f1944b6c6d50c3948ed764a0b.tar.gz
libuv-e76b8838e51f6e8f1944b6c6d50c3948ed764a0b.zip
fs: add uv_fs_realpath()
Equivalent to realpath(3), returns the full resolved absolute path of a file or directory. PR-URL: https://github.com/libuv/libuv/pull/531 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/fs.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/src/fs.rst b/docs/src/fs.rst
index 33c04406..69e283f4 100644
--- a/docs/src/fs.rst
+++ b/docs/src/fs.rst
@@ -279,6 +279,16 @@ API
Equivalent to :man:`readlink(2)`.
+.. 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()``.
+
+ .. note::
+ This function is not implemented on Windows XP and Windows Server 2003.
+ On these systems, UV_ENOSYS is returned.
+
+ .. versionadded:: 1.8.0
+
.. c:function:: int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
.. c:function:: int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)