home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2288 / dialup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  928 b   |  38 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.  * Structure of d_passwd file
  11.  *
  12.  *    The d_passwd file contains the names of login shells which require
  13.  *    dialup passwords.  Each line contains the fully qualified path name
  14.  *    for the shell, followed by an optional password.  Each field is
  15.  *    separated by a ':'.
  16.  *
  17.  * Structure of the dialups file
  18.  *
  19.  *    The dialups file contains the names of ports which may be dialup
  20.  *    lines.  Each line consists of the last component of the path
  21.  *    name.  Any leading directory names are removed.
  22.  *
  23.  *    @(#)dialup.h    2.2    19:23:40    7/29/90
  24.  */
  25.  
  26. struct    dialup {
  27.     char    *du_shell;
  28.     char    *du_passwd;
  29. };
  30.  
  31. void    setduent ();
  32. void    endduent ();
  33. struct    dialup    *getduent ();
  34. struct    dialup    *getdushell ();
  35.  
  36. #define    DIALPWD    "/etc/d_passwd"
  37. #define    DIALUPS    "/etc/dialups"
  38.