home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / tnlogin.zip / pwd.h < prev    next >
C/C++ Source or Header  |  1994-09-16  |  645b  |  39 lines

  1. /* pwd.h - /etc/passwd access library
  2.  *
  3.  * Author:  Kai Uwe Rommel <rommel@jonas>
  4.  * Created: Mon Mar 28 1994
  5.  */
  6.  
  7. /* $Id: pwd.h,v 1.1 1994/09/16 08:32:48 rommel Exp $ */
  8.  
  9. /*
  10.  * $Log: pwd.h,v $
  11.  * Revision 1.1  1994/09/16 08:32:48  rommel
  12.  * Initial revision
  13.  * 
  14.  */
  15.  
  16. #ifndef _PWD_H
  17. #define _PWD_H
  18.  
  19. struct passwd
  20. {
  21.   char *pw_name;
  22.   char *pw_dir;
  23.   char *pw_gecos;
  24.   char *pw_passwd;
  25.   char *pw_shell;
  26.   int pw_uid;
  27.   int pw_gid;
  28. };
  29.  
  30. #define gcos_name(x, y)  x
  31.  
  32. struct passwd *getpwnam(char *name);
  33. struct passwd *getpwuid(int uid);
  34. int setpwent(struct passwd *);
  35.  
  36. #endif /* _PWD_H */
  37.  
  38. /* end of pwd.h */
  39.