aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-02-04 10:00:07 -0500
committercjihrig <cjihrig@gmail.com>2019-02-05 08:46:28 -0500
commit8865e72e25fc8aba94da7c9e18c3b5629d288ecc (patch)
tree17f546177306ecbd7d2d9efc270a14c0b4967230 /docs/src
parente2baa87b59d184f586ee19f0f3f8049ff4e17c58 (diff)
downloadlibuv-8865e72e25fc8aba94da7c9e18c3b5629d288ecc.tar.gz
libuv-8865e72e25fc8aba94da7c9e18c3b5629d288ecc.zip
src,include: define UV_MAXHOSTNAMESIZE
This commit adds UV_MAXHOSTNAMESIZE for working with uv_os_gethostname(). Prior to this commit, this logic was duplicated in several places across libuv and Node.js alone. PR-URL: https://github.com/libuv/libuv/pull/2175 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index ef003289..14e9acce 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -534,6 +534,10 @@ API
.. versionadded:: 1.12.0
+ .. versionchanged:: 1.26.0 `UV_MAXHOSTNAMESIZE` is available and represents
+ the maximum `buffer` size required to store a
+ hostname and terminating `nul` character.
+
.. c:function:: int uv_os_getpriority(uv_pid_t pid, int* priority)
Retrieves the scheduling priority of the process specified by `pid`. The