All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug] str(n)dup(3) typo in feature test macros
@ 2013-09-03  7:31 Andreas Wiese
       [not found] ` <d8384bdbedc49ebaba2362b2dd559d5e-YjGdiButnEYOIcSUmuw+JF6tKEld0gVj@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Wiese @ 2013-09-03  7:31 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hey, folks.

I just stumbled upon a typo in strdup(3)-family manual page.  Took me an
hour and much cursing on flex, that strndup wasn't defined when building
with -std=c99 since it's spelled _POSIX_C_SOURCE, not POSIX_C_SOURCE.  I
should've known myself, indeed… :/

--- /usr/share/man/man3/strdup.3	2013-09-02 15:04:48.736602203 +0200
+++ strdup.3	2013-09-03 09:26:50.210203381 +0200
@@ -63,7 +63,7 @@
  .RS 4
  .TP 4
  Since glibc 2.10:
-POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700
+_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700
  .TP
  Before glibc 2.10:
  _GNU_SOURCE


Best regards, a.
-- 
This signature is intentionally left blank.
--
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

* Re: [Bug] str(n)dup(3) typo in feature test macros
       [not found] ` <d8384bdbedc49ebaba2362b2dd559d5e-YjGdiButnEYOIcSUmuw+JF6tKEld0gVj@public.gmane.org>
@ 2013-09-04  6:15   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-09-04  6:15 UTC (permalink / raw)
  To: Andreas Wiese
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA

On 09/03/13 09:31, Andreas Wiese wrote:
> Hey, folks.
> 
> I just stumbled upon a typo in strdup(3)-family manual page.  Took me an
> hour and much cursing on flex, that strndup wasn't defined when building
> with -std=c99 since it's spelled _POSIX_C_SOURCE, not POSIX_C_SOURCE.  I
> should've known myself, indeed… :/

Thanks for the fix, Andreas. Applied.

Cheers,

Michael


> --- /usr/share/man/man3/strdup.3	2013-09-02 15:04:48.736602203 +0200
> +++ strdup.3	2013-09-03 09:26:50.210203381 +0200
> @@ -63,7 +63,7 @@
>   .RS 4
>   .TP 4
>   Since glibc 2.10:
> -POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700
> +_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700
>   .TP
>   Before glibc 2.10:
>   _GNU_SOURCE
> 
> 
> Best regards, a.
> 

--
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:[~2013-09-04  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03  7:31 [Bug] str(n)dup(3) typo in feature test macros Andreas Wiese
     [not found] ` <d8384bdbedc49ebaba2362b2dd559d5e-YjGdiButnEYOIcSUmuw+JF6tKEld0gVj@public.gmane.org>
2013-09-04  6:15   ` 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.