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"
30 fpathconf, pathconf \- ファイルの設定値を取得する
33 .B #include <unistd.h>
35 .BI "long fpathconf(int " fd ", int " name );
37 .BI "long pathconf(char *" path ", int " name );
56 で定義されているものは最小値である。アプリケーションによってはこれらの
57 値を変更してより有利な動作を行おうとするものがある。この場合でも
61 は呼び出すことができる。この場合はより大きな値が返ることになろう。
64 を以下の定数のどれかにすると、対応する設定オプションが返される。
71 がディレクトリの場合は、この値はディレクトリ全体に適用される。対応する
77 フォーマット付き入力行の最大長を返す。このとき
101 内に、そのプロセスが作成することができるファイル名の最大長を返す。
110 がカレントディレクトリの場合、相対パス名の最大長を返す。
116 パイプ (pipe) バッファのサイズを返す。このとき
118 はパイプか FIFO を参照していなければならず、
120 は FIFO を参照していなければならない。
125 .B _PC_CHOWN_RESTRICTED
128 の呼び出しが許されていない場合には 0 以外の値を返す。
132 がディレクトリを参照している場合は、この制限はそのディレクトリのすべて
135 .B _POSIX_CHOWN_RESTRICTED
141 よりも長く、エラーとなる場合には 0 以外の値を返す。
147 特殊文字 (special character) の処理が許されていない場合は 0 以外の値を
154 (存在していれば) 制限値が返される。要求されたリソースへのシステムの制
155 限が存在していなければ \-1 が返され、
157 は変更されない。エラーが起こった場合には \-1 が返され、
166 を入れて返された値よりも長いファイル名を持つファイルが、与えられたディ
169 返り値は非常に大きな値になることもある。メモリーの割り当て用の値には大