diff options
author | Jameson Nash <vtjnash@gmail.com> | 2020-01-07 14:52:10 -0500 |
---|---|---|
committer | Jameson Nash <vtjnash@gmail.com> | 2020-01-08 11:52:02 -0500 |
commit | 8cb8afe25338580356b0e6a61837b880d2145cce (patch) | |
tree | d2e2a63f97c8420c9ca5420968820377314c057b /docs/src | |
parent | c072a3846df0e54030584a812360dd3ecbb79684 (diff) | |
download | libuv-8cb8afe25338580356b0e6a61837b880d2145cce.tar.gz libuv-8cb8afe25338580356b0e6a61837b880d2145cce.zip |
docs: switch from linux.die.net to man7.org
The former was missing `urandom`, while the later is the host site for
https://www.kernel.org/doc/man-pages
PR-URL: https://github.com/libuv/libuv/pull/2608
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/guide/processes.rst | 4 | ||||
-rw-r--r-- | docs/src/guide/threads.rst | 6 | ||||
-rw-r--r-- | docs/src/misc.rst | 2 | ||||
-rw-r--r-- | docs/src/sphinx-plugins/manpage.py | 2 |
4 files changed, 5 insertions, 9 deletions
diff --git a/docs/src/guide/processes.rst b/docs/src/guide/processes.rst index b6839f67..839774b5 100644 --- a/docs/src/guide/processes.rst +++ b/docs/src/guide/processes.rst @@ -42,12 +42,10 @@ exits. This is achieved using ``uv_spawn``. The ``uv_process_t`` struct only acts as the handle, all options are set via ``uv_process_options_t``. To simply launch a process, you need to set only the ``file`` and ``args`` fields. ``file`` is the program to execute. Since -``uv_spawn`` uses execvp_ internally, there is no need to supply the full +``uv_spawn`` uses :man:`execvp(3)` internally, there is no need to supply the full path. Finally as per underlying conventions, **the arguments array has to be one larger than the number of arguments, with the last element being NULL**. -.. _execvp: http://man7.org/linux/man-pages/man3/exec.3.html - After the call to ``uv_spawn``, ``uv_process_t.pid`` will contain the process ID of the child process. diff --git a/docs/src/guide/threads.rst b/docs/src/guide/threads.rst index f4593bf6..fde07bbe 100644 --- a/docs/src/guide/threads.rst +++ b/docs/src/guide/threads.rst @@ -12,7 +12,7 @@ asynchronously that is actually blocking, by spawning a thread and collecting the result when it is done. Today there are two predominant thread libraries: the Windows threads -implementation and POSIX's `pthreads`_. libuv's thread API is analogous to +implementation and POSIX's :man:`pthreads(7)`. libuv's thread API is analogous to the pthreads API and often has similar semantics. A notable aspect of libuv's thread facilities is that it is a self contained @@ -68,7 +68,7 @@ Synchronization Primitives This section is purposely spartan. This book is not about threads, so I only catalogue any surprises in the libuv APIs here. For the rest you can look at -the pthreads `man pages <pthreads>`_. +the :man:`pthreads(7)` man pages. Mutexes ~~~~~~~ @@ -379,8 +379,6 @@ which binds a third party library. It may go something like this: 4. The async callback, invoked in the main loop thread, which is the v8 thread, then interacts with v8 to invoke the JavaScript callback. -.. _pthreads: http://man7.org/linux/man-pages/man7/pthreads.7.html - ---- .. _node.js is cancer: http://widgetsandshit.com/teddziuba/2011/10/node-js-is-cancer.html diff --git a/docs/src/misc.rst b/docs/src/misc.rst index e05024b1..7cfac85f 100644 --- a/docs/src/misc.rst +++ b/docs/src/misc.rst @@ -646,7 +646,7 @@ API 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 + systems, `uv_os_uname()` is a thin wrapper around :man:`uname(2)`. Returns zero on success, and a non-zero error value otherwise. .. versionadded:: 1.25.0 diff --git a/docs/src/sphinx-plugins/manpage.py b/docs/src/sphinx-plugins/manpage.py index efb4cca2..672b0020 100644 --- a/docs/src/sphinx-plugins/manpage.py +++ b/docs/src/sphinx-plugins/manpage.py @@ -18,7 +18,7 @@ from string import Template def make_link_node(rawtext, app, name, manpage_num, options): ref = app.config.man_url_regex if not ref: - ref = "https://linux.die.net/man/%s/%s" % (manpage_num, name) + ref = "http://man7.org/linux/man-pages/man%s/%s.%s.html" %(manpage_num, name, manpage_num) else: s = Template(ref) ref = s.substitute(num=manpage_num, topic=name) |