OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man3 / fpathconf.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 Wed Jul 28 11:12:26 1993 by Rik Faith (faith@cs.unc.edu)
24 .\"
25 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
26 .\" Translated Fri Mar 20 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
27 .\"
28 .TH FPATHCONF 3  1993-04-04 "GNU" "Linux Programmer's Manual"
29 .\"O .SH NAME
30 .SH Ì¾Á°
31 .\"O fpathconf, pathconf \- get configuration values for files
32 fpathconf, pathconf \- ¥Õ¥¡¥¤¥ë¤ÎÀßÄêÃͤò¼èÆÀ¤¹¤ë
33 .\"O .SH SYNOPSIS
34 .SH ½ñ¼°
35 .nf
36 .B #include <unistd.h>
37 .sp
38 .BI "long fpathconf(int " fd ", int " name );
39 .br
40 .BI "long pathconf(char *" path ", int " name );
41 .fi
42 .\"O .SH DESCRIPTION
43 .SH ÀâÌÀ
44 .\"O .BR fpathconf ()
45 .\"O gets a value for the configuration option
46 .\"O .I name
47 .\"O for the open file descriptor
48 .\"O .IR fd .
49 .BR fpathconf ()
50 ¤Ï¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¡¼
51 .I fd
52 ¤ËÂФ·¤ÆÀßÄꤵ¤ì¤Æ¤¤¤ë¥ª¥×¥·¥ç¥ó
53 .I name
54 ¤ÎÃͤò¼èÆÀ¤¹¤ë¡£
55 .PP
56 .\"O .BR pathconf ()
57 .\"O gets a value for configuration option
58 .\"O .I name
59 .\"O for the filename
60 .\"O .IR path .
61 .BR pathconf ()
62 ¤Ï¥Õ¥¡¥¤¥ë̾
63 .I path
64 ¤ËÂФ·¤ÆÀßÄꤵ¤ì¤Æ¤¤¤ë¥ª¥×¥·¥ç¥ó
65 .I name
66 ¤ÎÃͤò¼èÆÀ¤¹¤ë¡£
67 .PP
68 .\"O The corresponding macros defined in
69 .\"O .I <unistd.h>
70 .\"O are minimum values; if an application wants to take advantage of values
71 .\"O which may change, a call to
72 .\"O .BR fpathconf ()
73 .\"O or
74 .\"O .BR pathconf ()
75 .\"O can be made, which may yield more liberal results.
76 Âбþ¤¹¤ë¥Þ¥¯¥í¤Î¤¦¤Á
77 .I <unistd.h>
78 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ÏºÇ¾®ÃͤǤ¢¤ë¡£¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¤Ï¤³¤ì¤é¤Î
79 ÃͤòÊѹ¹¤·¤Æ¤è¤êÍ­Íø¤ÊÆ°ºî¤ò¹Ô¤ª¤¦¤È¤¹¤ë¤â¤Î¤¬¤¢¤ë¡£¤³¤Î¾ì¹ç¤Ç¤â
80 .BR fpathconf ()
81 ¤Þ¤¿¤Ï
82 .BR pathconf ()
83 ¤Ï¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤ë¡£¤³¤Î¾ì¹ç¤Ï¤è¤êÂ礭¤ÊÃͤ¬Ê֤뤳¤È¤Ë¤Ê¤í¤¦¡£
84 .PP
85 .\"O Setting
86 .\"O .I name
87 .\"O equal to one of the following constants returns the following
88 .\"O configuration options:
89 .I name
90 ¤ò°Ê²¼¤ÎÄê¿ô¤Î¤É¤ì¤«¤Ë¤¹¤ë¤È¡¢Âбþ¤¹¤ëÀßÄꥪ¥×¥·¥ç¥ó¤¬ÊÖ¤µ¤ì¤ë¡£
91 .TP
92 .B _PC_LINK_MAX
93 .\"O returns the maximum number of links to the file.
94 .\"O If
95 .\"O .I fd
96 .\"O or
97 .\"O .I path
98 .\"O refer to a directory, then the value applies to the whole directory.
99 .\"O The corresponding macro is
100 .\"O .BR _POSIX_LINK_MAX .
101 ¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯¤ÎºÇÂç¿ô¤òÊÖ¤¹¡£
102 .I fd
103 ¤Þ¤¿¤Ï
104 .I path
105 ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ï¡¢¤³¤ÎÃͤϥǥ£¥ì¥¯¥È¥êÁ´ÂΤËŬÍѤµ¤ì¤ë¡£Âбþ¤¹¤ë
106 ¥Þ¥¯¥í¤Ï
107 .B _POSIX_LINK_MAX
108 ¤Ç¤¢¤ë¡£
109 .TP
110 .B _PC_MAX_CANON
111 .\"O returns the maximum length of a formatted input line, where
112 .\"O .I fd
113 .\"O or
114 .\"O .I path
115 .\"O must refer to a terminal.
116 .\"O The corresponding macro is
117 .\"O .BR _POSIX_MAX_CANON .
118 ¥Õ¥©¡¼¥Þ¥Ã¥ÈÉÕ¤­ÆþÎϹԤκÇÂçŤòÊÖ¤¹¡£¤³¤Î¤È¤­
119 .I fd
120 ¤Þ¤¿¤Ï
121 .I path
122 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
123 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
124 .B _POSIX_MAX_CANON
125 ¤Ç¤¢¤ë¡£
126 .TP
127 .B _PC_MAX_INPUT
128 .\"O returns the maximum length of an input line, where
129 .\"O .I fd
130 .\"O or
131 .\"O .I path
132 .\"O must refer to a terminal.
133 .\"O The corresponding macro is
134 .\"O .BR _POSIX_MAX_INPUT .
135 ÆþÎϹԤκÇÂçŤòÊÖ¤¹¡£¤³¤Î¤È¤­
136 .I fd
137 ¤Þ¤¿¤Ï
138 .I path
139 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
140 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
141 .B _POSIX_MAX_INPUT
142 ¤Ç¤¢¤ë¡£
143 .TP
144 .B _PC_NAME_MAX
145 .\"O returns the maximum length of a filename in the directory
146 .\"O .I path
147 .\"O or
148 .\"O .IR fd
149 .\"O that the process is allowed to create.
150 .\"O The corresponding macro is
151 .\"O .BR _POSIX_NAME_MAX .
152 ¥Ç¥£¥ì¥¯¥È¥ê
153 .I path
154 ¤Þ¤¿¤Ï
155 .I fd
156 Æâ¤Ë¡¢¤½¤Î¥×¥í¥»¥¹¤¬ºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¥Õ¥¡¥¤¥ë̾¤ÎºÇÂçŤòÊÖ¤¹¡£
157 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
158 .B _POSIX_NAME_MAX
159 ¤Ç¤¢¤ë¡£
160 .TP
161 .B _PC_PATH_MAX
162 .\"O returns the maximum length of a relative pathname when
163 .\"O .I path
164 .\"O or
165 .\"O .I fd
166 .\"O is the current working directory.
167 .\"O The corresponding macro is
168 .\"O .BR _POSIX_PATH_MAX .
169 .I path
170 ¤Þ¤¿¤Ï
171 .I fd
172 ¤¬¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¡¢ÁêÂХѥ¹Ì¾¤ÎºÇÂçŤòÊÖ¤¹¡£
173 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
174 .B _POSIX_PATH_MAX
175 ¤Ç¤¢¤ë¡£
176 .TP
177 .B _PC_PIPE_BUF
178 .\"O returns the size of the pipe buffer, where
179 .\"O .I fd
180 .\"O must refer to a pipe or FIFO and
181 .\"O .I path
182 .\"O must refer to a FIFO.
183 .\"O The corresponding macro is
184 .\"O .BR _POSIX_PIPE_BUF .
185 ¥Ñ¥¤¥× (pipe) ¥Ð¥Ã¥Õ¥¡¤Î¥µ¥¤¥º¤òÊÖ¤¹¡£¤³¤Î¤È¤­
186 .I fd
187 ¤Ï¥Ñ¥¤¥×¤« FIFO ¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢
188 .I path
189 ¤Ï FIFO ¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
190 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
191 .B _POSIX_PIPE_BUF
192 ¤Ç¤¢¤ë¡£
193 .TP
194 .B _PC_CHOWN_RESTRICTED
195 .\"O returns nonzero if the
196 .\"O .BR chown (2)
197 .\"O call may not be used on this file.
198 .\"O If
199 .\"O .I fd
200 .\"O or
201 .\"O .I path
202 .\"O refer to a directory, then this applies to all files in that
203 .\"O directory.
204 .\"O The corresponding macro is
205 .\"O .BR _POSIX_CHOWN_RESTRICTED .
206 ¤³¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë
207 .BR chown (2)
208 ¤Î¸Æ¤Ó½Ð¤·¤¬µö¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£
209 .I fd
210 ¤Þ¤¿¤Ï
211 .I path
212 ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤³¤ÎÀ©¸Â¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¹¤Ù¤Æ
213 ¤Î¥Õ¥¡¥¤¥ë¤ËŬÍѤµ¤ì¤ë¡£
214 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
215 .B _POSIX_CHOWN_RESTRICTED
216 ¤Ç¤¢¤ë¡£
217 .TP
218 .B _PC_NO_TRUNC
219 .\"O returns nonzero if accessing filenames longer than
220 .\"O .B _POSIX_NAME_MAX
221 .\"O generates an error.
222 .\"O The corresponding macro is
223 .\"O .BR _POSIX_NO_TRUNC .
224 ¥¢¥¯¥»¥¹Ãæ¤Î¥Õ¥¡¥¤¥ë̾¤¬
225 .B _POSIX_NAME_MAX
226 ¤è¤ê¤âŤ¯¡¢¥¨¥é¡¼¤È¤Ê¤ë¾ì¹ç¤Ë¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£
227 Âбþ¤¹¤ë¥Þ¥¯¥í¤Ï
228 .B _POSIX_NAME_MAX
229 ¤Ç¤¢¤ë¡£
230 .TP
231 .B _PC_VDISABLE
232 .\"O returns nonzero if special character processing can be disabled, where
233 .\"O .I fd
234 .\"O or
235 .\"O .I path
236 .\"O must refer to a terminal.
237 Æüìʸ»ú (special character) ¤Î½èÍý¤¬µö¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï 0 °Ê³°¤ÎÃͤò
238 ÊÖ¤¹¡£¤³¤Î¤È¤­
239 .I fd
240 ¤Þ¤¿¤Ï
241 .I path
242 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
243 .\"O .SH "RETURN VALUE"
244 .SH ÊÖ¤êÃÍ
245 .\"O The limit is returned, if one exists.
246 .\"O If the system does not have a
247 .\"O limit for the requested resource, \-1 is returned, and
248 .\"O .I errno
249 .\"O is unchanged.
250 .\"O If there is an error, \-1 is returned, and
251 .\"O .I errno
252 .\"O is set to reflect the nature of the error.
253 (¸ºß¤·¤Æ¤¤¤ì¤Ð) À©¸ÂÃͤ¬ÊÖ¤µ¤ì¤ë¡£Í׵ᤵ¤ì¤¿¥ê¥½¡¼¥¹¤Ø¤Î¥·¥¹¥Æ¥à¤ÎÀ©
254 ¸Â¤¬Â¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð \-1 ¤¬ÊÖ¤µ¤ì¡¢
255 .I errno
256 ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Ë¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
257 .I errno
258 ¤¬¥¨¥é¡¼¤ËÂбþ¤·¤¿ÃͤËÀßÄꤵ¤ì¤ë¡£
259 .\"O .SH "CONFORMING TO"
260 .SH ½àµò
261 POSIX.1-2001.
262 .\"O .SH NOTES
263 .SH Ãí°Õ
264 .\"O Files with name lengths longer than the value returned for
265 .\"O .I name
266 .\"O equal to
267 .\"O .B _PC_NAME_MAX
268 .\"O may exist in the given directory.
269 .I name
270 ¤Ë
271 .B _PC_NAME_MAX
272 ¤òÆþ¤ì¤ÆÊÖ¤µ¤ì¤¿Ãͤè¤ê¤âŤ¤¥Õ¥¡¥¤¥ë̾¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤¬¡¢Í¿¤¨¤é¤ì¤¿¥Ç¥£
273 ¥ì¥¯¥È¥ê¤Ë¸ºß¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
274 .PP
275 .\"O Some returned values may be huge; they are not suitable for allocating
276 .\"O memory.
277 ÊÖ¤êÃͤÏÈó¾ï¤ËÂ礭¤ÊÃͤˤʤ뤳¤È¤â¤¢¤ë¡£¥á¥â¥ê¡¼¤Î³ä¤êÅö¤ÆÍѤÎÃͤˤÏÂç
278 ¤­¤¹¤®¤ÆŬ¤µ¤Ê¤¤¤«¤âÃΤì¤Ê¤¤¡£
279 .\"O .SH "SEE ALSO"
280 .SH ´ØÏ¢¹àÌÜ
281 .BR getconf (1),
282 .BR open (2),
283 .BR statfs (2),
284 .BR sysconf (3)