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 <christian.morales.vega@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-08-25 17:51:56 +02:00 committed by Michael Kerrisk
parent 111ccf7e90
commit fb74563941
1 changed files with 2 additions and 2 deletions

View File

@ -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 ()