home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / UNIX.ZIP / GUESS / PWD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-03  |  2.2 KB  |  67 lines

  1. /*
  2.  *        @(#)pwd.h    1.2    (ULTRIX)    4/16/85
  3.  *        pwd.h    4.1    83/05/03
  4.  */
  5.  
  6. /************************************************************************
  7.  *                                    *
  8.  *            Copyright (c) 1985 by                *
  9.  *        Digital Equipment Corporation, Maynard, MA        *
  10.  *            All rights reserved.                *
  11.  *                                    *
  12.  *   This software is furnished under a license and may be used and    *
  13.  *   copied  only  in accordance with the terms of such license and    *
  14.  *   with the  inclusion  of  the  above  copyright  notice.   This    *
  15.  *   software  or  any  other copies thereof may not be provided or    *
  16.  *   otherwise made available to any other person.  No title to and    *
  17.  *   ownership of the software is hereby transferred.            *
  18.  *                                    *
  19.  *   This software is  derived  from  software  received  from  the    *
  20.  *   University    of   California,   Berkeley,   and   from   Bell    *
  21.  *   Laboratories.  Use, duplication, or disclosure is  subject  to    *
  22.  *   restrictions  under  license  agreements  with  University  of    *
  23.  *   California and with AT&T.                        *
  24.  *                                    *
  25.  *   The information in this software is subject to change  without    *
  26.  *   notice  and should not be construed as a commitment by Digital    *
  27.  *   Equipment Corporation.                        *
  28.  *                                    *
  29.  *   Digital assumes no responsibility for the use  or  reliability    *
  30.  *   of its software on equipment which is not supplied by Digital.    *
  31.  *                                    *
  32.  ************************************************************************/
  33. /************************************************************************
  34.  *            Modification History                *
  35.  *                                    *
  36.  *    David L Ballenger, 28-Mar-1985                    *
  37.  * 0001    Add definitions for System V compatibility.            *
  38.  *                                    *
  39.  ************************************************************************/
  40.  
  41.  
  42. struct    passwd { /* see getpwent(3) */
  43.     char    *pw_name;
  44.     char    *pw_passwd;
  45.     int    pw_uid;
  46.     int    pw_gid;
  47. #ifndef    SYSTEM_FIVE
  48.     int    pw_quota;    /* ULTRIX, BSD-4.2 */
  49. #else    SYSTEM_FIVE
  50.     char    *pw_age;    /* System V */
  51. #endif    SYSTEM_FIVE
  52.     char    *pw_comment;
  53.     char    *pw_gecos;
  54.     char    *pw_dir;
  55.     char    *pw_shell;
  56. };
  57.  
  58.  
  59. struct comment {
  60.     char    *c_dept;
  61.     char    *c_name;
  62.     char    *c_acct;
  63.     char    *c_bin;
  64. };
  65.  
  66. struct passwd *getpwent(), *getpwuid(), *getpwnam();
  67.