aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-26 00:29:01 +0800
committerGitHub <noreply@github.com>2024-07-25 12:29:01 -0400
commit5d1ccc12c48099d720bb39f7430c480a52953039 (patch)
treebb64071db6bfea113523c3d8d7a55d4e19fac2e5 /docs/src
parentf56f21d7da6bbf43ae6ec59e8559b49387ab0eda (diff)
downloadlibuv-5d1ccc12c48099d720bb39f7430c480a52953039.tar.gz
libuv-5d1ccc12c48099d720bb39f7430c480a52953039.zip
doc: correct names of Win32 APIs in fs.rst (#4408)
The docs there link to GetFinalPathNameByHandleA() and CreateFileA(), but src/win/fs.c uses GetFinalPathNameByHandleW() and CreateFileW().
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/fs.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/src/fs.rst b/docs/src/fs.rst
index 891ee74c..c039a8e6 100644
--- a/docs/src/fs.rst
+++ b/docs/src/fs.rst
@@ -454,7 +454,7 @@ API
.. 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://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfinalpathnamebyhandlea>`_.
+ Equivalent to :man:`realpath(3)` on Unix. Windows uses `GetFinalPathNameByHandleW <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfinalpathnamebyhandlew>`_.
The resulting string is stored in `req->ptr`.
.. warning::
@@ -653,7 +653,7 @@ File open constants
.. note::
`UV_FS_O_RANDOM` is only supported on Windows via
- `FILE_FLAG_RANDOM_ACCESS <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea>`_.
+ `FILE_FLAG_RANDOM_ACCESS <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew>`_.
.. c:macro:: UV_FS_O_RDONLY
@@ -670,7 +670,7 @@ File open constants
.. note::
`UV_FS_O_SEQUENTIAL` is only supported on Windows via
- `FILE_FLAG_SEQUENTIAL_SCAN <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea>`_.
+ `FILE_FLAG_SEQUENTIAL_SCAN <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew>`_.
.. c:macro:: UV_FS_O_SHORT_LIVED
@@ -678,7 +678,7 @@ File open constants
.. note::
`UV_FS_O_SHORT_LIVED` is only supported on Windows via
- `FILE_ATTRIBUTE_TEMPORARY <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea>`_.
+ `FILE_ATTRIBUTE_TEMPORARY <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew>`_.
.. c:macro:: UV_FS_O_SYMLINK
@@ -699,7 +699,7 @@ File open constants
.. note::
`UV_FS_O_TEMPORARY` is only supported on Windows via
- `FILE_ATTRIBUTE_TEMPORARY <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea>`_.
+ `FILE_ATTRIBUTE_TEMPORARY <https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew>`_.
.. c:macro:: UV_FS_O_TRUNC