|
|
1.1 ! root 1: ! 2: ! 3: getpwnam() General Function getpwnam() ! 4: ! 5: ! 6: ! 7: ! 8: Get password file information, by name ! 9: ! 10: #include <pwd.h> ! 11: ssttrruucctt ppaasssswwdd *ggeettppwwnnaamm(_u_n_a_m_e) ! 12: cchhaarr *_u_n_a_m_e; ! 13: ! 14: The COHERENT system has five routines that search the file ! 15: /etc/passwd, which contains information about every user of the ! 16: system. The returned structure passwd is defined in the header ! 17: file pwd.h. For a description of this structure, see pwd.h. ! 18: ! 19: getpwnam attempts to find the first entry with a name of uname. ! 20: ! 21: ***** Files ***** ! 22: ! 23: /etc/passwd ! 24: <pwd.h> ! 25: ! 26: ***** See Also ***** ! 27: ! 28: endpwent(), general functions, getpwent(), getpwuid(), pwd.h, ! 29: setpwent() ! 30: ! 31: ***** Diagnostics ***** ! 32: ! 33: getpwnam returns NULL for any error or on end of file. ! 34: ! 35: ***** Notes ***** ! 36: ! 37: All structures and information returned are in static areas in- ! 38: ternal to getpwnam. Therefore, information from a previous call ! 39: is overwritten by each subsequent call. ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.