gethostname.2: Update FTM requirements for gethostname()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-01-04 11:50:30 +01:00
parent f1663f029c
commit 6e5cd0d9c1
1 changed files with 4 additions and 5 deletions

View File

@ -47,11 +47,10 @@ Feature Test Macro Requirements for glibc (see
.PP
.ad l
.BR gethostname ():
.RS 4
Since glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
.br
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200112L
_XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L ||
/* glibc 2.19 and earlier */ _BSD_SOURCE
.\" The above is something of a simplification
.\" also in glibc before 2.3 there was a bit churn
.RE
.PP
.BR sethostname ():