linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] getaddrinfo.3: require POSIX.1-2001
@ 2015-08-10 10:33 Andreas Schwab
       [not found] ` <mvmio8nmo0n.fsf-8jEJWzg51KSXcDkGTvBoYw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2015-08-10 10:33 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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
-- 
2.5.0


-- 
Andreas Schwab, SUSE Labs, schwab-l3A5Bk7waGM@public.gmane.org
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] getaddrinfo.3: require POSIX.1-2001
       [not found] ` <mvmio8nmo0n.fsf-8jEJWzg51KSXcDkGTvBoYw@public.gmane.org>
@ 2016-03-09  1:23   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-03-09  1:23 UTC (permalink / raw)
  To: Andreas Schwab
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA, Orion Poplawski

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-09  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).