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)
24 .TH FPATHCONF 3 1993-04-04 "GNU" "Linux Programmer's Manual"
26 fpathconf, pathconf \- get configuration values for files
29 .B #include <unistd.h>
31 .BI "long fpathconf(int " fd ", int " name );
33 .BI "long pathconf(char *" path ", int " name );
37 gets a value for the configuration option
39 for the open file descriptor
43 gets a value for configuration option
48 The corresponding macros defined in
50 are minimum values; if an application wants to take advantage of values
51 which may change, a call to
55 can be made, which may yield more liberal results.
59 equal to one of the following constants returns the following
60 configuration options:
63 returns the maximum number of links to the file.
68 refer to a directory, then the value applies to the whole directory.
69 The corresponding macro is
73 returns the maximum length of a formatted input line, where
77 must refer to a terminal.
78 The corresponding macro is
79 .BR _POSIX_MAX_CANON .
82 returns the maximum length of an input line, where
86 must refer to a terminal.
87 The corresponding macro is
88 .BR _POSIX_MAX_INPUT .
91 returns the maximum length of a filename in the directory
95 that the process is allowed to create.
96 The corresponding macro is
100 returns the maximum length of a relative pathname when
104 is the current working directory.
105 The corresponding macro is
106 .BR _POSIX_PATH_MAX .
109 returns the size of the pipe buffer, where
111 must refer to a pipe or FIFO and
113 must refer to a FIFO.
114 The corresponding macro is
115 .BR _POSIX_PIPE_BUF .
117 .B _PC_CHOWN_RESTRICTED
118 returns nonzero if the
120 call may not be used on this file.
125 refer to a directory, then this applies to all files in that
127 The corresponding macro is
128 .BR _POSIX_CHOWN_RESTRICTED .
131 returns nonzero if accessing filenames longer than
134 The corresponding macro is
135 .BR _POSIX_NO_TRUNC .
138 returns nonzero if special character processing can be disabled, where
142 must refer to a terminal.
144 The limit is returned, if one exists.
145 If the system does not have a
146 limit for the requested resource, \-1 is returned, and
149 If there is an error, \-1 is returned, and
151 is set to reflect the nature of the error.
155 Files with name lengths longer than the value returned for
159 may exist in the given directory.
161 Some returned values may be huge; they are not suitable for allocating