home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / shadow-3.1.4 / dialup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-26  |  1.5 KB  |  59 lines

  1. /*
  2.  * Copyright 1989, 1990, 1991, 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.  * Structure of the /etc/d_passwd file
  14.  *
  15.  *    The d_passwd file contains the names of login shells which require
  16.  *    dialup passwords.  Each line contains the fully qualified path name
  17.  *    for the shell, followed by an optional password.  Each field is
  18.  *    separated by a ':'.
  19.  *
  20.  * Structure of the /etc/dialups file
  21.  *
  22.  *    The dialups file contains the names of ports which may be dialup
  23.  *    lines.  Each line consists of the last component of the path
  24.  *    name.  The leading "/dev/" string is removed.
  25.  *
  26.  *    @(#)dialup.h    3.2    09:06:55    5/28/91
  27.  */
  28.  
  29. #ifndef    _DIALUP_H
  30. #define    _DIALUP_H
  31.  
  32. struct    dialup {
  33.     char    *du_shell;
  34.     char    *du_passwd;
  35. };
  36.  
  37. #if !__STDC__
  38. extern    void    setduent ();
  39. extern    void    endduent ();
  40. extern    struct    dialup    *fgetduent ();
  41. extern    struct    dialup    *getduent ();
  42. extern    struct    dialup    *getdushell ();
  43. extern    int    putduent ();
  44. extern    int    isadialup ();
  45. #else
  46. extern    void    setduent (void);
  47. extern    void    endduent (void);
  48. extern    struct    dialup    *fgetduent (FILE *);
  49. extern    struct    dialup    *getduent (void);
  50. extern    struct    dialup    *getdushell (char *);
  51. extern    int    putduent (struct dialup *, FILE *);
  52. extern    int    isadialup (char *);
  53. #endif
  54.  
  55. #define    DIALPWD    "/etc/d_passwd"
  56. #define    DIALUPS    "/etc/dialups"
  57.  
  58. #endif
  59.