diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-06-22 18:59:34 +0200 |
---|---|---|
committer | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-11-06 15:45:00 +0100 |
commit | fd02ab681b6b4403e6a357413dc52df7ef7c5cde (patch) | |
tree | 9a8e670aea48289ef0bfddf98f406762e71e7f46 /docs/src | |
parent | 96ea5ac96d71300d2d7b89bb319102eb2c7a0a28 (diff) | |
download | libuv-fd02ab681b6b4403e6a357413dc52df7ef7c5cde.tar.gz libuv-fd02ab681b6b4403e6a357413dc52df7ef7c5cde.zip |
pipe: allow access from other users
Adds new uv_pipe_chmod function which can be used to make the pipe
writable or readable by all users.
PR-URL: https://github.com/libuv/libuv/pull/1386
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pipe.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/src/pipe.rst b/docs/src/pipe.rst index d33b0f2b..bdaeeba9 100644 --- a/docs/src/pipe.rst +++ b/docs/src/pipe.rst @@ -102,3 +102,12 @@ API and call ``uv_accept(pipe, handle)``. .. seealso:: The :c:type:`uv_stream_t` API functions also apply. + +.. c:function:: int uv_pipe_chmod(uv_pipe_t* handle, int flags) + + Alters pipe permissions, allowing it to be accessed from processes run by + different users. Makes the pipe writable or readable by all users. Mode can + be ``UV_WRITABLE``, ``UV_READABLE`` or ``UV_WRITABLE | UV_READABLE``. This + function is blocking. + + .. versionadded:: 1.16.0 |