PW_GETCONF(3)             OpenBSD Programmer's Manual            PW_GETCONF(3)

NAME
     pw_getconf - passwd configuration access function

SYNOPSIS
     #include <util.h>

     void
     pw_getconf(char *data, size_t len, const char *key, const char *option);

DESCRIPTION
     This interface is made obsolete by login_cap(3).  The pw_getconf() func-
     tion will be removed in a future release of OpenBSD.

     The pw_getconf() 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.

     For default values the key default can be used.  This might be useful
     when no entry was found for a specific key or option.

     An empty string is also returned for other errors.

FILES
     /etc/passwd.conf

SEE ALSO
     login_cap(3), login.conf(5), passwd(5), passwd.conf(5)

HISTORY
     The pw_getconf() function appeared in OpenBSD 2.1 and was deprecated in
     OpenBSD 3.0.

OpenBSD 3.5                      June 18, 2001                               1
