home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / comm / net / amitcp / amitcp-2.2 / netinclude / pwd.h < prev   
Encoding:
C/C++ Source or Header  |  1993-12-21  |  1.1 KB  |  51 lines

  1. /* $Id: pwd.h,v 1.2 1993/09/15 01:35:12 ppessi Exp $
  2.  *
  3.  * pwd.h - Passwd structure and prototypes for Network Library
  4.  *
  5.  * This file is part of the AmiTCP/IP Network Library.
  6.  *
  7.  * Author: ppessi <Pekka.Pessi@hut.fi>
  8.  * Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  9.  *                  Helsinki University of Technology, Finland.
  10.  *
  11.  * Created      : Sun Jun 20 17:52:37 1993 ppessi
  12.  * Last modified: Wed Sep 15 07:38:35 1993 ppessi
  13.  */
  14.  
  15. #ifndef PWD_H
  16. #define PWD_H
  17.  
  18. #ifndef EXEC_TYPES_H
  19. #include <exec/types.h>
  20. #endif
  21.  
  22. /* Normally defined in <netdb.h> */
  23. #ifndef _PATH_PASSWD
  24. #define _PATH_PASSWD  "AmiTCP:db/passwd"
  25. #endif
  26.  
  27. /* The passwd structure */
  28. struct passwd
  29. {
  30.   UBYTE *pw_name;        /* Username */
  31.   UBYTE *pw_passwd;        /* Encrypted password */
  32.   ULONG  pw_uid;        /* User ID */
  33.   ULONG  pw_gid;        /* Group ID */
  34.   UBYTE *pw_gecos;        /* Real name etc */
  35.   UBYTE *pw_dir;        /* Home directory */
  36.   UBYTE *pw_shell;        /* Shell */
  37. };
  38.  
  39. #ifndef _UID_T
  40. #define _UID_T ULONG
  41. typedef _UID_T uid_t;
  42. #endif
  43.  
  44. /* 
  45.  * POSIX compatible routines 
  46.  */
  47. struct passwd *getpwuid(uid_t uid);
  48. struct passwd *getpwnam(const char *name);
  49.  
  50. #endif
  51.