home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2287 / faillog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  715 b   |  27 lines

  1. /*
  2.  * Copyright 1989, 1990, John F. Haugh II
  3.  * All rights reserved.
  4.  *
  5.  * Use, duplication, and disclosure prohibited without
  6.  * the express written permission of the author.
  7.  */
  8.  
  9. /*
  10.  * faillog.h - login failure logging file format
  11.  *
  12.  *    @(#)faillog.h    2.2    19:23:46    7/29/90
  13.  *
  14.  * The login failure file is maintained by login(1) and fail(1L)
  15.  * Each record in the file represents a separate UID and the file
  16.  * is indexed in that fashion.
  17.  */
  18.  
  19. #define    FAILFILE    "/usr/adm/faillog"
  20.  
  21. struct    faillog {
  22.     short    fail_cnt;    /* failures since last success */
  23.     short    fail_max;    /* failures before turning account off */
  24.     char    fail_line[12];    /* last failure occured here */
  25.     time_t    fail_time;    /* last failure occured then */
  26. };
  27.