mirror of https://github.com/mkerrisk/man-pages
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:
parent
43ada5d427
commit
0d4b699de2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue