From fb74563941f0c28cdfb7e503474dc2119c843423 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 25 Aug 2021 17:51:56 +0200 Subject: [PATCH] getaddrinfo.3: Note that 'errno' is set in parallel with EAI_SYSTEM The previous wording wasn't very explicit, leaving room for believing that 'errno' may be 0 after returning EAI_SYSTEM. Use a wording similar to other pages, for added consistency. [mtk: edited commit message title; also, POSIX notes that 'errno' is set in this case.] Reported-by: Cristian Morales Vega Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man3/getaddrinfo.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/getaddrinfo.3 b/man3/getaddrinfo.3 index 35071b733..1e13e3ef2 100644 --- a/man3/getaddrinfo.3 +++ b/man3/getaddrinfo.3 @@ -583,9 +583,9 @@ and respectively). .TP .B EAI_SYSTEM -Other system error, check +Other system error; .I errno -for details. +is set to indicate the error. .PP The .BR gai_strerror ()