home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntinc25.zoo / pwd.h < prev    next >
C/C++ Source or Header  |  1992-09-17  |  779b  |  44 lines

  1. #ifndef _PWD_H
  2. #define _PWD_H
  3. /* file to describe password file fields */
  4.  
  5. #ifndef _COMPILER_H
  6. #include <compiler.h>
  7. #endif
  8.  
  9. #ifndef _TYPES_H
  10. #include <types.h>
  11. #endif
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. struct passwd {
  18.     char *pw_name;
  19.     char *pw_passwd;
  20.     uid_t pw_uid;
  21.     gid_t pw_gid;
  22.     char *pw_gecos;
  23.     char *pw_dir;
  24.     char *pw_shell;
  25. };
  26.  
  27. #define pw_comment    pw_gecos
  28.  
  29. __EXTERN struct passwd *getpwent __PROTO((void));
  30. __EXTERN struct passwd *getpwnam __PROTO((const char *));
  31.  
  32. #ifndef _POSIX_SOURCE
  33. __EXTERN void        setpwfile __PROTO((char *));
  34. __EXTERN struct passwd *getpwuid __PROTO((int));
  35. __EXTERN void        setpwent  __PROTO((void));
  36. __EXTERN void        endpwent  __PROTO((void));
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #endif /* _PWD_H */
  44.