home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / lib / msdospwd.h < prev    next >
C/C++ Source or Header  |  1996-08-28  |  1KB  |  57 lines

  1. /*****
  2. * msdospwd.h : passwd fake for msdos
  3. *
  4. * This file Version    $Revision: 1.2 $
  5. *
  6. * Creation date:    Wed Aug  7 15:24:34 GMT+0100 1996
  7. * Last modification:     $Date: 1996/08/27 19:20:52 $
  8. * By:            $Author: koen $
  9. * Current State:    $State: Exp $
  10. *
  11. * Author:        koen
  12. * (C)Copyright 1995-1996 Ripley Software Development
  13. * All Rights Reserved
  14. *****/
  15. /*****
  16. * $Source: /usr/local/rcs/ForUtil/lib/RCS/msdospwd.h,v $
  17. *****/
  18. /*****
  19. * ChangeLog 
  20. * $Log: msdospwd.h,v $
  21. * Revision 1.2  1996/08/27 19:20:52  koen
  22. * msdos related changes
  23. *
  24. * Revision 1.1  1996/08/07 21:16:56  koen
  25. * Initial Revision
  26. *
  27. *****/ 
  28.  
  29. #ifndef _msdospwd_h_
  30. #define _msdospwd_h_
  31.  
  32. #ifndef __MSDOS__
  33. #include <pwd.h>
  34. #else
  35.  
  36. #include <sys/types.h>
  37.  
  38. struct passwd{
  39.     char *pw_name;        /* Username.  */
  40.     char *pw_passwd;    /* Password.  */
  41.     uid_t pw_uid;        /* User ID.  */
  42.     gid_t pw_gid;        /* Group ID.  */
  43.     char *pw_gecos;        /* Real name.  */
  44.     char *pw_dir;        /* Home directory.  */
  45.     char *pw_shell;        /* Shell program.  */
  46. };
  47.  
  48. #define getuid()    0
  49.  
  50. extern struct passwd *getpwuid(uid_t uid);
  51. extern struct passwd *getpwnam(char *name);
  52. extern struct passwd *getpwent(void);
  53.  
  54. #endif /* __MSDOS__ */
  55. /* Don't add anything after this endif! */
  56. #endif /* _msdospwd_h_ */
  57.