aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/fs.rst13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/src/fs.rst b/docs/src/fs.rst
index dc16ff08..28356c2d 100644
--- a/docs/src/fs.rst
+++ b/docs/src/fs.rst
@@ -99,7 +99,8 @@ Data types
UV_FS_LCHOWN,
UV_FS_OPENDIR,
UV_FS_READDIR,
- UV_FS_CLOSEDIR
+ UV_FS_CLOSEDIR,
+ UV_FS_MKSTEMP
} uv_fs_type;
.. c:type:: uv_statfs_t
@@ -245,10 +246,14 @@ API
.. c:function:: int uv_fs_mkdtemp(uv_loop_t* loop, uv_fs_t* req, const char* tpl, uv_fs_cb cb)
- Equivalent to :man:`mkdtemp(3)`.
+ Equivalent to :man:`mkdtemp(3)`. The result can be found as a null terminated string at `req->path`.
- .. note::
- The result can be found as a null terminated string at `req->path`.
+.. c:function:: int uv_fs_mkstemp(uv_loop_t* loop, uv_fs_t* req, const char* tpl, uv_fs_cb cb)
+
+ Equivalent to :man:`mkstemp(3)`. The created file path can be found as a null terminated string at `req->path`.
+ The file descriptor can be found as an integer at `req->result`.
+
+ .. versionadded:: 1.34.0
.. c:function:: int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb)