OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / sysconf.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 17:51:42 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Modified Tue Aug 17 11:42:20 1999 by Ariel Scolnicov (ariels@compugen.co.il)
25 .\"
26 .\" Japanese Version Copyright (c) 1998 ISHIKAWA Mutsumi, all rights reserved.
27 .\" Translated 1998-06-03, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
28 .\" Updated 1999-12-08, Kentaro Shirakata <argrath@ub32.org>
29 .\" Updated 2002-10-16, Kentaro Shirakata <argrath@ub32.org>
30 .\" Updated 2005-03-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
31 .\"
32 .TH SYSCONF 3  2007-12-12 "GNU" "Linux Programmer's Manual"
33 .\"O .SH NAME
34 .\"O sysconf \- Get configuration information at runtime
35 .SH Ì¾Á°
36 sysconf \- Æ°ºîÃæ¤ËÀßÄê¾ðÊó¤ò¼èÆÀ¤¹¤ë
37 .\"O .SH SYNOPSIS
38 .SH ½ñ¼°
39 .nf
40 .B #include <unistd.h>
41 .sp
42 .BI "long sysconf(int " "name" );
43 .fi
44 .\"O .SH DESCRIPTION
45 .SH ÀâÌÀ
46 .\"O POSIX allows an application to test at compile or run time
47 .\"O whether certain options are supported, or what the value is
48 .\"O of certain configurable constants or limits.
49 POSIX ¤Ç¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¥³¥ó¥Ñ¥¤¥ë»þ¤ä¼Â¹Ô»þ¤Ë¡¢
50 ÆÃÄê¤Î¥ª¥×¥·¥ç¥ó¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤ä¡¢
51 ÀßÄê²Äǽ¤ÊÆÃÄê¤ÎÄê¿ô¤äÀ©¸Â¤¬¤É¤ó¤ÊÃͤ«¤ò¥Æ¥¹¥È¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
52 .LP
53 .\"O At compile time this is done by including
54 .\"O .I <unistd.h>
55 .\"O and/or
56 .\"O .I <limits.h>
57 .\"O and testing the value of certain macros.
58 ¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¹Ô¤¦¤Ë¤Ï¡¢
59 .I <unistd.h>
60 ¤È
61 .I <limits.h>
62 ¤ÎξÊý¤â¤·¤¯¤Ï°ìÊý¤ò¥¤¥ó¥¯¥ë¡¼¥É¤·¡¢
63 ÆÃÄê¤Î¥Þ¥¯¥í¤ÎÃͤò³Îǧ¤¹¤ë¡£
64 .LP
65 .\"O At run time, one can ask for numerical values using the present function
66 .\"O .BR sysconf ().
67 .\"O One can ask for numerical values that may depend
68 .\"O on the file system a file is in using the calls
69 .\"O .BR fpathconf (3)
70 .\"O and
71 .\"O .BR pathconf (3).
72 .\"O One can ask for string values using
73 .\"O .BR confstr (3).
74 ¼Â¹Ô»þ¤Ë¤Ï¡¢¤³¤³¤ÇÀâÌÀ¤¹¤ë´Ø¿ô
75 .BR sysconf ()
76 ¤ò»È¤Ã¤Æ¿ôÃͤòÌ䤤¹ç¤ï¤»¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
77 ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë´Ø¤¹¤ë¿ôÃͤϡ¢
78 .BR fpathconf (3)
79 ¤È
80 .BR pathconf (3)
81 ¤ò»È¤Ã¤Æ³Îǧ¤Ç¤­¤ë¡£
82 ʸ»úÎó¤ÎÃͤÏ
83 .BR confstr (3)
84 ¤ò»È¤Ã¤Æ³Îǧ¤Ç¤­¤ë¡£
85 .LP
86 .\"O The values obtained from these functions are system configuration constants.
87 .\"O They do not change during the lifetime of a process.
88 .\"O .\" except that sysconf(_SC_OPEN_MAX) may change answer after a call
89 .\"O .\" to setrlimit( ) which changes the RLIMIT_NOFILE soft limit
90 ¤³¤ì¤é¤Î´Ø¿ô¤Ç¼èÆÀ¤µ¤ì¤ëÃͤÏÀßÄê²Äǽ¤Ê¥·¥¹¥Æ¥àÄê¿ô¤Ç¤¢¤ë¡£
91 ¤³¤ì¤é¤Ï¥×¥í¥»¥¹¤ÎÀ¸Â¸´ü´Ö¤Î´Ö¤ÏÊѲ½¤·¤Ê¤¤¡£
92 .\" Ã¢¤· RLIMIT_NOFILE ¥½¥Õ¥È¡¦¥ê¥ß¥Ã¥È¤òÊѹ¹¤¹¤ë setrlimit() ¤¬¸Æ¤Ó½Ð¤·¤¿
93 .\" ¸å¤Ç¤Ï¡¢ sysconf(_SC_OPEN_MAX) ¤¬ÊÖ¤¹ÃͤÏÊѲ½¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
94 .LP
95 .\"O For options, typically, there is a constant
96 .\"O .B _POSIX_FOO
97 .\"O that may be defined in
98 .\"O .IR <unistd.h> .
99 .\"O If it is undefined, one should ask at run time.
100 .\"O If it is defined to \-1, then the option is not supported.
101 .\"O If it is defined to 0, then relevant functions and headers exist,
102 .\"O but one has to ask at runtime what degree of support is available.
103 .\"O If it is defined to a value other than \-1 or 0, then the option is
104 .\"O supported.
105 .\"O Usually the value (such as 200112L) indicates the year and month
106 .\"O of the POSIX revision describing the option.
107 .\"O Glibc uses the value 1
108 .\"O to indicate support as long as the POSIX revision has not been published yet.
109 ¥ª¥×¥·¥ç¥ó¤ò³Îǧ¤Ç¤­¤ë¤è¤¦¤Ë¡¢¤¿¤¤¤Æ¤¤¤Ï
110 .I <unistd.h>
111 ¤ÇÄê¿ô
112 .B _POSIX_FOO
113 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
114 ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤­¤Ï¡¢¼Â¹Ô»þ¤ËÌ䤤¹ç¤ï¤»¤ò¹Ô¤¦É¬Íפ¬¤¢¤ë¡£
115 ¤½¤ÎÃͤ¬ \-1 ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¤­¤Ï¡¢¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
116 0 ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¤­¤Ï¡¢´ØÏ¢¤¹¤ë´Ø¿ô¤ä¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¤¬¡¢
117 ¤É¤ÎÄøÅÙ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤Ï¼Â¹Ô»þ¤Ë³Îǧ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
118 \-1 ¤Ç¤â 0 ¤Ç¤â¤Ê¤¤ÃͤËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¤­¤Ï¡¢¤½¤Î¥ª¥×¥·¥ç¥ó¤¬¥µ¥Ý¡¼¥È
119 ¤µ¤ì¤Æ¤¤¤ë¡£Ä̾ï¤Ï¡¢¤½¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æµ­ºÜ¤·¤¿ POSIX ¤Î²þÄûǯ·î
120 ¤ò¼¨¤¹ÃͤˤʤäƤ¤¤ë (Î㤨¤Ð 200112L)¡£
121 glibc ¤Ç¤Ï 1 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤¬¡¢
122 POSIX ¤Î²þÄûÈǤ¬¤Þ¤Àȯ¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤ò¼¨¤¹¡£
123 .\"O .\" and 999 to indicate support for options no longer present in the latest
124 .\"O .\" standard. (?)
125 .\" 999 ¤Ï¡¢¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤¬¡¢
126 .\" ºÇ¿·¤Îɸ½à¤Ë¤Ï¤â¤Ï¤ä¸ºß¤·¤Ê¤¤¤³¤È¤ò¼¨¤¹¡£(?)
127 .\"O The
128 .\"O .BR sysconf ()
129 .\"O argument will be
130 .\"O .BR _SC_FOO .
131 .\"O For a list of options, see
132 .\"O .BR posixoptions (7).
133 .BR sysconf ()
134 ¤Î°ú¤­¿ô¤Ë¤Ï
135 .B _SC_FOO
136 ¤ò»ØÄꤹ¤ë¡£
137 ¥ª¥×¥·¥ç¥ó¤Î¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤Ï
138 .BR posixoptions (7)
139 ¤ò»²¾È¤Î¤³¤È¡£
140 .LP
141 .\"O For variables or limits, typically, there is a constant
142 .\"O .BR _FOO ,
143 .\"O maybe defined in
144 .\"O .IR <limits.h> ,
145 .\"O or
146 .\"O .BR _POSIX_FOO ,
147 .\"O maybe defined in
148 .\"O .IR <unistd.h> .
149 ÊÑ¿ô¤äÀ©¸Â¤ò³Îǧ¤Ç¤­¤ë¤è¤¦¤Ë¡¢¤¿¤¤¤Æ¤¤¤Ï¡¢
150 .I <limits.h>
151 ¤ÇÄê¿ô
152 .B _FOO
153 ¤¬¡¢
154 .I <unistd.h>
155 ¤Ç
156 .B _POSIX_FOO
157 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
158 .\"O The constant will not be defined if the limit is unspecified.
159 .\"O If the constant is defined, it gives a guaranteed value, and
160 .\"O a greater value might actually be supported.
161 .\"O If an application wants to take advantage of values which may change
162 .\"O between systems, a call to
163 .\"O .BR sysconf ()
164 .\"O can be made.
165 À©¸Â¤¬µ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤ÏÄê¿ô¤ÏÄêµÁ¤µ¤ì¤Ê¤¤¡£
166 Äê¿ô¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¤­¤Ë¤Ï¡¢¤½¤ÎÄê¿ô¤ÏÊݾڤǤ­¤ëÃͤǤ¢¤ê¡¢
167 ¼ÂºÝ¤Ë¤Ï¤â¤Ã¤ÈÂ礭¤ÊÃͤ¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤³¤È¤â¤¢¤ë¡£
168 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¥·¥¹¥Æ¥àËè¤ËÊѲ½¤¹¤ëÃͤòÍøÍѤ·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢
169 .BR sysconf ()
170 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¼Â¸½¤Ç¤­¤ë¡£
171 .\"O The
172 .\"O .BR sysconf ()
173 .\"O argument will be
174 .\"O .BR _SC_FOO .
175 .BR sysconf ()
176 ¤Î°ú¤­¿ô¤Ë¤Ï
177 .B _SC_FOO
178 ¤ò»ØÄꤹ¤ë¡£
179 .\"O .SS "POSIX.1 Variables"
180 .SS "POSIX.1 ÊÑ¿ô"
181 .\"O We give the name of the variable, the name of the
182 .\"O .BR sysconf ()
183 .\"O argument used to inquire about its value,
184 .\"O and a short description.
185 ÊÑ¿ô̾¡¢¤½¤ÎÃͤò¼èÆÀ¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë
186 .BR sysconf ()
187 ¤Î¥Ñ¥é¥á¡¼¥¿Ì¾¡¢´Êñ¤ÊÀâÌÀ¤ò°Ê²¼¤Ë¼¨¤¹¡£
188 .LP
189 .\"O First, the POSIX.1 compatible values.
190 ¤Þ¤º POSIX.1 ¸ß´¹¤ÎÊÑ¿ô¤ò¼¨¤¹¡£
191 .\"O .\" [for the moment: only the things that are unconditionally present]
192 .\"O .\" .TP
193 .\"O .\" .BR AIO_LISTIO_MAX " - " _SC_AIO_LISTIO_MAX
194 .\"O .\" (if _POSIX_ASYNCHRONOUS_IO)
195 .\"O .\" Maximum number of I/O operations in a single list I/O call.
196 .\"O .\" Must not be less than _POSIX_AIO_LISTIO_MAX.
197 .\"O .\" .TP
198 .\"O .\" .BR AIO_MAX " - " _SC_AIO_MAX
199 .\"O .\" (if _POSIX_ASYNCHRONOUS_IO)
200 .\"O .\" Maximum number of outstanding asynchronous I/O operations.
201 .\"O .\" Must not be less than _POSIX_AIO_MAX.
202 .\"O .\" .TP
203 .\"O .\" .BR AIO_PRIO_DELTA_MAX " - " _SC_AIO_PRIO_DELTA_MAX
204 .\"O .\" (if _POSIX_ASYNCHRONOUS_IO)
205 .\"O .\" The maximum amount by which a process can decrease its
206 .\"O .\" asynchronous I/O priority level from its own scheduling priority.
207 .\"O .\" Must be nonnegative.
208 .TP
209 .BR ARG_MAX " - " _SC_ARG_MAX
210 .\"O The maximum length of the arguments to the
211 .\"O .BR exec (3)
212 .\"O family of functions.
213 .\"O Must not be less than
214 .\"O .B _POSIX_ARG_MAX
215 .\"O (4096).
216 .BR exec (3)
217 ´Ø¿ô·²¤Î°ú¤­¿ô¤ÎºÇÂçĹ¡£
218 .B _POSIX_ARG_MAX
219 (4096) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
220 .TP
221 .BR CHILD_MAX " - " _SC_CHILD_MAX
222 .\"O The max number of simultaneous processes per user ID.
223 .\"O Must not be less than
224 .\"O .B _POSIX_CHILD_MAX
225 .\"O (25).
226 ¥æ¡¼¥¶ID ¤¢¤¿¤ê¤ÎƱ»þ¤Ë¸ºß¤Ç¤­¤ë¥×¥í¥»¥¹¤ÎºÇÂç¿ô¡£
227 .B _POSIX_CHILD_MAX
228 (25) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
229 .TP
230 .BR HOST_NAME_MAX " - " _SC_HOST_NAME_MAX
231 .\"O Max length of a hostname, not including the terminating null byte,
232 .\"O as returned by
233 .\"O .BR gethostname (2).
234 .\"O Must not be less than
235 .\"O .B _POSIX_HOST_NAME_MAX
236 .\"O (255).
237 .BR gethostname (2)
238 ¤ÇÊÖ¤µ¤ì¤ë¥Û¥¹¥È̾¤ÎºÇÂçĹ¡£ËöÈø¤Î NULL ¥Ð¥¤¥È¤ÏŤµ¤Ë´Þ¤Þ¤ì¤Ê¤¤¡£
239 .B _POSIX_HOST_NAME_MAX
240 (255) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
241 .TP
242 .BR LOGIN_NAME_MAX " - " _SC_LOGIN_NAME_MAX
243 .\"O Maximum length of a login name, including the terminating null byte.
244 .\"O Must not be less than
245 .\"O .B _POSIX_LOGIN_NAME_MAX
246 .\"O (9).
247 ¥í¥°¥¤¥ó̾¤ÎŤµ¤ÎºÇÂçÃÍ¡£ËöÈø¤Î NULL ¥Ð¥¤¥È¤âŤµ¤Ë´Þ¤Þ¤ì¤ë¡£
248 .B _POSIX_LOGIN_NAME_MAX
249 (9) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
250 .TP
251 .BR "" "clock ticks - " _SC_CLK_TCK
252 .\"O The number of clock ticks per second.
253 .\"O The corresponding variable is obsolete.
254 .\"O It was of course called
255 .\"O .BR CLK_TCK .
256 .\"O (Note: the macro
257 .\"O .B CLOCKS_PER_SEC
258 .\"O does not give information: it must equal 1000000.)
259 1É䢤¿¤ê¤Î¥¯¥í¥Ã¥¯¡¦¥Æ¥£¥Ã¥¯¿ô¡£
260 Âбþ¤¹¤ëÊÑ¿ô¤ÏÇѻߤµ¤ì¤¿¡£¤³¤ÎÊÑ¿ô¤ÏÅöÁ³¤Ê¤¬¤é
261 .B CLK_TCK
262 ¤È¸Æ¤Ð¤ì¤Æ¤¤¤¿¡£
263 (Ãí°Õ: ¥Þ¥¯¥í
264 .B CLOCKS_PER_SEC
265 ¤«¤é¤Ï¾ðÊó¤ÏÆÀ¤é¤ì¤Ê¤¤: ¤³¤ÎÃͤϠ1000000 ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤)
266 .TP
267 .BR OPEN_MAX " - " _SC_OPEN_MAX
268 .\"O The maximum number of files that a process can have open at any time.
269 .\"O Must not be less than
270 .\"O .B _POSIX_OPEN_MAX
271 .\"O (20).
272 °ì¤Ä¤Î¥×¥í¥»¥¹¤¬Æ±»þ¤Ë¥ª¡¼¥×¥ó¤Ç¤­¤ë¥Õ¥¡¥¤¥ë¿ô¤Î¾å¸Â¡£
273 .B _POSIX_OPEN_MAX
274 (20) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
275 .TP
276 .BR PAGESIZE " - " _SC_PAGESIZE
277 .\"O Size of a page in bytes.
278 .\"O Must not be less than 1.
279 .\"O (Some systems use PAGE_SIZE instead.)
280 ¥Ð¥¤¥Èñ°Ì¤Ç¤Î¥Ú¡¼¥¸¥µ¥¤¥º¡£
281 1 ¤è¤ê¾®¤µ¤¯¤Ê¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
282 (¤³¤ÎÂå¤ï¤ê¤Ë PAGE_SIZE ¤ò»È¤¦¥·¥¹¥Æ¥à¤â¤¢¤ë)
283 .TP
284 .BR RE_DUP_MAX " - " _SC_RE_DUP_MAX
285 .\"O The number of repeated occurrences of a BRE permitted by
286 .\"O .BR regexec (3)
287 .\"O and
288 .\"O .BR regcomp (3).
289 .\"O Must not be less than
290 .\"O .B _POSIX2_RE_DUP_MAX
291 .\"O (255).
292 .BR regexec (3)
293 ¤È
294 .BR regcomp (3)
295 ¤ÇµöÍƤµ¤ì¤Æ¤¤¤ë BRE (Basic Regular Expression; ´ðËÜÀµµ¬É½¸½)
296 ¤Î·«¤êÊÖ¤·½Ð¸½²ó¿ô¤ÎºÇÂçÃÍ¡£
297 .B _POSIX2_RE_DUP_MAX
298 (255) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
299 .TP
300 .BR STREAM_MAX " - " _SC_STREAM_MAX
301 .\"O The maximum number of streams that a process can have open at any
302 .\"O time.
303 .\"O If defined, it has the same value as the standard C macro
304 .\"O .BR FOPEN_MAX .
305 .\"O Must not be less than
306 .\"O .B _POSIX_STREAM_MAX
307 .\"O (8).
308 °ì¤Ä¤Î¥×¥í¥»¥¹¤¬Æ±»þ¤Ë¥ª¡¼¥×¥ó¤Ç¤­¤ë¥¹¥È¥ê¡¼¥à¿ô¤Î¾å¸Â¡£
309 ÄêµÁ¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¤Ï¡¢¤³¤ÎÃͤÏɸ½à C ¥Þ¥¯¥í¤Î
310 .B FOPEN_MAX
311 ¤ÈƱ¤¸¤Ç¤¢¤ë¡£
312 .B _POSIX_STREAM_MAX
313 (8) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
314 .TP
315 .B SYMLOOP_MAX
316 .\"O The maximum number of symbolic links seen in a pathname before resolution
317 .\"O returns
318 .\"O .BR ELOOP .
319 .\"O Must not be less than
320 .\"O .B _POSIX_SYMLOOP_MAX
321 .\"O (8).
322 ¥Ñ¥¹Ì¾¤Î²ò·è»þ¤Ë¸½¤ì¤Æ¤â¤è¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤ÎºÇÂç¿ô¡£
323 ¤³¤Î¿ô¤òĶ¤¨¤ë¤È¡¢¥Ñ¥¹Ì¾²ò·è»þ¤Ë
324 .B ELOOP
325 ¤¬ÊÖ¤µ¤ì¤ë¡£
326 .B _POSIX_SYMLOOP_MAX
327 (8) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
328 .TP
329 .BR TTY_NAME_MAX " - " _SC_TTY_NAME_MAX
330 .\"O The maximum length of terminal device name,
331 .\"O including the terminating null byte.
332 .\"O Must not be less than
333 .\"O .B _POSIX_TTY_NAME_MAX
334 .\"O (9).
335 üËö¥Ç¥Ð¥¤¥¹Ì¾¤ÎºÇÂçĹ¡£Ä¹¤µ¤Ë¤ÏËöÈø¤Î NULL ¥Ð¥¤¥È¤â´Þ¤Þ¤ì¤ë¡£
336 .B _POSIX_TTY_NAME_MAX
337 (9) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
338 .TP
339 .BR TZNAME_MAX " - " _SC_TZNAME_MAX
340 .\"O The maximum number of bytes in a timezone name.
341 .\"O Must not be less than
342 .\"O .B _POSIX_TZNAME_MAX
343 .\"O (6).
344 ¥¿¥¤¥à¥¾¡¼¥ó̾¤È¤·¤Æ»È¤¨¤ë¥Ð¥¤¥È¿ô¤ÎºÇÂçÃÍ¡£
345 .B _POSIX_TZNAME_MAX
346 (6) Ì¤Ëþ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
347 .TP
348 .BR _POSIX_VERSION " - " _SC_VERSION
349 .\"O indicates the year and month the POSIX.1 standard was approved in the
350 .\"O format
351 .\"O .BR YYYYMML ;
352 .\"O the value
353 .\"O .B 199009L
354 .\"O indicates the Sept. 1990 revision.
355 POSIX.1 É¸½à¤¬¾µÇ§¤µ¤ì¤¿Ç¯·î¡£
356 .B YYYYMML
357 ¤È¤¤¤¦½ñ¼°¤Ç¤¢¤ë¡£
358 .B 199009L
359 ¤È¤¤¤¦Ãͤϡ¢1990ǯ 9·î ²þÄû¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
360 .\"O .SS "POSIX.2 Variables"
361 .SS "POSIX.2 ÊÑ¿ô"
362 .\"O Next, the POSIX.2 values, giving limits for utilities.
363 ¼¡¤Ë¡¢POSIX.2 ¤ÎÃͤò¼¨¤¹¡£
364 ¤³¤ì¤é¤Ï³Æ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ËÂФ¹¤ëÀ©¸Â¤ò»ØÄꤹ¤ë¡£
365 .TP
366 .BR BC_BASE_MAX " - " _SC_BC_BASE_MAX
367 .\"O indicates the maximum
368 .\"O .I obase
369 .\"O value accepted by the
370 .\"O .BR bc (1)
371 .\"O utility.
372 .BR bc (1)
373 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ÇµöÍƤµ¤ì¤ë
374 .I obase
375 ¤ÎºÇÂçÃÍ¡£
376 .TP
377 .BR BC_DIM_MAX " - " _SC_BC_DIM_MAX
378 .\"O indicates the maximum value of elements permitted in an array by
379 .\"O .BR bc (1).
380 .BR bc (1)
381 ¤ÇµöÍƤµ¤ì¤ë°ì¤Ä¤ÎÇÛÎóÃæ¤ÎÍ×ÁÇ¿ô¤ÎºÇÂçÃÍ¡£
382 .TP
383 .BR BC_SCALE_MAX " - " _SC_BC_SCALE_MAX
384 .\"O indicates the maximum
385 .\"O .I scale
386 .\"O value allowed by
387 .\"O .BR bc (1).
388 .BR bc (1)
389 ¤Çµö¤µ¤ì¤ë
390 .I scale
391 ¤ÎºÇÂçÃÍ¡£
392 .TP
393 .BR BC_STRING_MAX " - " _SC_BC_STRING_MAX
394 .\"O indicates the maximum length of a string accepted by
395 .\"O .BR bc (1).
396 .BR bc (1)
397 ¤ÇµöÍƤµ¤ì¤ëʸ»úÎó¤ÎºÇÂçĹ¡£
398 .TP
399 .BR COLL_WEIGHTS_MAX " - " _SC_COLL_WEIGHTS_MAX
400 .\"O indicates the maximum numbers of weights that can be assigned to an
401 .\"O entry of the
402 .\"O .B LC_COLLATE order
403 .\"O keyword in the locale definition file,
404 ¥í¥±¡¼¥ëÄêµÁ¥Õ¥¡¥¤¥ëÃæ¤Î
405 .B LC_COLLATE order
406 ¥­¡¼¥ï¡¼¥É¤Î¥¨¥ó¥È¥ê¤Ë³ä¤êÅö¤Æ²Äǽ¤Ê½Å¤ß¤ÎºÇÂçÃÍ¡£
407 .TP
408 .BR EXPR_NEST_MAX " - " _SC_EXPR_NEST_MAX
409 .\"O is the maximum number of expressions which can be nested within
410 .\"O parentheses by
411 .\"O .BR expr (1).
412 .BR expr (1)
413 ¤Ë¤ª¤¤¤Æ¡¢³ç¸Ì¤ÇÆþ¤ì»Ò¤Ë¤Ç¤­¤ë¼°¤ÎºÇÂç¿ô¡£
414 .TP
415 .BR LINE_MAX " - " _SC_LINE_MAX
416 .\"O The maximum length of a utility's input line length, either from
417 .\"O standard input or from a file.
418 .\"O This includes length for a trailing
419 .\"O newline.
420 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ÎÆþÎϹԤκÇÂçĹ¡£É¸½àÆþÎϤÀ¤±¤Ç¤Ê¤¯¡¢¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎϤˤâ
421 ŬÍѤµ¤ì¤ë¡£Ä¹¤µ¤Ë¤Ï¹Ô¤ÎËöÈø¤Î²þ¹Ôʸ»ú¤â´Þ¤Þ¤ì¤ë¡£
422 .TP
423 .BR RE_DUP_MAX " - " _SC_RE_DUP_MAX
424 .\"O The maximum number of repeated occurrences of a regular expression when
425 .\"O the interval notation
426 .\"O .B \e{m,n\e}
427 .\"O is used.
428 Àµµ¬É½¸½¤Ç¶è´Öɽµ­ (interval notation)
429 .B \e{m,n\e}
430 ¤¬»ÈÍѤµ¤ì¤¿¤È¤­¤ËµöÍƤµ¤ì¤ë·«¤êÊÖ¤·½Ð¸½²ó¿ô¤ÎºÇÂçÃÍ¡£
431 .TP
432 .BR POSIX2_VERSION " - " _SC_2_VERSION
433 .\"O indicates the version of the POSIX.2 standard in the format of
434 .\"O YYYYMML.
435 POSIX.2 É¸½à¤Î¥Ð¡¼¥¸¥ç¥ó¡£YYYYMML ¤È¤¤¤¦½ñ¼°¤Çɽµ­¤µ¤ì¤ë¡£
436 .TP
437 .BR POSIX2_C_DEV " - " _SC_2_C_DEV
438 .\"O indicates whether the POSIX.2 C language development facilities are
439 .\"O supported.
440 POSIX.2 ¤Î C ¸À¸ì³«È¯µ¡Ç½¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£
441 .TP
442 .BR POSIX2_FORT_DEV " - " _SC_2_FORT_DEV
443 .\"O indicates whether the POSIX.2 FORTRAN development utilities are
444 .\"O supported.
445 POSIX.2 ¤Î FORTRAN ³«È¯¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£
446 .TP
447 .BR POSIX2_FORT_RUN " - " _SC_2_FORT_RUN
448 .\"O indicates whether the POSIX.2 FORTRAN runtime utilities are supported.
449 POSIX.2 ¤Î FORTRAN ¥é¥ó¥¿¥¤¥à¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£
450 .TP
451 .BR _POSIX2_LOCALEDEF " - " _SC_2_LOCALEDEF
452 .\"O indicates whether the POSIX.2 creation of locates via
453 .\"O .BR localedef (1)
454 .\"O is supported.
455 .BR localedef (1)
456 ¤ò»È¤Ã¤¿¡¢POSIX.2 ¤Î¥í¥±¡¼¥ë¤ÎºîÀ®¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£
457 .TP
458 .BR POSIX2_SW_DEV " - " _SC_2_SW_DEV
459 .\"O indicates whether the POSIX.2 software development utilities option is
460 .\"O supported.
461 POSIX.2 ¥½¥Õ¥È¥¦¥§¥¢³«È¯¥æ¡¼¥Æ¥£¥ê¥Æ¥£¥ª¥×¥·¥ç¥ó¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£
462 .PP
463 .\"O These values also exist, but may not be standard.
464 °Ê²¼¤ÎÃͤ⸺ߤ¹¤ë¤¬¡¢É¸½à¤Ë¤Ï´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¡£
465 .TP
466 .BR "" " - " _SC_PHYS_PAGES
467 .\"O The number of pages of physical memory.
468 .\"O Note that it is possible
469 .\"O for the product of this value and the value of
470 .\"O .B _SC_PAGE_SIZE
471 .\"O to overflow.
472 ʪÍý¥á¥â¥ê¤Î¥Ú¡¼¥¸¿ô¡£
473 ¤³¤ÎÃͤÈ
474 .B _SC_PAGE_SIZE
475 ÃͤÎÀѤϷå°î¤ì¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¤Î¤ÇÃí°Õ¤¹¤ë¤³¤È¡£
476 .TP
477 .BR "" " - " _SC_AVPHYS_PAGES
478 .\"O The number of currently available pages of physical memory.
479 ¸½ºßÍøÍѲÄǽ¤ÊʪÍý¥á¥â¥ê¤Î¥Ú¡¼¥¸¿ô¡£
480 .TP
481 .BR "" " - " _SC_NPROCESSORS_CONF
482 .\"O The number of processors configured.
483 ÀßÄꤵ¤ì¤¿¥×¥í¥»¥Ã¥µ¿ô¡£
484 .TP
485 .BR "" " - " _SC_NPROCESSORS_ONLN
486 .\"O The number of processors currently online (available).
487 ¸½ºß¥ª¥ó¥é¥¤¥ó¤Î (ÍøÍѲÄǽ¤Ê) ¥×¥í¥»¥Ã¥µ¿ô¡£
488 .\"O .SH "RETURN VALUE"
489 .SH ÊÖ¤êÃÍ
490 .\"O If
491 .\"O .I name
492 .\"O is invalid, \-1 is returned, and
493 .\"O .I errno
494 .\"O is set to
495 .\"O .BR EINVAL .
496 .I name
497 ¤¬ÉÔÀµ¤Ê¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¡¢
498 .I errno
499 ¤Ë
500 .B EINVAL
501 ¤¬ÀßÄꤵ¤ì¤ë¡£
502 .\"O Otherwise, the value returned is the value of the system resource and
503 .\"O .I errno
504 .\"O is not changed.
505 .\"O In the case of options, a positive value is returned if a queried option
506 .\"O is available, and \-1 if it is not.
507 .\"O In the case of limits, \-1 means that there is no definite limit.
508 ¤½¤ì°Ê³°¤Î¾ì¹ç¡¢¥·¥¹¥Æ¥à¥ê¥½¡¼¥¹¤ÎÃͤ¬ÊÖ¤êÃͤȤ·¤ÆÊÖ¤µ¤ì¡¢
509 .I errno
510 ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£Ì䤤¹ç¤ï¤»¤¬¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ç¤¢¤ì¤Ð¡¢
511 ¤½¤Î¥ª¥×¥·¥ç¥ó¤¬ÍøÍѤǤ­¤ë¤È¤­¤ÏÀµ¤ÎÃͤ¬ÊÖ¤µ¤ì¡¢
512 ÍøÍѤǤ­¤Ê¤¤¤È¤­¤Ï \-1 ¤¬ÊÖ¤µ¤ì¤ë¡£Ì䤤¹ç¤ï¤»¤¬
513 À©¸Â¤Ë¤Ä¤¤¤Æ¾ì¹ç¤Ï¡¢À©¸Â¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È¤­¤Ë \-1 ¤¬ÊÖ¤µ¤ì¤ë¡£
514 .\"O .SH "CONFORMING TO"
515 .SH ½àµò
516 POSIX.1-2001.
517 .\"O .SH "BUGS"
518 .SH ¥Ð¥°
519 .\"O It is difficult to use
520 .\"O .B ARG_MAX
521 .\"O because it is not specified how much of the argument space for
522 .\"O .BR exec (3)
523 .\"O is consumed by the user's environment variables.
524 .B ARG_MAX
525 ¤ò»È¤¦¤Î¤ÏÆñ¤·¤¤¡¢¤Ê¤¼¤Ê¤é¡¢
526 .BR exec (3)
527 ¤Î°ú¤­¿ôÎΰè (argument space) ¤Î¤¦¤Á¤É¤ì¤¯¤é¤¤¤¬
528 ¥æ¡¼¥¶¤Î´Ä¶­ÊÑ¿ô¤Ë¤è¤Ã¤Æ»È¤ï¤ì¤ë¤«¤Ïʬ¤«¤é¤Ê¤¤¤«¤é¤Ç¤¢¤ë¡£
529 .PP
530 .\"O Some returned values may be huge; they are not suitable for allocating
531 .\"O memory.
532 ¤¤¤¯¤Ä¤«¤ÎÊÖ¤êÃͤϤȤƤâÂ礭¤¯¤Ê¤ë¤À¤í¤¦¡£¤³¤ì¤é¤ò»È¤Ã¤Æ
533 ¥á¥â¥ê¤Î³ä¤êÅö¤Æ¤ò¹Ô¤¦¤Î¤ÏŬÅö¤Ç¤Ï¤Ê¤¤¡£
534 .\"O .SH "SEE ALSO"
535 .SH ´ØÏ¢¹àÌÜ
536 .BR bc (1),
537 .BR expr (1),
538 .BR getconf (1),
539 .BR locale (1),
540 .BR fpathconf (3),
541 .BR pathconf (3),
542 .BR posixoptions (7)