getnameinfo.3: Document feature test macros requirements for NI_MAXHOST and NI_MAXSERV

Since glibc 2.8, one of _BSD_SOURCE, _SVID_SOURCE, or _GNU_SOURCE
must be defined to obtain these definitions.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-12-03 12:23:22 +01:00
parent 43ada5d427
commit 0d4b699de2
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@
.\" 2004-12-14, mtk, Added EAI_OVERFLOW error
.\" 2004-12-14 Fixed description of error return
.\"
.TH GETNAMEINFO 3 2009-02-23 "GNU" "Linux Programmer's Manual"
.TH GETNAMEINFO 3 2009-12-03 "GNU" "Linux Programmer's Manual"
.SH NAME
getnameinfo \- address-to-name translation in protocol-independent manner
.SH SYNOPSIS
@ -214,6 +214,13 @@ defines the constants
#define NI_MAXSERV 32
.fi
.in
Since glibc 2.8,
these definitions are exposed only if one of the feature test macros
.BR _BSD_SOURCE ,
.BR _SVID_SOURCE ,
or
.BR _GNU_SOURCE
is defined.
.PP
The former is the constant
.B MAXDNAME