Annotation of coherent/a/usr/man/COHERENT/setpwent, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: setpwent()               General Function              setpwent()
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Rewind password file
                      9: 
                     10: #include <pwd.h>
                     11: sseettppwweenntt()
                     12: 
                     13: The  COHERENT  system  has five  routines  that  search the  file
                     14: /etc/passwd, which  contains information about every  user of the
                     15: system.  The  returned structure passwd is  defined in the header
                     16: file pwd.h, as follows:
                     17: 
                     18: 
                     19: struct passwd {
                     20:      char *pw_name; /* login user name */
                     21:      char *pw_passwd;/* login password */
                     22:      int  pw_uid;   /* login user id */
                     23:      int  pw_gid;   /* login group id */
                     24:      int  pw_quota; /* file quota (unused) */
                     25:      char *pw_comment;/* comments (unused) */
                     26:      char *pw_gecos;/* (unused) */
                     27:      char *pw_dir;  /* working directory */
                     28:      char *pw_shell;/* initial program */
                     29: };
                     30: 
                     31: 
                     32: For detailed descriptions of  the above fields, see the entry for
                     33: passwd.
                     34: 
                     35: setpwent  rewinds the  password  file, which  allows searches  to
                     36: begin from the beginning of the file.
                     37: 
                     38: ***** Files *****
                     39: 
                     40: /etc/passwd
                     41: <pwd.h>
                     42: 
                     43: ***** See Also *****
                     44: 
                     45: endpwent(),    general    functions,   getpwent(),    getpwnam(),
                     46: getpwuid(), pwd.h
                     47: 
                     48: ***** Diagnostics *****
                     49: 
                     50: setpwent returns NULL for any error.
                     51: 
                     52: 
                     53: 
                     54: 
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.