home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / shadow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.1 KB  |  36 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. #ident    "@(#)headsec:shadow.h    1.3"
  9.  
  10. #define PASSWD         "/etc/passwd"
  11. #define SHADOW        "/etc/shadow"
  12. #define OPASSWD        "/etc/opasswd"
  13. #define OSHADOW     "/etc/oshadow"
  14. #define PASSTEMP    "/etc/ptmp"
  15. #define SHADTEMP    "/etc/stmp"
  16.  
  17. #define    DAY        (24L * 60 * 60) /* 1 day in seconds */
  18. #define DAY_NOW        (long)time((long *)0) / DAY
  19.  
  20. /* The spwd structure is used in the retreval of information from
  21.    /etc/shadow.  It is used by routines in the libsec library */
  22.  
  23. struct spwd {
  24.     char *sp_namp ; /* user name */
  25.     char *sp_pwdp ; /* user password */
  26.     long sp_lstchg ; /* password lastchanged date */
  27.     long sp_min ; /* minimum number of days between password changes */
  28.     long sp_max ; /* number of days password is valid */
  29. } ;
  30.  
  31. /* Declare all shadow password functions */
  32.  
  33. void         setspent(), endspent() ;
  34. struct spwd     *getspent(), *fgetspent(), *getspnam() ;
  35. int         putspent(), lckpwdf(), ulckpwdf() ;
  36.