summaryrefslogtreecommitdiff
path: root/deps/uv/docs
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/docs')
-rw-r--r--deps/uv/docs/src/fs.rst9
-rw-r--r--deps/uv/docs/src/misc.rst22
2 files changed, 22 insertions, 9 deletions
diff --git a/deps/uv/docs/src/fs.rst b/deps/uv/docs/src/fs.rst
index 21f9e27cb4..af97ec3a64 100644
--- a/deps/uv/docs/src/fs.rst
+++ b/deps/uv/docs/src/fs.rst
@@ -233,15 +233,6 @@ API
Equivalent to :man:`rename(2)`.
- .. note::
- On Windows if this function fails with ``UV_EBUSY``, ``UV_EPERM`` or
- ``UV_EACCES``, it will retry to rename the file up to four times with
- 250ms wait between attempts before giving up. If both `path` and
- `new_path` are existing directories this function will work only if
- target directory is empty.
-
- .. versionchanged:: 1.24.0 Added retrying and directory move support on Windows.
-
.. c:function:: int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
Equivalent to :man:`fsync(2)`.
diff --git a/deps/uv/docs/src/misc.rst b/deps/uv/docs/src/misc.rst
index cf4a7895cd..81c03a8530 100644
--- a/deps/uv/docs/src/misc.rst
+++ b/deps/uv/docs/src/misc.rst
@@ -145,6 +145,19 @@ Data types
char* homedir;
} uv_passwd_t;
+.. c:type:: uv_utsname_t
+
+ Data type for operating system name and version information.
+
+ ::
+
+ typedef struct uv_utsname_s {
+ char sysname[256];
+ char release[256];
+ char version[256];
+ char machine[256];
+ } uv_utsname_t;
+
API
---
@@ -549,3 +562,12 @@ API
for others it will be silently reduced to `PRIORITY_HIGH`.
.. versionadded:: 1.23.0
+
+.. c:function:: int uv_os_uname(uv_utsname_t* buffer)
+
+ Retrieves system information in `buffer`. The populated data includes the
+ operating system name, release, version, and machine. On non-Windows
+ systems, `uv_os_uname()` is a thin wrapper around :man:`uname(3)`. Returns
+ zero on success, and a non-zero error value otherwise.
+
+ .. versionadded:: 1.25.0