mirror of https://github.com/mkerrisk/man-pages
gethostname.2: Update FTM requirements for gethostname()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f1663f029c
commit
6e5cd0d9c1
|
@ -47,11 +47,10 @@ Feature Test Macro Requirements for glibc (see
|
||||||
.PP
|
.PP
|
||||||
.ad l
|
.ad l
|
||||||
.BR gethostname ():
|
.BR gethostname ():
|
||||||
.RS 4
|
_XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L ||
|
||||||
Since glibc 2.12:
|
/* glibc 2.19 and earlier */ _BSD_SOURCE
|
||||||
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
|
.\" The above is something of a simplification
|
||||||
.br
|
.\" also in glibc before 2.3 there was a bit churn
|
||||||
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200112L
|
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.BR sethostname ():
|
.BR sethostname ():
|
||||||
|
|
Loading…
Reference in New Issue