diff options
author | cjihrig <cjihrig@gmail.com> | 2017-10-30 19:21:34 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-11-01 10:32:12 -0400 |
commit | e8e6a8a500267f4ed33f0ba6459ec22f8b7a597f (patch) | |
tree | 482eec7b475df492119935118df09bb66cc56f15 /docs/src | |
parent | 719dfecf95b0c74af6494f05049e56d5771ebfae (diff) | |
download | libuv-e8e6a8a500267f4ed33f0ba6459ec22f8b7a597f.tar.gz libuv-e8e6a8a500267f4ed33f0ba6459ec22f8b7a597f.zip |
unix,win: add uv_os_getppid()
Refs: https://github.com/nodejs/node/issues/14957
PR-URL: https://github.com/libuv/libuv/pull/1610
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/misc.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst index 3fea708a..299cf034 100644 --- a/docs/src/misc.rst +++ b/docs/src/misc.rst @@ -59,6 +59,12 @@ Data types Abstract representation of a file descriptor. On Unix systems this is a `typedef` of `int` and on Windows a `HANDLE`. +.. c:type:: uv_pid_t + + Cross platform representation of a `pid_t`. + + .. versionadded:: 1.16.0 + .. c:type:: uv_rusage_t Data type for resource usage results. @@ -221,6 +227,12 @@ API 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:: uv_pid_t uv_os_getppid(void) + + Returns the parent process ID. + + .. versionadded:: 1.16.0 + .. c:function:: int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) Gets information about the CPUs on the system. The `cpu_infos` array will |