COHERENT manpages
This page displays the COHERENT manpage for getpwuid() [Get password file information, by id].
List of available manpages
Index
getpwuid() -- General Function (libc) Get password file information, by id #include <pwd.h> struct passwd *getpwuid(uid) int uid; The COHERENT system has five routines that search the file /etc/passwd, which contains information about every user of the system. The returned structure passwd is defined in the header file pwd.h. For more information on this structure, see pwd.h. getpwuid() attempts to find the first entry with a numerical user id of uid. Example For an example of this function, see the entry for getpwent(). Files /etc/passwd pwd.h See Also libc POSIX Standard, §9.2.2 Diagnostics getpwuid() returns NULL for any error or on end of file. Notes All structures and information returned are in static areas internal to getpwuid(). Therefore, information from a previous call is overwritten by each subsequent call.