Query: getpw
OS: opensolaris
Section: 3c
Links: opensolaris man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getpw(3C) Standard C Library Functions getpw(3C)NAMEgetpw - get passwd entry from UIDSYNOPSIS#include <stdlib.h> int getpw(uid_t uid, char *buf);DESCRIPTIONThe getpw() function searches the user data base for a user id number that equals uid, copies the line of the password file in which uid was found into the array pointed to by buf, and returns 0. getpw() returns non-zero if uid cannot be found.USAGEThis function is included only for compatibility with prior systems and should not be used; the functions described on the getpwnam(3C) manual page should be used instead. If the /etc/passwd and the /etc/group files have a plus sign (+) for the NIS entry, then getpwent() and getgrent() will not return NULL when the end of file is reached. See getpwnam(3C).RETURN VALUESThe getpw() function returns non-zero on error.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+SEE ALSOgetpwnam(3C), passwd(4), attributes(5) SunOS 5.11 29 Dec 1996 getpw(3C)
Related Man Pages |
---|
getpw(3) - redhat |
qmail-getpw(8) - debian |
getpw(3) - centos |
getpw(3c) - sunos |
getpw(3) - minix |
Similar Topics in the Unix Linux Community |
---|
Reversing UID's |
Doubt over Uid and User name. |
AWK...find a string ,if so print it |
awk script doubt in extracting and comparing uid |
Equivalent uid to root |