Query: pw_mapping
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pw_mapping(3) Library Functions Manual pw_mapping(3)NAMEpw_nametoid, pw_idtoname, gr_nametoid, gr_idtoname - Map between user and group names and IDs (Enhanced Security)LIBRARYSecurity Library - libsecurity.soSYNOPSIS#include <sys/types.h> #include <prot.h> uid_t pw_nametoid( char *name) char *pw_idtoname( uid_t id); gid_t gr_nametoid( char *name); char *gr_idtoname( gid_t id);PARAMETERSSpecifies the user (pw_nametoid()) or group (gr_nametoid()) name. Specifies the user (pw_idtoname()) or group (gr_idtoname()) ID.DESCRIPTIONThe mapping functions provide an efficient mapping between user and group names and identifiers (IDs). These functions maintain a separate binary database, which is automatically updated each time the functions encounter a changed /etc/passwd or /etc/group file. Also, these functions do not interfere with the behavior of the getpwent() and getgrent() functions, and are thus used by the protected password data- base functions, which must frequently convert between names and identifiers but may not disrupt an application's use of password mapping functions.NOTESPrograms using these functions must be compiled with -lsecurity.RETURN VALUESFunctions returning character strings return Null on failure, and a pointer to a string in an internal (that is, internal to the functions) memory area containing the user or group name on success. Functions returning integers return a nonnegative user or group ID on success, or a value of -1 on failure.FILESSystem password file. System group file.RELATED INFORMATIONFunctions: getgrent(3), getprpwent(3), getpwent(3). delim off pw_mapping(3)
Related Man Pages |
---|
endgrent(3) - osf1 |
fgetgrent_r(3) - osf1 |
getgrent(3) - osf1 |
getgrgid(3) - osf1 |
getgrgid_r(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
PHP Write Man Pages to MySQL DB |