aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-01-06 15:17:54 +1300
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-01-08 12:14:13 +1300
commitba694dd0b0f926f77a7876d02adca96578cd13e4 (patch)
tree6eefb484e1e699c1f29ca64adc5859c827110003 /man7
parent0385c88eda6a369a3444c541494a457c83cdbe58 (diff)
downloadman-pages-ba694dd0b0f926f77a7876d02adca96578cd13e4.tar.gz
feature_test_macros.7: Document _DEFAULT_SOURCE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/feature_test_macros.713
1 files changed, 13 insertions, 0 deletions
diff --git a/man7/feature_test_macros.7 b/man7/feature_test_macros.7
index 02d6cef49e..bfdc3d37a5 100644
--- a/man7/feature_test_macros.7
+++ b/man7/feature_test_macros.7
@@ -281,6 +281,19 @@ System V-derived definitions.
(SVID == System V Interface Definition; see
.BR standards (7).)
.TP
+.BR _DEFAULT_SOURCE " (since glibc 2.19)"
+Defining this macro provides an effect similar to
+the feature test macros that are defined by default; that is:
+
+ cc \-D_BSD_SOURCE \-D_SVID_SOURCE \-D_POSIX_C_SOURCE=200809
+
+This macro can be defined to ensure that the "default"
+definitions are provided even when the defaults would otherwise
+be disabled,
+as happens when individual macros are explicitly defined,
+or the compiler is invoked in one of its "standard" modes (e.g.,
+.IR "cc\ \-std=c99" ).
+.TP
.BR _ATFILE_SOURCE " (since glibc 2.4)"
Defining this macro with any value causes header files to expose
declarations of a range of functions with the suffix "at";