Debian Codegraph @

templates/man7/feature_test_macros.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "feature_test_macros"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-10"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "feature_test_macros - feature test macros"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "DESCRIPTION"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid ""
63 "Feature test macros allow the programmer to control the definitions that are "
64 "exposed by system header files when a program is compiled."
65 msgstr ""
66
67 #. type: Plain text
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 msgid ""
71 "B<NOTE:> In order to be effective, a feature test macro I<must be defined "
72 "before including any header files>. This can be done either in the "
73 "compilation command (I<cc -DMACRO=value>) or by defining the macro within "
74 "the source code before including any headers. The requirement that the "
75 "macro must be defined before including any header file exists because header "
76 "files may freely include one another. Thus, for example, in the following "
77 "lines, defining the B<_GNU_SOURCE> macro may have no effect because the "
78 "header I<E<lt>abc.hE<gt>> itself includes I<E<lt>xyz.hE<gt>> (POSIX "
79 "explicitly allows this):"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "#include E<lt>abc.hE<gt>\n"
88 "#define _GNU_SOURCE\n"
89 "#include E<lt>xyz.hE<gt>\n"
90 msgstr ""
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "Some feature test macros are useful for creating portable applications, by "
97 "preventing nonstandard definitions from being exposed. Other macros can be "
98 "used to expose nonstandard definitions that are not exposed by default."
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "The precise effects of each of the feature test macros described below can "
106 "be ascertained by inspecting the I<E<lt>features.hE<gt>> header file. "
107 "B<Note>: applications do I<not> need to directly include "
108 "I<E<lt>features.hE<gt>>; indeed, doing so is actively discouraged. See "
109 "NOTES."
110 msgstr ""
111
112 #. type: SS
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid "Specification of feature test macro requirements in manual pages"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "When a function requires that a feature test macro is defined, the manual "
124 "page SYNOPSIS typically includes a note of the following form (this example "
125 "from the B<acct>(2) manual page):"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid "B<#include E<lt>unistd.hE<gt>>"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid "B<int acct(const char *>I<filename>B<);>"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid ""
145 "Feature Test Macro Requirements for glibc (see\n"
146 "B<feature_test_macros>(7)):\n"
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid "B<acct>(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE E<lt> 500)"
153 msgstr ""
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The B<||> means that in order to obtain the declaration of B<acct>(2) from "
160 "I<E<lt>unistd.hE<gt>>, I<either> of the following macro definitions must be "
161 "made before including any header files:"
162 msgstr ""
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid ""
169 "#define _BSD_SOURCE\n"
170 "#define _XOPEN_SOURCE /* or any value E<lt> 500 */\n"
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "Alternatively, equivalent definitions can be included in the compilation "
178 "command:"
179 msgstr ""
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid ""
186 "cc -D_BSD_SOURCE\n"
187 "cc -D_XOPEN_SOURCE # Or any value E<lt> 500\n"
188 msgstr ""
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "Note that, as described below, B<some feature test macros are defined by "
195 "default>, so that it may not always be necessary to explicitly specify the "
196 "feature test macro(s) shown in the SYNOPSIS."
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "In a few cases, manual pages use a shorthand for expressing the feature test "
204 "macro requirements (this example from B<readahead>(2)):"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid ""
212 "B<#define _GNU_SOURCE>\n"
213 "B<#define _FILE_OFFSET_BITS 64>\n"
214 "B<#include E<lt>fcntl.hE<gt>>\n"
215 msgstr ""
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "B<ssize_t readahead(int >I<fd>B<, off_t *>I<offset>B<, size_t >I<count>B<);>\n"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "This format is employed when the feature test macros ensure that the proper "
229 "function declarations are visible, and the macros are not defined by default."
230 msgstr ""
231
232 #. type: SS
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "Feature test macros understood by glibc"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "The paragraphs below explain how feature test macros are handled in glibc "
244 "2.I<x>, I<x> E<gt> 0."
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid "First, though, a summary of a few details for the impatient:"
251 msgstr ""
252
253 #. type: IP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "\\[bu]"
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "The macros that you most likely need to use in modern source code are "
265 "B<_POSIX_C_SOURCE> (for definitions from various versions of POSIX.1), "
266 "B<_XOPEN_SOURCE> (for definitions from various versions of SUS), "
267 "B<_GNU_SOURCE> (for GNU and/or Linux specific stuff), and B<_DEFAULT_SOURCE> "
268 "(to get definitions that would normally be provided by default)."
269 msgstr ""
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "Certain macros are defined with default values. Thus, although one or more "
276 "macros may be indicated as being required in the SYNOPSIS of a man page, it "
277 "may not be necessary to define them explicitly. Full details of the "
278 "defaults are given later in this man page."
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "Defining B<_XOPEN_SOURCE> with a value of 600 or greater produces the same "
286 "effects as defining B<_POSIX_C_SOURCE> with a value of 200112L or greater. "
287 "Where one sees"
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "_POSIX_C_SOURCE E<gt>= 200112L\n"
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "in the feature test macro requirements in the SYNOPSIS of a man page, it is "
302 "implicit that the following has the same effect:"
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "_XOPEN_SOURCE E<gt>= 600\n"
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid ""
316 "Defining B<_XOPEN_SOURCE> with a value of 700 or greater produces the same "
317 "effects as defining B<_POSIX_C_SOURCE> with a value of 200809L or greater. "
318 "Where one sees"
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "_POSIX_C_SOURCE E<gt>= 200809L\n"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "_XOPEN_SOURCE E<gt>= 700\n"
333 msgstr ""
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid "glibc understands the following feature test macros:"
339 msgstr ""
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "B<__STRICT_ANSI__>"
346 msgstr ""
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "ISO Standard C. This macro is implicitly defined by B<gcc>(1) when invoked "
353 "with, for example, the I<-std=c99> or I<-ansi> flag."
354 msgstr ""
355
356 #. type: TP
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "B<_POSIX_C_SOURCE>"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "Defining this macro causes header files to expose definitions as follows:"
368 msgstr ""
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "The value 1 exposes definitions conforming to POSIX.1-1990 and ISO C (1990)."
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "The value 2 or greater additionally exposes definitions for POSIX.2-1992."
382 msgstr ""
383
384 #. 199506L functionality is available only since glibc 2.1
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "The value 199309L or greater additionally exposes definitions for POSIX.1b "
390 "(real-time extensions)."
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "The value 199506L or greater additionally exposes definitions for POSIX.1c "
398 "(threads)."
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "(Since glibc 2.3.3) The value 200112L or greater additionally exposes "
406 "definitions corresponding to the POSIX.1-2001 base specification (excluding "
407 "the XSI extension). This value also causes C95 (since glibc 2.12) and C99 "
408 "(since glibc 2.10) features to be exposed (in other words, the equivalent of "
409 "defining B<_ISOC99_SOURCE>)."
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid ""
416 "(Since glibc 2.10) The value 200809L or greater additionally exposes "
417 "definitions corresponding to the POSIX.1-2008 base specification (excluding "
418 "the XSI extension)."
419 msgstr ""
420
421 #. type: TP
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "B<_POSIX_SOURCE>"
426 msgstr ""
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "Defining this obsolete macro with any value is equivalent to defining "
433 "B<_POSIX_C_SOURCE> with the value 1."
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "Since this macro is obsolete, its usage is generally not documented when "
441 "discussing feature test macro requirements in the man pages."
442 msgstr ""
443
444 #. type: TP
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<_XOPEN_SOURCE>"
449 msgstr ""
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "Defining with any value exposes definitions conforming to POSIX.1, POSIX.2, "
456 "and XPG4."
457 msgstr ""
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "The value 500 or greater additionally exposes definitions for SUSv2 (UNIX "
464 "98)."
465 msgstr ""
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "(Since glibc 2.2) The value 600 or greater additionally exposes definitions "
472 "for SUSv3 (UNIX 03; i.e., the POSIX.1-2001 base specification plus the XSI "
473 "extension) and C99 definitions."
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid ""
480 "(Since glibc 2.10) The value 700 or greater additionally exposes definitions "
481 "for SUSv4 (i.e., the POSIX.1-2008 base specification plus the XSI extension)."
482 msgstr ""
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "If B<__STRICT_ANSI__> is not defined, or B<_XOPEN_SOURCE> is defined with a "
489 "value greater than or equal to 500 I<and> neither B<_POSIX_SOURCE> nor "
490 "B<_POSIX_C_SOURCE> is explicitly defined, then the following macros are "
491 "implicitly defined:"
492 msgstr ""
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid "B<_POSIX_SOURCE> is defined with the value 1."
498 msgstr ""
499
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid ""
504 "B<_POSIX_C_SOURCE> is defined, according to the value of B<_XOPEN_SOURCE>:"
505 msgstr ""
506
507 #. type: TP
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "B<_XOPEN_SOURCE> E<lt> 500"
512 msgstr ""
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid "B<_POSIX_C_SOURCE> is defined with the value 2."
518 msgstr ""
519
520 #. type: TP
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 #, no-wrap
524 msgid "500 E<lt>= B<_XOPEN_SOURCE> E<lt> 600"
525 msgstr ""
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid "B<_POSIX_C_SOURCE> is defined with the value 199506L."
531 msgstr ""
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "600 E<lt>= B<_XOPEN_SOURCE> E<lt> 700"
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid "B<_POSIX_C_SOURCE> is defined with the value 200112L."
544 msgstr ""
545
546 #. type: TP
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "700 E<lt>= B<_XOPEN_SOURCE> (since glibc 2.10)"
551 msgstr ""
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid "B<_POSIX_C_SOURCE> is defined with the value 200809L."
557 msgstr ""
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "In addition, defining B<_XOPEN_SOURCE> with a value of 500 or greater "
564 "produces the same effects as defining B<_XOPEN_SOURCE_EXTENDED>."
565 msgstr ""
566
567 #. type: TP
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "B<_XOPEN_SOURCE_EXTENDED>"
572 msgstr ""
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "If this macro is defined, I<and> B<_XOPEN_SOURCE> is defined, then expose "
579 "definitions corresponding to the XPG4v2 (SUSv1) UNIX extensions (UNIX 95). "
580 "Defining B<_XOPEN_SOURCE> with a value of 500 or more also produces the same "
581 "effect as defining B<_XOPEN_SOURCE_EXTENDED>. Use of "
582 "B<_XOPEN_SOURCE_EXTENDED> in new source code should be avoided."
583 msgstr ""
584
585 #. type: Plain text
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 msgid ""
589 "Since defining B<_XOPEN_SOURCE> with a value of 500 or more has the same "
590 "effect as defining B<_XOPEN_SOURCE_EXTENDED>, the latter (obsolete) feature "
591 "test macro is generally not described in the SYNOPSIS in man pages."
592 msgstr ""
593
594 #. type: TP
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "B<_ISOC99_SOURCE> (since glibc 2.1.3)"
599 msgstr ""
600
601 #. type: Plain text
602 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
603 #: opensuse-tumbleweed
604 msgid ""
605 "Exposes declarations consistent with the ISO C99 standard. Defining this "
606 "macro also exposes ISO C (1990) Amendment 1 (\"C95\") definitions. (The "
607 "primary change in C95 was support for international character sets.)"
608 msgstr ""
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "Invoking the C compiler with the option I<-std=c99> produces the same "
615 "effects as defining this macro."
616 msgstr ""
617
618 #. type: TP
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid "B<_ISOC11_SOURCE> (since glibc 2.16)"
623 msgstr ""
624
625 #. type: Plain text
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 msgid ""
629 "Exposes declarations consistent with the ISO C11 standard. Defining this "
630 "macro also enables C99 and C95 features (like B<_ISOC99_SOURCE>)."
631 msgstr ""
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid ""
637 "Invoking the C compiler with the option I<-std=c11> produces the same "
638 "effects as defining this macro."
639 msgstr ""
640
641 #. type: TP
642 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
643 #: opensuse-tumbleweed
644 #, no-wrap
645 msgid "B<_ISOC23_SOURCE> (since glibc 2.40)"
646 msgstr ""
647
648 #. type: Plain text
649 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
650 #: opensuse-tumbleweed
651 msgid "Exposes declarations consistent with the ISO C23 standard."
652 msgstr ""
653
654 #. type: Plain text
655 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
656 #: opensuse-tumbleweed
657 msgid ""
658 "Since glibc 2.31, an equivalent macro named B<_ISOC2X_SOURCE> was recognized "
659 "(because the C23 standard had not then been finalized). Although the use of "
660 "this macro is obsolete, glibc continues to recognize it for backward "
661 "compatibility."
662 msgstr ""
663
664 #. type: Plain text
665 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
666 #: opensuse-tumbleweed
667 msgid "Defining B<_ISOC23_SOURCE> also enables C11, C99, and C95 features."
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
672 #: opensuse-tumbleweed
673 msgid ""
674 "Invoking the C compiler with the option I<-std=c23> produces the same "
675 "effects as defining this macro."
676 msgstr ""
677
678 #. type: TP
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "B<_LARGEFILE64_SOURCE>"
683 msgstr ""
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid ""
689 "Expose definitions for the alternative API specified by the LFS (Large File "
690 "Summit) as a \"transitional extension\" to the Single UNIX Specification. "
691 "(See E<.UR http:\\:/\\:/opengroup.org\\:/platform\\:/lfs.html> E<.UE .)> The "
692 "alternative API consists of a set of new objects (i.e., functions and types) "
693 "whose names are suffixed with \"64\" (e.g., I<off64_t> versus I<off_t>, "
694 "B<lseek64>() versus B<lseek>(), etc.). New programs should not employ this "
695 "macro; instead I<_FILE_OFFSET_BITS=64> should be employed."
696 msgstr ""
697
698 #. type: TP
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "B<_LARGEFILE_SOURCE>"
703 msgstr ""
704
705 #. type: Plain text
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 msgid ""
709 "This macro was historically used to expose certain functions (specifically "
710 "B<fseeko>(3) and B<ftello>(3)) that address limitations of earlier APIs "
711 "(B<fseek>(3) and B<ftell>(3)) that use I<long> for file offsets. This "
712 "macro is implicitly defined if B<_XOPEN_SOURCE> is defined with a value "
713 "greater than or equal to 500. New programs should not employ this macro; "
714 "defining B<_XOPEN_SOURCE> as just described or defining B<_FILE_OFFSET_BITS> "
715 "with the value 64 is the preferred mechanism to achieve the same result."
716 msgstr ""
717
718 #. type: TP
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "B<_FILE_OFFSET_BITS>"
723 msgstr ""
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid ""
729 "Defining this macro with the value 64 automatically converts references to "
730 "32-bit functions and data types related to file I/O and filesystem "
731 "operations into references to their 64-bit counterparts. This is useful for "
732 "performing I/O on large files (E<gt> 2 Gigabytes) on 32-bit systems. It is "
733 "also useful when calling functions like B<copy_file_range>(2) that were "
734 "added more recently and that come only in 64-bit flavors. (Defining this "
735 "macro permits correctly written programs to use large files with only a "
736 "recompilation being required.)"
737 msgstr ""
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid ""
743 "64-bit systems naturally permit file sizes greater than 2 Gigabytes, and on "
744 "those systems this macro has no effect."
745 msgstr ""
746
747 #. type: TP
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, no-wrap
751 msgid "B<_TIME_BITS>"
752 msgstr ""
753
754 #. type: Plain text
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 msgid ""
758 "Defining this macro with the value 64 changes the width of B<time_t>(3type) "
759 "to 64-bit which allows handling of timestamps beyond 2038. It is closely "
760 "related to B<_FILE_OFFSET_BITS> and depending on implementation, may require "
761 "it set. This macro is available as of glibc 2.34."
762 msgstr ""
763
764 #. type: TP
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, no-wrap
768 msgid "B<_BSD_SOURCE> (deprecated since glibc 2.20)"
769 msgstr ""
770
771 #. type: Plain text
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 msgid ""
775 "Defining this macro with any value causes header files to expose BSD-derived "
776 "definitions."
777 msgstr ""
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid ""
783 "In glibc versions up to and including 2.18, defining this macro also causes "
784 "BSD definitions to be preferred in some situations where standards conflict, "
785 "unless one or more of B<_SVID_SOURCE>, B<_POSIX_SOURCE>, B<_POSIX_C_SOURCE>, "
786 "B<_XOPEN_SOURCE>, B<_XOPEN_SOURCE_EXTENDED>, or B<_GNU_SOURCE> is defined, "
787 "in which case BSD definitions are disfavored. Since glibc 2.19, "
788 "B<_BSD_SOURCE> no longer causes BSD definitions to be preferred in case of "
789 "conflicts."
790 msgstr ""
791
792 #. commit c941736c92fa3a319221f65f6755659b2a5e0a20
793 #. commit 498afc54dfee41d33ba519f496e96480badace8e
794 #. commit acd7f096d79c181866d56d4aaf3b043e741f1e2c
795 #. commit ade40b10ff5fa59a318cf55b9d8414b758e8df78
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "Since glibc 2.20, this macro is deprecated. It now has the same effect as "
801 "defining B<_DEFAULT_SOURCE>, but generates a compile-time warning (unless "
802 "B<_DEFAULT_SOURCE> is also defined). Use B<_DEFAULT_SOURCE> instead. To "
803 "allow code that requires B<_BSD_SOURCE> in glibc 2.19 and earlier and "
804 "B<_DEFAULT_SOURCE> in glibc 2.20 and later to compile without warnings, "
805 "define I<both> B<_BSD_SOURCE> and B<_DEFAULT_SOURCE>."
806 msgstr ""
807
808 #. type: TP
809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
811 #, no-wrap
812 msgid "B<_SVID_SOURCE> (deprecated since glibc 2.20)"
813 msgstr ""
814
815 #. type: Plain text
816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
818 msgid ""
819 "Defining this macro with any value causes header files to expose System V-"
820 "derived definitions. (SVID == System V Interface Definition; see "
821 "B<standards>(7).)"
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "Since glibc 2.20, this macro is deprecated in the same fashion as "
829 "B<_BSD_SOURCE>."
830 msgstr ""
831
832 #. type: TP
833 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
834 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
835 #, no-wrap
836 msgid "B<_DEFAULT_SOURCE> (since glibc 2.19)"
837 msgstr ""
838
839 #. type: Plain text
840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
842 msgid ""
843 "This macro can be defined to ensure that the \"default\" definitions are "
844 "provided even when the defaults would otherwise be disabled, as happens when "
845 "individual macros are explicitly defined, or the compiler is invoked in one "
846 "of its \"standard\" modes (e.g., I<cc\\ -std=c99>). Defining "
847 "B<_DEFAULT_SOURCE> without defining other individual macros or invoking the "
848 "compiler in one of its \"standard\" modes has no effect."
849 msgstr ""
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "The \"default\" definitions comprise those required by POSIX.1-2008 and ISO "
856 "C99, as well as various definitions originally derived from BSD and System "
857 "V. On glibc 2.19 and earlier, these defaults were approximately equivalent "
858 "to explicitly defining the following:"
859 msgstr ""
860
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 #, no-wrap
865 msgid "cc -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809\n"
866 msgstr ""
867
868 #. type: TP
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid "B<_ATFILE_SOURCE> (since glibc 2.4)"
873 msgstr ""
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "Defining this macro with any value causes header files to expose "
880 "declarations of a range of functions with the suffix \"at\"; see "
881 "B<openat>(2). Since glibc 2.10, this macro is also implicitly defined if "
882 "B<_POSIX_C_SOURCE> is defined with a value greater than or equal to 200809L."
883 msgstr ""
884
885 #. type: TP
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 #, no-wrap
889 msgid "B<_GNU_SOURCE>"
890 msgstr ""
891
892 #. type: Plain text
893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
895 msgid ""
896 "Defining this macro (with any value) implicitly defines B<_ATFILE_SOURCE>, "
897 "B<_LARGEFILE64_SOURCE>, B<_ISOC99_SOURCE>, B<_XOPEN_SOURCE_EXTENDED>, "
898 "B<_POSIX_SOURCE>, B<_POSIX_C_SOURCE> with the value 200809L (200112L before "
899 "glibc 2.10; 199506L before glibc 2.5; 199309L before glibc 2.1) and "
900 "B<_XOPEN_SOURCE> with the value 700 (600 before glibc 2.10; 500 before glibc "
901 "2.2). In addition, various GNU-specific extensions are also exposed."
902 msgstr ""
903
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 msgid ""
908 "Since glibc 2.19, defining B<_GNU_SOURCE> also has the effect of implicitly "
909 "defining B<_DEFAULT_SOURCE>. Before glibc 2.20, defining B<_GNU_SOURCE> "
910 "also had the effect of implicitly defining B<_BSD_SOURCE> and "
911 "B<_SVID_SOURCE>."
912 msgstr ""
913
914 #. type: TP
915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
917 #, no-wrap
918 msgid "B<_REENTRANT>"
919 msgstr ""
920
921 #. #-#-#-#-# archlinux: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
922 #. Zack Weinberg
923 #. There did once exist C libraries where it was necessary. The ones
924 #. I remember were proprietary Unix vendor libcs from the mid-1990s
925 #. You would get completely unlocked stdio without _REENTRANT.
926 #. type: Plain text
927 #. #-#-#-#-# debian-trixie: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
928 #. Zack Weinberg
929 #. There did once exist C libraries where it was necessary. The ones
930 #. I remember were proprietary Unix vendor libcs from the mid-1990s
931 #. You would get completely unlocked stdio without _REENTRANT.
932 #. type: Plain text
933 #. #-#-#-#-# debian-unstable: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
934 #. Zack Weinberg
935 #. There did once exist C libraries where it was necessary. The ones
936 #. I remember were proprietary Unix vendor libcs from the mid-1990s
937 #. You would get completely unlocked stdio without _REENTRANT.
938 #. type: Plain text
939 #. #-#-#-#-# fedora-44: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
940 #. Zack Weinberg
941 #. There did once exist C libraries where it was necessary. The ones
942 #. I remember were proprietary Unix vendor libcs from the mid-1990s
943 #. You would get completely unlocked stdio without _REENTRANT.
944 #. type: Plain text
945 #. #-#-#-#-# fedora-rawhide: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
946 #. Zack Weinberg
947 #. There did once exist C libraries where it was necessary. The ones
948 #. I remember were proprietary Unix vendor libcs from the mid-1990s
949 #. You would get completely unlocked stdio without _REENTRANT.
950 #. type: Plain text
951 #. #-#-#-#-# mageia-cauldron: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
952 #. Zack Weinberg
953 #. There did once exist C libraries where it was necessary. The ones
954 #. I remember were proprietary Unix vendor libcs from the mid-1990s
955 #. You would get completely unlocked stdio without _REENTRANT.
956 #. type: Plain text
957 #. #-#-#-#-# opensuse-leap-16-1: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
958 #. Zack Weinberg
959 #. There did once exist C libraries where it was necessary. The ones
960 #. I remember were proprietary Unix vendor libcs from the mid-1990s
961 #. You would get completely unlocked stdio without _REENTRANT.
962 #. type: Plain text
963 #. #-#-#-#-# opensuse-tumbleweed: feature_test_macros.7.pot (PACKAGE VERSION) #-#-#-#-#
964 #. Zack Weinberg
965 #. There did once exist C libraries where it was necessary. The ones
966 #. I remember were proprietary Unix vendor libcs from the mid-1990s
967 #. You would get completely unlocked stdio without _REENTRANT.
968 #. type: Plain text
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 msgid ""
972 "Historically, on various C libraries it was necessary to define this macro "
973 "in all multithreaded code. (Some C libraries may still require this.) In "
974 "glibc, this macro also exposed definitions of certain reentrant functions."
975 msgstr ""
976
977 #. type: Plain text
978 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
979 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
980 msgid ""
981 "However, glibc has been thread-safe by default for many years; since glibc "
982 "2.3, the only effect of defining B<_REENTRANT> has been to enable one or two "
983 "of the same declarations that are also enabled by defining "
984 "B<_POSIX_C_SOURCE> with a value of 199606L or greater."
985 msgstr ""
986
987 #. type: Plain text
988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
990 msgid ""
991 "B<_REENTRANT> is now obsolete. In glibc 2.25 and later, defining "
992 "B<_REENTRANT> is equivalent to defining B<_POSIX_C_SOURCE> with the value "
993 "199606L. If a higher POSIX conformance level is selected by any other means "
994 "(such as B<_POSIX_C_SOURCE> itself, B<_XOPEN_SOURCE>, B<_DEFAULT_SOURCE>, or "
995 "B<_GNU_SOURCE>), then defining B<_REENTRANT> has no effect."
996 msgstr ""
997
998 #. type: Plain text
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 msgid ""
1002 "This macro is automatically defined if one compiles with I<cc\\ -pthread>."
1003 msgstr ""
1004
1005 #. type: TP
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 #, no-wrap
1009 msgid "B<_THREAD_SAFE>"
1010 msgstr ""
1011
1012 #. type: Plain text
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 msgid ""
1016 "Synonym for the (deprecated) B<_REENTRANT>, provided for compatibility with "
1017 "some other implementations."
1018 msgstr ""
1019
1020 #. type: TP
1021 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1022 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1023 #, no-wrap
1024 msgid "B<_FORTIFY_SOURCE> (since glibc 2.3.4)"
1025 msgstr ""
1026
1027 #. For more detail, see:
1028 #. http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
1029 #. [PATCH] Object size checking to prevent (some) buffer overflows
1030 #. * From: Jakub Jelinek <jakub at redhat dot com>
1031 #. * To: gcc-patches at gcc dot gnu dot org
1032 #. * Date: Tue, 21 Sep 2004 04:16:40 -0400
1033 #. Look for __USE_FORTIFY_LEVEL in the header files
1034 #. type: Plain text
1035 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1036 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1037 msgid ""
1038 "Defining this macro causes some lightweight checks to be performed to detect "
1039 "some buffer overflow errors when employing various string and memory "
1040 "manipulation functions (for example, B<memcpy>(3), B<memset>(3), "
1041 "B<stpcpy>(3), B<strcpy>(3), B<strncpy>(3), B<strcat>(3), B<strncat>(3), "
1042 "B<sprintf>(3), B<snprintf>(3), B<vsprintf>(3), B<vsnprintf>(3), B<gets>(3), "
1043 "and wide character variants thereof). For some functions, argument "
1044 "consistency is checked; for example, a check is made that B<open>(2) has "
1045 "been supplied with a I<mode> argument when the specified flags include "
1046 "B<O_CREAT>. Not all problems are detected, just some common cases."
1047 msgstr ""
1048
1049 #
1050 #
1051 #. For example, given the following code
1052 #. int d;
1053 #. char buf[1000], buf[1000];
1054 #. strcpy(fmt, "Hello world
1055 #. %n");
1056 #. snprintf(buf, sizeof(buf), fmt, &d);
1057 #. Compiling with "gcc -D_FORTIFY_SOURCE=2 -O1" and then running will
1058 #. cause the following diagnostic at run time at the snprintf() call
1059 #. *** %n in writable segment detected ***
1060 #. Aborted (core dumped)
1061 #. type: Plain text
1062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1064 msgid ""
1065 "If B<_FORTIFY_SOURCE> is set to 1, with compiler optimization level 1 "
1066 "(I<gcc\\ -O1>) and above, checks that shouldn't change the behavior of "
1067 "conforming programs are performed. With B<_FORTIFY_SOURCE> set to 2, some "
1068 "more checking is added, but some conforming programs might fail."
1069 msgstr ""
1070
1071 #. type: Plain text
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 msgid ""
1075 "Some of the checks can be performed at compile time (via macros logic "
1076 "implemented in header files), and result in compiler warnings; other checks "
1077 "take place at run time, and result in a run-time error if the check fails."
1078 msgstr ""
1079
1080 #. type: Plain text
1081 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1082 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1083 msgid ""
1084 "With B<_FORTIFY_SOURCE> set to 3, additional checking is added to intercept "
1085 "some function calls used with an argument of variable size where the "
1086 "compiler can deduce an upper bound for its value. For example, a program "
1087 "where B<malloc>(3)'s size argument is variable can now be fortified."
1088 msgstr ""
1089
1090 #. glibc is not an absolute requirement (gcc has libssp; NetBSD/newlib
1091 #. and Darwin each have their own implementation), but let's keep it
1092 #. simple.
1093 #. type: Plain text
1094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1096 msgid ""
1097 "Use of this macro requires compiler support, available since gcc 4.0 and "
1098 "clang 2.6. Use of B<_FORTIFY_SOURCE> set to 3 requires gcc 12.0 or later, "
1099 "or clang 9.0 or later, in conjunction with glibc 2.33 or later."
1100 msgstr ""
1101
1102 #. type: SS
1103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1105 #, no-wrap
1106 msgid "Default definitions, implicit definitions, and combining definitions"
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1112 msgid ""
1113 "If no feature test macros are explicitly defined, then the following feature "
1114 "test macros are defined by default: B<_BSD_SOURCE> (in glibc 2.19 and "
1115 "earlier), B<_SVID_SOURCE> (in glibc 2.19 and earlier), B<_DEFAULT_SOURCE> "
1116 "(since glibc 2.19), B<_POSIX_SOURCE>, and B<_POSIX_C_SOURCE>=200809L "
1117 "(200112L before glibc 2.10; 199506L before glibc 2.4; 199309L before glibc "
1118 "2.1)."
1119 msgstr ""
1120
1121 #. type: Plain text
1122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1123 #: opensuse-tumbleweed
1124 msgid ""
1125 "If any of B<__STRICT_ANSI__>, B<_ISOC99_SOURCE>, B<_ISOC11_SOURCE> (since "
1126 "glibc 2.18), B<_ISOC23_SOURCE> (since glibc 2.40), B<_POSIX_SOURCE>, "
1127 "B<_POSIX_C_SOURCE>, B<_XOPEN_SOURCE>, B<_XOPEN_SOURCE_EXTENDED> (in glibc "
1128 "2.11 and earlier), B<_BSD_SOURCE> (in glibc 2.19 and earlier), or "
1129 "B<_SVID_SOURCE> (in glibc 2.19 and earlier) is explicitly defined, then "
1130 "B<_BSD_SOURCE>, B<_SVID_SOURCE>, and B<_DEFAULT_SOURCE> are not defined by "
1131 "default."
1132 msgstr ""
1133
1134 #. type: Plain text
1135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1137 msgid ""
1138 "If B<_POSIX_SOURCE> and B<_POSIX_C_SOURCE> are not explicitly defined, and "
1139 "either B<__STRICT_ANSI__> is not defined or B<_XOPEN_SOURCE> is defined with "
1140 "a value of 500 or more, then"
1141 msgstr ""
1142
1143 #. type: Plain text
1144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1146 msgid "B<_POSIX_SOURCE> is defined with the value 1; and"
1147 msgstr ""
1148
1149 #. type: Plain text
1150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1152 msgid "B<_POSIX_C_SOURCE> is defined with one of the following values:"
1153 msgstr ""
1154
1155 #. type: Plain text
1156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1158 msgid "2, if B<_XOPEN_SOURCE> is defined with a value less than 500;"
1159 msgstr ""
1160
1161 #. type: Plain text
1162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1164 msgid ""
1165 "199506L, if B<_XOPEN_SOURCE> is defined with a value greater than or equal "
1166 "to 500 and less than 600; or"
1167 msgstr ""
1168
1169 #. type: Plain text
1170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1172 msgid ""
1173 "(since glibc 2.4) 200112L, if B<_XOPEN_SOURCE> is defined with a value "
1174 "greater than or equal to 600 and less than 700."
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 msgid ""
1181 "(Since glibc 2.10) 200809L, if B<_XOPEN_SOURCE> is defined with a value "
1182 "greater than or equal to 700."
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 msgid ""
1189 "Older versions of glibc do not know about the values 200112L and 200809L for "
1190 "B<_POSIX_C_SOURCE>, and the setting of this macro will depend on the glibc "
1191 "version."
1192 msgstr ""
1193
1194 #. type: Plain text
1195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1197 msgid ""
1198 "If B<_XOPEN_SOURCE> is undefined, then the setting of B<_POSIX_C_SOURCE> "
1199 "depends on the glibc version: 199506L, before glibc 2.4; 200112L, since "
1200 "glibc 2.4 to glibc 2.9; and 200809L, since glibc 2.10."
1201 msgstr ""
1202
1203 #. type: Plain text
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 msgid "Multiple macros can be defined; the results are additive."
1207 msgstr ""
1208
1209 #. type: SH
1210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1212 #, no-wrap
1213 msgid "STANDARDS"
1214 msgstr ""
1215
1216 #. type: Plain text
1217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1219 msgid ""
1220 "POSIX.1 specifies B<_POSIX_C_SOURCE>, B<_POSIX_SOURCE>, and B<_XOPEN_SOURCE>."
1221 msgstr ""
1222
1223 #. type: Plain text
1224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1226 msgid ""
1227 "B<_FILE_OFFSET_BITS> is not specified by any standard, but is employed on "
1228 "some other implementations."
1229 msgstr ""
1230
1231 #. type: Plain text
1232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1234 msgid ""
1235 "B<_BSD_SOURCE>, B<_SVID_SOURCE>, B<_DEFAULT_SOURCE>, B<_ATFILE_SOURCE>, "
1236 "B<_GNU_SOURCE>, B<_FORTIFY_SOURCE>, B<_REENTRANT>, and B<_THREAD_SAFE> are "
1237 "specific to glibc."
1238 msgstr ""
1239
1240 #. type: SH
1241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1243 #, no-wrap
1244 msgid "HISTORY"
1245 msgstr ""
1246
1247 #. type: Plain text
1248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1250 msgid ""
1251 "B<_XOPEN_SOURCE_EXTENDED> was specified by XPG4v2 (aka SUSv1), but is not "
1252 "present in SUSv2 and later."
1253 msgstr ""
1254
1255 #. type: SH
1256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1258 #, no-wrap
1259 msgid "NOTES"
1260 msgstr ""
1261
1262 #. type: Plain text
1263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1265 msgid ""
1266 "I<E<lt>features.hE<gt>> is a Linux/glibc-specific header file. Other "
1267 "systems have an analogous file, but typically with a different name. This "
1268 "header file is automatically included by other header files as required: it "
1269 "is not necessary to explicitly include it in order to employ feature test "
1270 "macros."
1271 msgstr ""
1272
1273 #. type: Plain text
1274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1276 msgid ""
1277 "According to which of the above feature test macros are defined, "
1278 "I<E<lt>features.hE<gt>> internally defines various other macros that are "
1279 "checked by other glibc header files. These macros have names prefixed by "
1280 "two underscores (e.g., B<__USE_MISC>). Programs should I<never> define "
1281 "these macros directly: instead, the appropriate feature test macro(s) from "
1282 "the list above should be employed."
1283 msgstr ""
1284
1285 #. type: SH
1286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1288 #, no-wrap
1289 msgid "EXAMPLES"
1290 msgstr ""
1291
1292 #. type: Plain text
1293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1295 msgid ""
1296 "The program below can be used to explore how the various feature test macros "
1297 "are set depending on the glibc version and what feature test macros are "
1298 "explicitly set. The following shell session, on a system with glibc 2.10, "
1299 "shows some examples of what we would see:"
1300 msgstr ""
1301
1302 #. type: Plain text
1303 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1304 #: opensuse-tumbleweed
1305 #, no-wrap
1306 msgid ""
1307 "$B< cc ftm.c>\n"
1308 "$B< ./a.out>\n"
1309 "_POSIX_SOURCE defined\n"
1310 "_POSIX_C_SOURCE defined: 200809L\n"
1311 "_BSD_SOURCE defined\n"
1312 "_SVID_SOURCE defined\n"
1313 "_ATFILE_SOURCE defined\n"
1314 "$B< cc -D_XOPEN_SOURCE=500 ftm.c>\n"
1315 "$B< ./a.out>\n"
1316 "_POSIX_SOURCE defined\n"
1317 "_POSIX_C_SOURCE defined: 199506L\n"
1318 "_XOPEN_SOURCE defined: 500\n"
1319 "$B< cc -D_GNU_SOURCE ftm.c>\n"
1320 "$B< ./a.out>\n"
1321 "_POSIX_SOURCE defined\n"
1322 "_POSIX_C_SOURCE defined: 200809L\n"
1323 "_ISOC99_SOURCE defined\n"
1324 "_XOPEN_SOURCE defined: 700\n"
1325 "_XOPEN_SOURCE_EXTENDED defined\n"
1326 "_LARGEFILE64_SOURCE defined\n"
1327 "_BSD_SOURCE defined\n"
1328 "_SVID_SOURCE defined\n"
1329 "_ATFILE_SOURCE defined\n"
1330 "_GNU_SOURCE defined\n"
1331 msgstr ""
1332
1333 #. type: SS
1334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1336 #, no-wrap
1337 msgid "Program source"
1338 msgstr ""
1339
1340 #. type: Plain text
1341 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1342 #: opensuse-tumbleweed
1343 #, no-wrap
1344 msgid ""
1345 "/* ftm.c */\n"
1346 "\\&\n"
1347 "#include E<lt>stdint.hE<gt>\n"
1348 "#include E<lt>stdio.hE<gt>\n"
1349 "#include E<lt>unistd.hE<gt>\n"
1350 "#include E<lt>stdlib.hE<gt>\n"
1351 "\\&\n"
1352 "int\n"
1353 "main(int argc, char *argv[])\n"
1354 "{\n"
1355 "#ifdef _POSIX_SOURCE\n"
1356 " printf(\"_POSIX_SOURCE defined\\[rs]n\");\n"
1357 "#endif\n"
1358 "\\&\n"
1359 "#ifdef _POSIX_C_SOURCE\n"
1360 " printf(\"_POSIX_C_SOURCE defined: %jdL\\[rs]n\",\n"
1361 " (intmax_t) _POSIX_C_SOURCE);\n"
1362 "#endif\n"
1363 "\\&\n"
1364 "#ifdef _ISOC99_SOURCE\n"
1365 " printf(\"_ISOC99_SOURCE defined\\[rs]n\");\n"
1366 "#endif\n"
1367 "\\&\n"
1368 "#ifdef _ISOC11_SOURCE\n"
1369 " printf(\"_ISOC11_SOURCE defined\\[rs]n\");\n"
1370 "#endif\n"
1371 "\\&\n"
1372 "#ifdef _ISOC23_SOURCE\n"
1373 " printf(\"_ISOC23_SOURCE defined\\[rs]n\");\n"
1374 "#endif\n"
1375 "\\&\n"
1376 "#ifdef _XOPEN_SOURCE\n"
1377 " printf(\"_XOPEN_SOURCE defined: %d\\[rs]n\", _XOPEN_SOURCE);\n"
1378 "#endif\n"
1379 "\\&\n"
1380 "#ifdef _XOPEN_SOURCE_EXTENDED\n"
1381 " printf(\"_XOPEN_SOURCE_EXTENDED defined\\[rs]n\");\n"
1382 "#endif\n"
1383 "\\&\n"
1384 "#ifdef _LARGEFILE64_SOURCE\n"
1385 " printf(\"_LARGEFILE64_SOURCE defined\\[rs]n\");\n"
1386 "#endif\n"
1387 "\\&\n"
1388 "#ifdef _FILE_OFFSET_BITS\n"
1389 " printf(\"_FILE_OFFSET_BITS defined: %d\\[rs]n\", _FILE_OFFSET_BITS);\n"
1390 "#endif\n"
1391 "\\&\n"
1392 "#ifdef _TIME_BITS\n"
1393 " printf(\"_TIME_BITS defined: %d\\[rs]n\", _TIME_BITS);\n"
1394 "#endif\n"
1395 "\\&\n"
1396 "#ifdef _BSD_SOURCE\n"
1397 " printf(\"_BSD_SOURCE defined\\[rs]n\");\n"
1398 "#endif\n"
1399 "\\&\n"
1400 "#ifdef _SVID_SOURCE\n"
1401 " printf(\"_SVID_SOURCE defined\\[rs]n\");\n"
1402 "#endif\n"
1403 "\\&\n"
1404 "#ifdef _DEFAULT_SOURCE\n"
1405 " printf(\"_DEFAULT_SOURCE defined\\[rs]n\");\n"
1406 "#endif\n"
1407 "\\&\n"
1408 "#ifdef _ATFILE_SOURCE\n"
1409 " printf(\"_ATFILE_SOURCE defined\\[rs]n\");\n"
1410 "#endif\n"
1411 "\\&\n"
1412 "#ifdef _GNU_SOURCE\n"
1413 " printf(\"_GNU_SOURCE defined\\[rs]n\");\n"
1414 "#endif\n"
1415 "\\&\n"
1416 "#ifdef _REENTRANT\n"
1417 " printf(\"_REENTRANT defined\\[rs]n\");\n"
1418 "#endif\n"
1419 "\\&\n"
1420 "#ifdef _THREAD_SAFE\n"
1421 " printf(\"_THREAD_SAFE defined\\[rs]n\");\n"
1422 "#endif\n"
1423 "\\&\n"
1424 "#ifdef _FORTIFY_SOURCE\n"
1425 " printf(\"_FORTIFY_SOURCE defined\\[rs]n\");\n"
1426 "#endif\n"
1427 "\\&\n"
1428 " exit(EXIT_SUCCESS);\n"
1429 "}\n"
1430 msgstr ""
1431
1432 #. type: SH
1433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1435 #, no-wrap
1436 msgid "SEE ALSO"
1437 msgstr ""
1438
1439 #. type: Plain text
1440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1442 msgid "B<libc>(7), B<standards>(7), B<system_data_types>(7)"
1443 msgstr ""
1444
1445 #. But beware: the info libc document is out of date (Jul 07, mtk)
1446 #. type: Plain text
1447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1449 msgid "The section \"Feature Test Macros\" under I<info libc>."
1450 msgstr ""
1451
1452 #. type: Plain text
1453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1455 msgid "I</usr/include/features.h>"
1456 msgstr ""
1457
1458 #. type: TH
1459 #: debian-trixie fedora-44 fedora-rawhide
1460 #, no-wrap
1461 msgid "2024-06-15"
1462 msgstr ""
1463
1464 #. type: TH
1465 #: debian-trixie
1466 #, no-wrap
1467 msgid "Linux man-pages 6.9.1"
1468 msgstr ""
1469
1470 #. type: Plain text
1471 #: debian-trixie fedora-44 fedora-rawhide
1472 msgid "Exposes declarations consistent with the ISO C99 standard."
1473 msgstr ""
1474
1475 #. type: Plain text
1476 #: debian-trixie fedora-44 fedora-rawhide
1477 msgid ""
1478 "Earlier glibc 2.1.x versions recognized an equivalent macro named "
1479 "B<_ISOC9X_SOURCE> (because the C99 standard had not then been finalized). "
1480 "Although the use of this macro is obsolete, glibc continues to recognize it "
1481 "for backward compatibility."
1482 msgstr ""
1483
1484 #. type: Plain text
1485 #: debian-trixie fedora-44 fedora-rawhide
1486 msgid ""
1487 "Defining B<_ISOC99_SOURCE> also exposes ISO C (1990) Amendment 1 (\"C95\") "
1488 "definitions. (The primary change in C95 was support for international "
1489 "character sets.)"
1490 msgstr ""
1491
1492 #. type: Plain text
1493 #: debian-trixie fedora-44 fedora-rawhide
1494 msgid ""
1495 "If any of B<__STRICT_ANSI__>, B<_ISOC99_SOURCE>, B<_ISOC11_SOURCE> (since "
1496 "glibc 2.18), B<_POSIX_SOURCE>, B<_POSIX_C_SOURCE>, B<_XOPEN_SOURCE>, "
1497 "B<_XOPEN_SOURCE_EXTENDED> (in glibc 2.11 and earlier), B<_BSD_SOURCE> (in "
1498 "glibc 2.19 and earlier), or B<_SVID_SOURCE> (in glibc 2.19 and earlier) is "
1499 "explicitly defined, then B<_BSD_SOURCE>, B<_SVID_SOURCE>, and "
1500 "B<_DEFAULT_SOURCE> are not defined by default."
1501 msgstr ""
1502
1503 #. type: Plain text
1504 #: debian-trixie fedora-44 fedora-rawhide
1505 #, no-wrap
1506 msgid ""
1507 "$ B<cc ftm.c>\n"
1508 "$ B<./a.out>\n"
1509 "_POSIX_SOURCE defined\n"
1510 "_POSIX_C_SOURCE defined: 200809L\n"
1511 "_BSD_SOURCE defined\n"
1512 "_SVID_SOURCE defined\n"
1513 "_ATFILE_SOURCE defined\n"
1514 "$ B<cc -D_XOPEN_SOURCE=500 ftm.c>\n"
1515 "$ B<./a.out>\n"
1516 "_POSIX_SOURCE defined\n"
1517 "_POSIX_C_SOURCE defined: 199506L\n"
1518 "_XOPEN_SOURCE defined: 500\n"
1519 "$ B<cc -D_GNU_SOURCE ftm.c>\n"
1520 "$ B<./a.out>\n"
1521 "_POSIX_SOURCE defined\n"
1522 "_POSIX_C_SOURCE defined: 200809L\n"
1523 "_ISOC99_SOURCE defined\n"
1524 "_XOPEN_SOURCE defined: 700\n"
1525 "_XOPEN_SOURCE_EXTENDED defined\n"
1526 "_LARGEFILE64_SOURCE defined\n"
1527 "_BSD_SOURCE defined\n"
1528 "_SVID_SOURCE defined\n"
1529 "_ATFILE_SOURCE defined\n"
1530 "_GNU_SOURCE defined\n"
1531 msgstr ""
1532
1533 #. type: Plain text
1534 #: debian-trixie fedora-44 fedora-rawhide
1535 #, no-wrap
1536 msgid ""
1537 "/* ftm.c */\n"
1538 "\\&\n"
1539 "#include E<lt>stdint.hE<gt>\n"
1540 "#include E<lt>stdio.hE<gt>\n"
1541 "#include E<lt>unistd.hE<gt>\n"
1542 "#include E<lt>stdlib.hE<gt>\n"
1543 "\\&\n"
1544 "int\n"
1545 "main(int argc, char *argv[])\n"
1546 "{\n"
1547 "#ifdef _POSIX_SOURCE\n"
1548 " printf(\"_POSIX_SOURCE defined\\[rs]n\");\n"
1549 "#endif\n"
1550 "\\&\n"
1551 "#ifdef _POSIX_C_SOURCE\n"
1552 " printf(\"_POSIX_C_SOURCE defined: %jdL\\[rs]n\",\n"
1553 " (intmax_t) _POSIX_C_SOURCE);\n"
1554 "#endif\n"
1555 "\\&\n"
1556 "#ifdef _ISOC99_SOURCE\n"
1557 " printf(\"_ISOC99_SOURCE defined\\[rs]n\");\n"
1558 "#endif\n"
1559 "\\&\n"
1560 "#ifdef _ISOC11_SOURCE\n"
1561 " printf(\"_ISOC11_SOURCE defined\\[rs]n\");\n"
1562 "#endif\n"
1563 "\\&\n"
1564 "#ifdef _XOPEN_SOURCE\n"
1565 " printf(\"_XOPEN_SOURCE defined: %d\\[rs]n\", _XOPEN_SOURCE);\n"
1566 "#endif\n"
1567 "\\&\n"
1568 "#ifdef _XOPEN_SOURCE_EXTENDED\n"
1569 " printf(\"_XOPEN_SOURCE_EXTENDED defined\\[rs]n\");\n"
1570 "#endif\n"
1571 "\\&\n"
1572 "#ifdef _LARGEFILE64_SOURCE\n"
1573 " printf(\"_LARGEFILE64_SOURCE defined\\[rs]n\");\n"
1574 "#endif\n"
1575 "\\&\n"
1576 "#ifdef _FILE_OFFSET_BITS\n"
1577 " printf(\"_FILE_OFFSET_BITS defined: %d\\[rs]n\", _FILE_OFFSET_BITS);\n"
1578 "#endif\n"
1579 "\\&\n"
1580 "#ifdef _TIME_BITS\n"
1581 " printf(\"_TIME_BITS defined: %d\\[rs]n\", _TIME_BITS);\n"
1582 "#endif\n"
1583 "\\&\n"
1584 "#ifdef _BSD_SOURCE\n"
1585 " printf(\"_BSD_SOURCE defined\\[rs]n\");\n"
1586 "#endif\n"
1587 "\\&\n"
1588 "#ifdef _SVID_SOURCE\n"
1589 " printf(\"_SVID_SOURCE defined\\[rs]n\");\n"
1590 "#endif\n"
1591 "\\&\n"
1592 "#ifdef _DEFAULT_SOURCE\n"
1593 " printf(\"_DEFAULT_SOURCE defined\\[rs]n\");\n"
1594 "#endif\n"
1595 "\\&\n"
1596 "#ifdef _ATFILE_SOURCE\n"
1597 " printf(\"_ATFILE_SOURCE defined\\[rs]n\");\n"
1598 "#endif\n"
1599 "\\&\n"
1600 "#ifdef _GNU_SOURCE\n"
1601 " printf(\"_GNU_SOURCE defined\\[rs]n\");\n"
1602 "#endif\n"
1603 "\\&\n"
1604 "#ifdef _REENTRANT\n"
1605 " printf(\"_REENTRANT defined\\[rs]n\");\n"
1606 "#endif\n"
1607 "\\&\n"
1608 "#ifdef _THREAD_SAFE\n"
1609 " printf(\"_THREAD_SAFE defined\\[rs]n\");\n"
1610 "#endif\n"
1611 "\\&\n"
1612 "#ifdef _FORTIFY_SOURCE\n"
1613 " printf(\"_FORTIFY_SOURCE defined\\[rs]n\");\n"
1614 "#endif\n"
1615 "\\&\n"
1616 " exit(EXIT_SUCCESS);\n"
1617 "}\n"
1618 msgstr ""
1619
1620 #. type: TH
1621 #: fedora-44 fedora-rawhide
1622 #, no-wrap
1623 msgid "Linux man-pages 6.13"
1624 msgstr ""
1625
1626 #. type: TH
1627 #: mageia-cauldron
1628 #, no-wrap
1629 msgid "Linux man-pages 6.17"
1630 msgstr ""
1631
1632 #. type: TH
1633 #: opensuse-leap-16-1 opensuse-tumbleweed
1634 #, no-wrap
1635 msgid "Linux man-pages (unreleased)"
1636 msgstr ""