str(n)dup(3) typo in feature test macros
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… :/
strdup.3 renamed from usr/share/man/man3/strdup.3 +1 -1
@@ -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.
Signature · 5 lines
This signature is intentionally left blank. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): d8384bdbedc49ebaba2362b2dd559d5e-YjGdiButnEYOIcSUmuw+JF6tKEld0gVj@public.gmane.org
Quoted 6 lines · Andreas Wiese
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, notPOSIX_C_SOURCE. I should've known myself, indeed… :/
Thanks for the fix, Andreas. Applied.
Cheers,
Michael
Quoted 13 lines
strdup.3 renamed from usr/share/man/man3/strdup.3 +1
-1@@ -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
Quoted 2 lines
Best regards, a.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html