|
NAMEconfstr —
get string-valued configurable variables
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
size_t
DESCRIPTIONThis interface is specified by IEEE Std 1003.1-2001 (“POSIX.1”). A more flexible (but non-portable) interface is provided by sysctl(3).The The name argument specifies the system
variable to be queried. Symbolic constants for each name value are found in
the include file The available values are as follows:
RETURN VALUESIf the call toconfstr () is not successful, 0 is
returned and errno is set appropriately. Otherwise, if
the variable does not have a configuration defined value, 0 is returned and
errno is not modified. Otherwise, the buffer size needed
to hold the entire configuration-defined value is returned. If this size is
greater than the argument len, the string in
buf was truncated.
ERRORSTheconfstr () function may fail and set
errno for any of the errors specified for the library
functions
malloc(3)
and
sysctl(3).
In addition, the following errors may be reported:
SEE ALSOgetconf(1), pathconf(2), sysconf(3), sysctl(3)HISTORYTheconfstr () function first appeared in
4.4BSD.
Visit the GSP FreeBSD Man Page Interface. |