1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Wed Jul 28 11:12:26 1993 by Rik Faith (faith@cs.unc.edu)
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>
28 .TH FPATHCONF 3 1993-04-04 "GNU" "Linux Programmer's Manual"
31 .\"O fpathconf, pathconf \- get configuration values for files
32 fpathconf, pathconf \- ¥Õ¥¡¥¤¥ë¤ÎÀßÄêÃͤò¼èÆÀ¤¹¤ë
36 .B #include <unistd.h>
38 .BI "long fpathconf(int " fd ", int " name );
40 .BI "long pathconf(char *" path ", int " name );
45 .\"O gets a value for the configuration option
47 .\"O for the open file descriptor
50 ¤Ï¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¡¼
52 ¤ËÂФ·¤ÆÀßÄꤵ¤ì¤Æ¤¤¤ë¥ª¥×¥·¥ç¥ó
57 .\"O gets a value for configuration option
64 ¤ËÂФ·¤ÆÀßÄꤵ¤ì¤Æ¤¤¤ë¥ª¥×¥·¥ç¥ó
68 .\"O The corresponding macros defined in
70 .\"O are minimum values; if an application wants to take advantage of values
71 .\"O which may change, a call to
75 .\"O can be made, which may yield more liberal results.
78 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ÏºÇ¾®ÃͤǤ¢¤ë¡£¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¤Ï¤³¤ì¤é¤Î
79 ÃͤòÊѹ¹¤·¤Æ¤è¤êÍÍø¤ÊÆ°ºî¤ò¹Ô¤ª¤¦¤È¤¹¤ë¤â¤Î¤¬¤¢¤ë¡£¤³¤Î¾ì¹ç¤Ç¤â
83 ¤Ï¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤ë¡£¤³¤Î¾ì¹ç¤Ï¤è¤êÂ礤ÊÃͤ¬Ê֤뤳¤È¤Ë¤Ê¤í¤¦¡£
87 .\"O equal to one of the following constants returns the following
88 .\"O configuration options:
90 ¤ò°Ê²¼¤ÎÄê¿ô¤Î¤É¤ì¤«¤Ë¤¹¤ë¤È¡¢Âбþ¤¹¤ëÀßÄꥪ¥×¥·¥ç¥ó¤¬ÊÖ¤µ¤ì¤ë¡£
93 .\"O returns the maximum number of links to the file.
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 ¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯¤ÎºÇÂç¿ô¤òÊÖ¤¹¡£
105 ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ï¡¢¤³¤ÎÃͤϥǥ£¥ì¥¯¥È¥êÁ´ÂΤËŬÍѤµ¤ì¤ë¡£Âбþ¤¹¤ë
111 .\"O returns the maximum length of a formatted input line, where
115 .\"O must refer to a terminal.
116 .\"O The corresponding macro is
117 .\"O .BR _POSIX_MAX_CANON .
118 ¥Õ¥©¡¼¥Þ¥Ã¥ÈÉÕ¤ÆþÎϹԤκÇÂçŤòÊÖ¤¹¡£¤³¤Î¤È¤
122 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
128 .\"O returns the maximum length of an input line, where
132 .\"O must refer to a terminal.
133 .\"O The corresponding macro is
134 .\"O .BR _POSIX_MAX_INPUT .
135 ÆþÎϹԤκÇÂçŤòÊÖ¤¹¡£¤³¤Î¤È¤
139 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
145 .\"O returns the maximum length of a filename in the directory
149 .\"O that the process is allowed to create.
150 .\"O The corresponding macro is
151 .\"O .BR _POSIX_NAME_MAX .
156 Æâ¤Ë¡¢¤½¤Î¥×¥í¥»¥¹¤¬ºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¥Õ¥¡¥¤¥ë̾¤ÎºÇÂçŤòÊÖ¤¹¡£
162 .\"O returns the maximum length of a relative pathname when
166 .\"O is the current working directory.
167 .\"O The corresponding macro is
168 .\"O .BR _POSIX_PATH_MAX .
172 ¤¬¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¡¢ÁêÂХѥ¹Ì¾¤ÎºÇÂçŤòÊÖ¤¹¡£
178 .\"O returns the size of the pipe buffer, where
180 .\"O must refer to a pipe or FIFO and
182 .\"O must refer to a FIFO.
183 .\"O The corresponding macro is
184 .\"O .BR _POSIX_PIPE_BUF .
185 ¥Ñ¥¤¥× (pipe) ¥Ð¥Ã¥Õ¥¡¤Î¥µ¥¤¥º¤òÊÖ¤¹¡£¤³¤Î¤È¤
187 ¤Ï¥Ñ¥¤¥×¤« FIFO ¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢
189 ¤Ï FIFO ¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
194 .B _PC_CHOWN_RESTRICTED
195 .\"O returns nonzero if the
197 .\"O call may not be used on this file.
202 .\"O refer to a directory, then this applies to all files in that
204 .\"O The corresponding macro is
205 .\"O .BR _POSIX_CHOWN_RESTRICTED .
208 ¤Î¸Æ¤Ó½Ð¤·¤¬µö¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£
212 ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤³¤ÎÀ©¸Â¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¹¤Ù¤Æ
213 ¤Î¥Õ¥¡¥¤¥ë¤ËŬÍѤµ¤ì¤ë¡£
215 .B _POSIX_CHOWN_RESTRICTED
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 ¥¢¥¯¥»¥¹Ãæ¤Î¥Õ¥¡¥¤¥ë̾¤¬
226 ¤è¤ê¤âŤ¯¡¢¥¨¥é¡¼¤È¤Ê¤ë¾ì¹ç¤Ë¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£
232 .\"O returns nonzero if special character processing can be disabled, where
236 .\"O must refer to a terminal.
237 Æüìʸ»ú (special character) ¤Î½èÍý¤¬µö¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï 0 °Ê³°¤ÎÃͤò
242 ¤ÏüËö¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
243 .\"O .SH "RETURN VALUE"
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
250 .\"O If there is an error, \-1 is returned, and
252 .\"O is set to reflect the nature of the error.
253 (¸ºß¤·¤Æ¤¤¤ì¤Ð) À©¸ÂÃͤ¬ÊÖ¤µ¤ì¤ë¡£Í׵ᤵ¤ì¤¿¥ê¥½¡¼¥¹¤Ø¤Î¥·¥¹¥Æ¥à¤ÎÀ©
254 ¸Â¤¬Â¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð \-1 ¤¬ÊÖ¤µ¤ì¡¢
256 ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Ë¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
258 ¤¬¥¨¥é¡¼¤ËÂбþ¤·¤¿ÃͤËÀßÄꤵ¤ì¤ë¡£
259 .\"O .SH "CONFORMING TO"
264 .\"O Files with name lengths longer than the value returned for
268 .\"O may exist in the given directory.
272 ¤òÆþ¤ì¤ÆÊÖ¤µ¤ì¤¿Ãͤè¤ê¤âŤ¤¥Õ¥¡¥¤¥ë̾¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤¬¡¢Í¿¤¨¤é¤ì¤¿¥Ç¥£
273 ¥ì¥¯¥È¥ê¤Ë¸ºß¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
275 .\"O Some returned values may be huge; they are not suitable for allocating
277 ÊÖ¤êÃͤÏÈó¾ï¤ËÂ礤ÊÃͤˤʤ뤳¤È¤â¤¢¤ë¡£¥á¥â¥ê¡¼¤Î³ä¤êÅö¤ÆÍѤÎÃͤˤÏÂç
278 ¤¤¹¤®¤ÆŬ¤µ¤Ê¤¤¤«¤âÃΤì¤Ê¤¤¡£