]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
feature_test_macros.7: Note that _REENTRANT and _THREAD_SAFE are now deprecated
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 8 Dec 2016 08:52:38 +0000 (09:52 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 10 Dec 2016 14:20:21 +0000 (15:20 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/feature_test_macros.7

index 08ac6fa8b41c88736ba4cfdf90e05fbfc2acb035..e6b9fba47b005185f394f738cdc2379e5f8a880a 100644 (file)
@@ -529,13 +529,19 @@ and
 .BR _SVID_SOURCE .
 .TP
 .B _REENTRANT
-Defining this macro exposes definitions of certain reentrant functions.
-For multithreaded programs, use
-.I "cc\ \-pthread"
-instead.
+Historically,
+defining this macro exposed definitions of certain reentrant functions.
+However, already for many years this macro has had few effects,
+and since glibc 2.3, no effects that were not also achieved by defining
+.BR _POSIX_C_SOURCE
+with a value of 199606L or greater.
+This macro is now deprecated; since glibc 2.25,
+defining it has the same effect as defining
+.BR _POSIX_C_SOURCE
+with a value of 199606L or greater.
 .TP
 .B _THREAD_SAFE
-Synonym for
+Synonym for the (deprecated)
 .BR _REENTRANT ,
 provided for compatibility with some other implementations.
 .TP