Re: [PATCH] getaddrinfo.3: require POSIX.1-2001

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Andreas,

Sorry for the delay,

On 08/10/2015 12:33 PM, Andreas Schwab wrote:
> Since glibc 2.22 getaddrinfo etc. are only declared for POSIX.1-2001 or later.
> 
> Signed-off-by: Andreas Schwab <schwab@xxxxxxx>
> ---
>  man3/getaddrinfo.3 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/man3/getaddrinfo.3 b/man3/getaddrinfo.3
> index 7bf815a..a746bf4 100644
> --- a/man3/getaddrinfo.3
> +++ b/man3/getaddrinfo.3
> @@ -70,7 +70,8 @@ Feature Test Macro Requirements for glibc (see
>  .BR freeaddrinfo (),
>  .BR gai_strerror ():
>  .RS 4
> -_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
> +_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
> +.\" since glibc 2.22
>  .RE
>  .ad b
>  .SH DESCRIPTION

Orion also posted a very similar patch. I updated the page,
but just mentioned "_POSIX_C_SOURCE >= 200112L", since
"_XOPEN_SOURCE >= 600" implies "_POSIX_C_SOURCE >= 200112L".
(For the next release, the FTM descriptions in many pages 
have been simplified in this way.)

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux