3 .ds ;G \\*(;G\\f\\$1\\$3\\f\\$2
4 .if !
\a\\$4
\a\a .Af \\$2 \\$1 "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
7 .ie
\a\\$3
\a\a .ft \\$1
11 .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
16 .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
19 .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
22 .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
24 .de EX \" start example
41 ast \- miscellaneous libast support
46 char* astconf(const char* \fIname\fP, const char* \fIpath\fP, const char* \fIvalue\fP);
47 Ast_confdisc_t astconfdisc(Ast_confdisc_t new_notify);
48 void astconflist(Sfio_t* stream, const char* path, int flags);
49 off_t astcopy(int \fIrfd\fP, int \fIwfd\fP, off_t \fIn\fP);
50 int astquery(int \fIfd\fP, const char* \fIformat\fP , ...);
54 is a string interface to the
64 then the configuration parameter value for
69 configuration parameters may consult the
84 The string return value for
86 remains unchanged until the next
94 then a valid string is always returned;
98 has no configuration value.
99 This simplifies the programming interface:
101 if (!strcmp(astconf("PATH_RESOLVE", NiL, NiL), "logical"))
102 /* the logical way ... */
108 then the configuration parameter value for
113 is returned if the value cannot be set.
116 universe = astconf("UNIVERSE", 0, "att");
118 astconf("UNIVERSE", 0, universe);
120 The settable configuration names are:
126 viewpathing is enabled,
129 This is an alternative to the
135 if symbolic links are followed during file tree traversal,
137 if symbolic links are not followed during file tree traversal,
140 if symbolic links are followed at the top level during file tree traversal.
141 These correspond to the generic
155 This configuration parameter controls the
157 setting on machines that support it (e.g., Pyramid).
159 also controls the behavior of some commands like
166 values may also be set and queried, but these should probably have
167 some form of vendor prefix to avoid being stomped by future standards.
170 registers a discipline function
172 int (*notify)(const char* \fIname\fP, const char* \fIpath\fP, const char* \fIvalue\fP);
174 that is called just before the configuration parameter
184 then the configuration parameter value is not changed.
187 lists the current configuration names and values of
193 then \f5"/"\fP is used where appropriate.
200 then all configuration parameters are listed.
202 lists the readonly configuration parameters and
204 lists the settable configuration parameters.
206 lists the settable configuration parameters in a form that can be
207 snarfed for input to the
212 efficiently copies up to
214 bytes from the file descriptor
216 to the file descriptor
218 The actual number of bytes copied is returned; \-1 is returned on error.
221 is 0 then an optimal number of bytes (with respect to both
229 is used to do the transfer.
230 Some implementations may bypass user buffer copies usually required by the
231 .IR read (2)- write (2)
239 to the controlling terminal and reads a response from the controlling terminal.
240 Offirmative response returns
243 or quit response returns
254 is called on a quit response.
255 The responses will eventually be locale specific.
258 returns the number of rows in
260 and the number of columns
262 for the terminal file descriptor
264 If the number of rows or columns cannot be determined or if
266 is not a terminal then
274 methods fail then the environment variable
278 and the environment variable
283 getconf(1), confstr(2), mmap(2), pathconf(2), read(2), sysconf(2), write(2)