summaryrefslogtreecommitdiff
path: root/deps/uv/docs/src/misc.rst
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/docs/src/misc.rst')
-rw-r--r--deps/uv/docs/src/misc.rst32
1 files changed, 19 insertions, 13 deletions
diff --git a/deps/uv/docs/src/misc.rst b/deps/uv/docs/src/misc.rst
index f32af48ff9..95237f49c7 100644
--- a/deps/uv/docs/src/misc.rst
+++ b/deps/uv/docs/src/misc.rst
@@ -17,11 +17,11 @@ Data types
.. c:member:: char* uv_buf_t.base
- Pointer to the base of the buffer. Readonly.
+ Pointer to the base of the buffer.
.. c:member:: size_t uv_buf_t.len
- Total bytes in the buffer. Readonly.
+ Total bytes in the buffer.
.. note::
On Windows this field is ULONG.
@@ -69,21 +69,24 @@ Data types
uv_timeval_t ru_utime; /* user CPU time used */
uv_timeval_t ru_stime; /* system CPU time used */
uint64_t ru_maxrss; /* maximum resident set size */
- uint64_t ru_ixrss; /* integral shared memory size */
- uint64_t ru_idrss; /* integral unshared data size */
- uint64_t ru_isrss; /* integral unshared stack size */
- uint64_t ru_minflt; /* page reclaims (soft page faults) */
+ uint64_t ru_ixrss; /* integral shared memory size (X) */
+ uint64_t ru_idrss; /* integral unshared data size (X) */
+ uint64_t ru_isrss; /* integral unshared stack size (X) */
+ uint64_t ru_minflt; /* page reclaims (soft page faults) (X) */
uint64_t ru_majflt; /* page faults (hard page faults) */
- uint64_t ru_nswap; /* swaps */
+ uint64_t ru_nswap; /* swaps (X) */
uint64_t ru_inblock; /* block input operations */
uint64_t ru_oublock; /* block output operations */
- uint64_t ru_msgsnd; /* IPC messages sent */
- uint64_t ru_msgrcv; /* IPC messages received */
- uint64_t ru_nsignals; /* signals received */
- uint64_t ru_nvcsw; /* voluntary context switches */
- uint64_t ru_nivcsw; /* involuntary context switches */
+ uint64_t ru_msgsnd; /* IPC messages sent (X) */
+ uint64_t ru_msgrcv; /* IPC messages received (X) */
+ uint64_t ru_nsignals; /* signals received (X) */
+ uint64_t ru_nvcsw; /* voluntary context switches (X) */
+ uint64_t ru_nivcsw; /* involuntary context switches (X) */
} uv_rusage_t;
+ Members marked with `(X)` are unsupported on Windows.
+ See :man:`getrusage(2)` for supported fields on Unix
+
.. c:type:: uv_cpu_info_t
Data type for CPU information.
@@ -183,7 +186,9 @@ API
.. c:function:: int uv_get_process_title(char* buffer, size_t size)
- Gets the title of the current process.
+ Gets the title of the current process. If `buffer` is `NULL` or `size` is
+ zero, `UV_EINVAL` is returned. If `size` cannot accommodate the process
+ title and terminating `NULL` character, the function returns `UV_ENOBUFS`.
.. c:function:: int uv_set_process_title(const char* title)
@@ -203,6 +208,7 @@ API
.. note::
On Windows not all fields are set, the unsupported fields are filled with zeroes.
+ See :c:type:`uv_rusage_t` for more details.
.. c:function:: int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count)