void
pw_getconf(
char *data
, size_t len
, const char *key
, const char *option
)
)
function reads
/etc/passwd.conf
and retrieves the value of the option specified
by
option
from the section given by
key
.
If no suitable entry is found
for the
key
an empty string will be returned in data.
To retrieve default values the key
default
can be used.
In this case, if
/etc/passwd.conf
does not exist or does not contain a
default
section, the built-in defaults will be returned.
They are as follows:
option data |
ypcipher old |
localcipher old |
An empty string is returned for all errors.
/etc/passwd.conf
)
will fail if:
ENOTDIR
]
/etc/passwd.conf
named
key
.
ENOENT
]
option
in the specified key.
)
function first appeared in
NetBSD1.6.