From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Andreas Schwab <schwab-l3A5Bk7waGM@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Orion Poplawski <orion-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org>
Subject: Re: [PATCH] getaddrinfo.3: require POSIX.1-2001
Date: Wed, 9 Mar 2016 02:23:07 +0100 [thread overview]
Message-ID: <56DF7AFB.5060403@gmail.com> (raw)
In-Reply-To: <mvmio8nmo0n.fsf-8jEJWzg51KSXcDkGTvBoYw@public.gmane.org>
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-l3A5Bk7waGM@public.gmane.org>
> ---
> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2016-03-09 1:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 10:33 [PATCH] getaddrinfo.3: require POSIX.1-2001 Andreas Schwab
[not found] ` <mvmio8nmo0n.fsf-8jEJWzg51KSXcDkGTvBoYw@public.gmane.org>
2016-03-09 1:23 ` Michael Kerrisk (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56DF7AFB.5060403@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=orion-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org \
--cc=schwab-l3A5Bk7waGM@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.