File: feature_test_macros.7

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (169 lines) | stat: -rw-r--r-- 5,634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 2006, Michael Kerrisk
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
.\" Translated 2006-07-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD:	feature test macro	ǽޥ
.\"
.TH FEATURE_TEST_MACROS 7 2006-04-26 "Linux" "Linux Programmer's Manual"
.SH ̾
feature_test_macros \- ǽޥ
.SH 
.nf
.B #include <features.h>
.SH 
ǽޥ (feature test macro) ˤꡢץޤ
ץबѥ뤵ݤ˥ƥΥإåեˤ
椹뤳ȤǤ롣
εǽȤȡɸʤ褦ˤǤ
ܿΤ륢ץꥱΤΩġ
¾ΥޥȤȡǥեȤǤϸʤɸ
뤳ȤǤ롣
ʲ뵡ǽޥΤ줾Τʱƶǧˤϡ
إåե
.I <features.h>
Ĵ٤Ф褤

ǽޥǽˤϡ
֤إåե򥤥󥯥롼ɤˡ
ǽޥʤФʤʤ
¸ˤϡ
ѥ륳ޥɤǻꤹˡ
.RI ( "cc -DMACRO=value" )
ȡɤǤإå򥤥󥯥롼ɤ
ɬפʥޥˡ롣

Linux/glibc ϰʲεǽޥ᤹:
.TP
.B _POSIX_C_SOURCE
Υޥ 1 ȡإåե
POSIX.1-1990  ISO C (1990) ˽򤹤롣
199309 ʾͤȡ
POSIX.1b (ꥢ륿ĥ) ϢɲäǸ롣
199506 ʾͤȡ
POSIX.1c (å) ϢɲäǸ롣
 200112 ȡ(XSI ĥ) POSIX.1-2001 ܻͤ
б롣
.TP 
.B _POSIX_SOURCE
ΥޥѻͽǤ롣
Υޥȡͤ˴ؤ餺
.B _POSIX_C_SOURCE
 1 ΤȤʤ롣
.TP
.B _XOPEN_SOURCE
ΥޥȡɤͤǤ⡢إåե
POSIX.1, POSIX.2, XPG4 ˽򤹤롣
500 ʾͤȡSUSv2 (UNIX 98) Ϣ
ɲäǸ롣
600 ʾͤȡ
SUSv3 (UNIX 03; POSIX.1-2001 ܻ + XSI ĥƱ)
Ϣ C 99 ǤɲäǸ롣
.TP
.B _XOPEN_SOURCE_EXTENDED
Υޥ 1 졢
.BR _XOPEN_SOURCE
ƤȡXPG4v2 UNIX ĥб롣
.TP
.B _ISOC99_SOURCE
ISO C (1990)  C 99 ĥ롣
.TP
.B _LARGEFILE64_SOURCE
LFS (Large File Summit) ˤ
"ĥ (transitional extension)" Single UNIX Specification
ȤƵꤵ줿 API ˴ؤ
(http://ftp.sas.com/standards/large.file/ )
.TP
.B _FILE_OFFSET_BITS
Υޥ 64 ȡե I/O ȥե륷ƥ
Ϣ 32 ӥåǤδؿȥǡפϼưŪ 64ӥåǤ
Ѵ롣
ϡ32ӥåȥƥ礭ʥե (> 2Х)  I/O
¹ԤݤΩġ
.TP
.B _BSD_SOURCE
Υޥ (ͤ˴ؤ餺) إåե
BSD ͳ롣
ޤΥޥȡƤʤɸब¸ߤˤ
BSD ͳͥ褹褦ˤʤ롣
.TP
.B _SVID_SOURCE
Υޥ (ͤ˴ؤ餺) إåե
System V ͳ
(SVID == System V Interface Definition;
.BR standards (7)
)
.TP
.B _GNU_SOURCE
Υޥ (ͤ˴ؤ餺) ʲΥޥΤ
ˤʤ:
.BR _BSD_SOURCE ,
.BR _SVID_SOURCE ,
.BR _LARGEFILE64_SOURCE ,
.BR _ISOC99_SOURCE ,
 1999506 
.BR _POSIX_C_SOURCE
 600 
.BR _XOPEN_SOURCE 
ˡƼ GNU ͭγĥ롣
.PP
.BR gcc (1)
ưȡǥեȤ
.BR _BSD_SOURCE ,
.BR _SVID_SOURCE ,
.BR _POSIX_SOURCE ,
.BR POSIX_C_SOURCE =199506
ġΥޥȡŪ줿
¾Υޥ̵Ȥʤ롣(㳰:
.BR POSIX_C_SOURCE
¾Ƥʤˤϡ
.BR POSIX_C_SOURCE
Ͼ 199506 롣
âѥ餬Ѥɸꤹ⡼ɤǵư줿
.RI ( -std=c99
ե饰) Ϥθ¤ǤϤʤ
.SH 
POSIX.1 Ǥ
.BR _POSIX_C_SOURCE ,
.BR _POSIX_SOURCE ,
.BR _XOPEN_SOURCE
ꤵƤ롣
.BR _XOPEN_SOURCE_EXTENDED
 XPG4v2 (̾ SUSv1) ǵꤵƤ
.BR _FILE_OFFSET_BITS
ϤɤɸǤ⵬ꤵƤʤ
¾ΤĤμǺѤƤ롣
.BR _BSD_SOURCE ,
.BR _SVID_SOURCE ,
.BR _GNU_SOURCE
 Linux (glibc) ͭǤ롣
.SH 
.I <features.h>
 Linux/glibc ͭΥإåեǤ롣
¾ΥƥˤƱͤŪΥե뤬뤬̤ϰ㤦̾Ǥ롣
Υإåեϡ¾Υإåեˤɬפ˱
ưŪ˥󥯥롼ɤ롣ǽޥѤ뤿
Ū˥󥯥롼ɤɬפϤʤ