home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / shadow-3.1.4 / faillog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-05  |  973 b   |  34 lines

  1. /*
  2.  * Copyright 1989, 1990, 1992, John F. Haugh II
  3.  * All rights reserved.
  4.  *
  5.  * Permission is granted to copy and create derivative works for any
  6.  * non-commercial purpose, provided this copyright notice is preserved
  7.  * in all copies of source code, or included in human readable form
  8.  * and conspicuously displayed on all copies of object code or
  9.  * distribution media.
  10.  */
  11.  
  12. /*
  13.  * faillog.h - login failure logging file format
  14.  *
  15.  *    @(#)faillog.h    3.1    20:36:28    3/7/92
  16.  *
  17.  * The login failure file is maintained by login(1) and faillog(8)
  18.  * Each record in the file represents a separate UID and the file
  19.  * is indexed in that fashion.
  20.  */
  21.  
  22. #ifdef    SVR4
  23. #define    FAILFILE    "/var/adm/faillog"
  24. #else
  25. #define    FAILFILE    "/usr/adm/faillog"
  26. #endif
  27.  
  28. struct    faillog {
  29.     short    fail_cnt;    /* failures since last success */
  30.     short    fail_max;    /* failures before turning account off */
  31.     char    fail_line[12];    /* last failure occured here */
  32.     time_t    fail_time;    /* last failure occured then */
  33. };
  34.