* [PATCH 0/4] Trivialities
@ 2014-06-04 16:33 Rasmus Villemoes
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2014-06-04 16:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Rasmus Villemoes
Rasmus Villemoes (4):
getdate.3: Use blank definition of _GNU_SOURCE
open_by_handle_at.2: Add reference to feature_test_macros(7)
recvmmsg.2: Add reference to feature_test_macros(7)
sendmmsg.2: Add reference to feature_test_macros(7)
man2/open_by_handle_at.2 | 2 +-
man2/recvmmsg.2 | 2 +-
man2/sendmmsg.2 | 2 +-
man3/getdate.3 | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
--
1.9.2
--
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] 10+ messages in thread
* [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
@ 2014-06-04 16:33 ` Rasmus Villemoes
[not found] ` <1401899608-30515-2-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 2/4] open_by_handle_at.2: Add reference to feature_test_macros(7) Rasmus Villemoes
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2014-06-04 16:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Rasmus Villemoes
Only the definedness of _GNU_SOURCE matters, so eliminate a possible
source of confusion by not using a specific replacement text in the
example program.
Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
---
Notes:
Or maybe the intention was to define _XOPEN_SOURCE to the value 500,
since that is the minimal requirement for getdate(), and getdate_r()
is not used in the example.
man3/getdate.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/getdate.3 b/man3/getdate.3
index f286f98..df882b9 100644
--- a/man3/getdate.3
+++ b/man3/getdate.3
@@ -272,7 +272,7 @@ Call 3 ("12:22:33") succeeded:
.SS Program source
\&
.nf
-#define _GNU_SOURCE 500
+#define _GNU_SOURCE
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
--
1.9.2
--
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] 10+ messages in thread
* [PATCH 2/4] open_by_handle_at.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE Rasmus Villemoes
@ 2014-06-04 16:33 ` Rasmus Villemoes
[not found] ` <1401899608-30515-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 3/4] recvmmsg.2: " Rasmus Villemoes
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2014-06-04 16:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Rasmus Villemoes
Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
---
man2/open_by_handle_at.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/open_by_handle_at.2 b/man2/open_by_handle_at.2
index 45df008..1d22339 100644
--- a/man2/open_by_handle_at.2
+++ b/man2/open_by_handle_at.2
@@ -28,7 +28,7 @@ name_to_handle_at, open_by_handle_at \- obtain handle
for a pathname and open file via a handle
.SH SYNOPSIS
.nf
-.B #define _GNU_SOURCE
+.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sys/types.h>
.B #include <sys/stat.h>
.B #include <fcntl.h>
--
1.9.2
--
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] 10+ messages in thread
* [PATCH 3/4] recvmmsg.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE Rasmus Villemoes
2014-06-04 16:33 ` [PATCH 2/4] open_by_handle_at.2: Add reference to feature_test_macros(7) Rasmus Villemoes
@ 2014-06-04 16:33 ` Rasmus Villemoes
[not found] ` <1401899608-30515-4-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 4/4] sendmmsg.2: " Rasmus Villemoes
2014-06-04 18:54 ` [PATCH 0/4] Trivialities Michael Kerrisk (man-pages)
4 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2014-06-04 16:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Rasmus Villemoes
Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
---
man2/recvmmsg.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/recvmmsg.2 b/man2/recvmmsg.2
index c194d1f..1b46cb3 100644
--- a/man2/recvmmsg.2
+++ b/man2/recvmmsg.2
@@ -33,7 +33,7 @@
recvmmsg \- receive multiple messages on a socket
.SH SYNOPSIS
.nf
-.B "#define _GNU_SOURCE"
+.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BI "#include <sys/socket.h>"
.BI "int recvmmsg(int " sockfd ", struct mmsghdr *" msgvec \
--
1.9.2
--
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] 10+ messages in thread
* [PATCH 4/4] sendmmsg.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
` (2 preceding siblings ...)
2014-06-04 16:33 ` [PATCH 3/4] recvmmsg.2: " Rasmus Villemoes
@ 2014-06-04 16:33 ` Rasmus Villemoes
[not found] ` <1401899608-30515-5-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 18:54 ` [PATCH 0/4] Trivialities Michael Kerrisk (man-pages)
4 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2014-06-04 16:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Rasmus Villemoes
Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
---
man2/sendmmsg.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/sendmmsg.2 b/man2/sendmmsg.2
index 97c7ede..f987139 100644
--- a/man2/sendmmsg.2
+++ b/man2/sendmmsg.2
@@ -30,7 +30,7 @@
sendmmsg \- send multiple messages on a socket
.SH SYNOPSIS
.nf
-.B "#define _GNU_SOURCE"
+.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BI "#include <sys/socket.h>"
.BI "int sendmmsg(int " sockfd ", struct mmsghdr *" msgvec \
--
1.9.2
--
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] 10+ messages in thread
* Re: [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE
[not found] ` <1401899608-30515-2-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
@ 2014-06-04 18:44 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-04 18:44 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
Thanks, Rasmus. Applied.
Cheers,
Michael
On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Only the definedness of _GNU_SOURCE matters, so eliminate a possible
> source of confusion by not using a specific replacement text in the
> example program.
>
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
>
> Notes:
> Or maybe the intention was to define _XOPEN_SOURCE to the value 500,
> since that is the minimal requirement for getdate(), and getdate_r()
> is not used in the example.
>
> man3/getdate.3 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man3/getdate.3 b/man3/getdate.3
> index f286f98..df882b9 100644
> --- a/man3/getdate.3
> +++ b/man3/getdate.3
> @@ -272,7 +272,7 @@ Call 3 ("12:22:33") succeeded:
> .SS Program source
> \&
> .nf
> -#define _GNU_SOURCE 500
> +#define _GNU_SOURCE
> #include <time.h>
> #include <stdio.h>
> #include <stdlib.h>
>
--
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] 10+ messages in thread
* Re: [PATCH 2/4] open_by_handle_at.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
@ 2014-06-04 18:45 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-04 18:45 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
Thanks, Rasmus. Applied.
Cheers,
Michael
On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
> man2/open_by_handle_at.2 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man2/open_by_handle_at.2 b/man2/open_by_handle_at.2
> index 45df008..1d22339 100644
> --- a/man2/open_by_handle_at.2
> +++ b/man2/open_by_handle_at.2
> @@ -28,7 +28,7 @@ name_to_handle_at, open_by_handle_at \- obtain handle
> for a pathname and open file via a handle
> .SH SYNOPSIS
> .nf
> -.B #define _GNU_SOURCE
> +.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
> .B #include <sys/types.h>
> .B #include <sys/stat.h>
> .B #include <fcntl.h>
>
--
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] 10+ messages in thread
* Re: [PATCH 3/4] recvmmsg.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-4-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
@ 2014-06-04 18:45 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-04 18:45 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
Thanks, Rasmus. Applied.
Cheers,
Michael
On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
> man2/recvmmsg.2 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man2/recvmmsg.2 b/man2/recvmmsg.2
> index c194d1f..1b46cb3 100644
> --- a/man2/recvmmsg.2
> +++ b/man2/recvmmsg.2
> @@ -33,7 +33,7 @@
> recvmmsg \- receive multiple messages on a socket
> .SH SYNOPSIS
> .nf
> -.B "#define _GNU_SOURCE"
> +.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
> .BI "#include <sys/socket.h>"
>
> .BI "int recvmmsg(int " sockfd ", struct mmsghdr *" msgvec \
>
--
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] 10+ messages in thread
* Re: [PATCH 4/4] sendmmsg.2: Add reference to feature_test_macros(7)
[not found] ` <1401899608-30515-5-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
@ 2014-06-04 18:45 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-04 18:45 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
Thanks, Rasmus. Applied.
Cheers,
Michael
On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
> man2/sendmmsg.2 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man2/sendmmsg.2 b/man2/sendmmsg.2
> index 97c7ede..f987139 100644
> --- a/man2/sendmmsg.2
> +++ b/man2/sendmmsg.2
> @@ -30,7 +30,7 @@
> sendmmsg \- send multiple messages on a socket
> .SH SYNOPSIS
> .nf
> -.B "#define _GNU_SOURCE"
> +.B "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
> .BI "#include <sys/socket.h>"
>
> .BI "int sendmmsg(int " sockfd ", struct mmsghdr *" msgvec \
>
--
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] 10+ messages in thread
* Re: [PATCH 0/4] Trivialities
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
` (3 preceding siblings ...)
2014-06-04 16:33 ` [PATCH 4/4] sendmmsg.2: " Rasmus Villemoes
@ 2014-06-04 18:54 ` Michael Kerrisk (man-pages)
4 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-06-04 18:54 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Rasmus Villemoes (4):
> getdate.3: Use blank definition of _GNU_SOURCE
> open_by_handle_at.2: Add reference to feature_test_macros(7)
> recvmmsg.2: Add reference to feature_test_macros(7)
> sendmmsg.2: Add reference to feature_test_macros(7)
>
> man2/open_by_handle_at.2 | 2 +-
> man2/recvmmsg.2 | 2 +-
> man2/sendmmsg.2 | 2 +-
> man3/getdate.3 | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
Small stuff like this often goes unnoticed for ages before it gets noticed
and fixed. Thanks for catching this and sending the patches, Rasmus.
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] 10+ messages in thread
end of thread, other threads:[~2014-06-04 18:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-04 16:33 [PATCH 0/4] Trivialities Rasmus Villemoes
[not found] ` <1401899608-30515-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 16:33 ` [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE Rasmus Villemoes
[not found] ` <1401899608-30515-2-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 18:44 ` Michael Kerrisk (man-pages)
2014-06-04 16:33 ` [PATCH 2/4] open_by_handle_at.2: Add reference to feature_test_macros(7) Rasmus Villemoes
[not found] ` <1401899608-30515-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 18:45 ` Michael Kerrisk (man-pages)
2014-06-04 16:33 ` [PATCH 3/4] recvmmsg.2: " Rasmus Villemoes
[not found] ` <1401899608-30515-4-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 18:45 ` Michael Kerrisk (man-pages)
2014-06-04 16:33 ` [PATCH 4/4] sendmmsg.2: " Rasmus Villemoes
[not found] ` <1401899608-30515-5-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-06-04 18:45 ` Michael Kerrisk (man-pages)
2014-06-04 18:54 ` [PATCH 0/4] Trivialities Michael Kerrisk (man-pages)
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.