xref: /titanic_52/usr/src/cmd/cmd-inet/usr.bin/pppd/pathnames.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * pathnames.h - define path names used by pppd.
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * Copyright (c) 2000 by Sun Microsystems, Inc.
5*7c478bd9Sstevel@tonic-gate  * All rights reserved.
6*7c478bd9Sstevel@tonic-gate  *
7*7c478bd9Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software and its
8*7c478bd9Sstevel@tonic-gate  * documentation is hereby granted, provided that the above copyright
9*7c478bd9Sstevel@tonic-gate  * notice appears in all copies.
10*7c478bd9Sstevel@tonic-gate  *
11*7c478bd9Sstevel@tonic-gate  * SUN MAKES NO REPRESENTATION OR WARRANTIES ABOUT THE SUITABILITY OF
12*7c478bd9Sstevel@tonic-gate  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
13*7c478bd9Sstevel@tonic-gate  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
14*7c478bd9Sstevel@tonic-gate  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT.  SUN SHALL NOT BE LIABLE FOR
15*7c478bd9Sstevel@tonic-gate  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
16*7c478bd9Sstevel@tonic-gate  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES
17*7c478bd9Sstevel@tonic-gate  *
18*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1993 The Australian National University.
19*7c478bd9Sstevel@tonic-gate  * All rights reserved.
20*7c478bd9Sstevel@tonic-gate  *
21*7c478bd9Sstevel@tonic-gate  * Redistribution and use in source and binary forms are permitted
22*7c478bd9Sstevel@tonic-gate  * provided that the above copyright notice and this paragraph are
23*7c478bd9Sstevel@tonic-gate  * duplicated in all such forms and that any documentation,
24*7c478bd9Sstevel@tonic-gate  * advertising materials, and other materials related to such
25*7c478bd9Sstevel@tonic-gate  * distribution and use acknowledge that the software was developed
26*7c478bd9Sstevel@tonic-gate  * by the Australian National University.  The name of the University
27*7c478bd9Sstevel@tonic-gate  * may not be used to endorse or promote products derived from this
28*7c478bd9Sstevel@tonic-gate  * software without specific prior written permission.
29*7c478bd9Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
30*7c478bd9Sstevel@tonic-gate  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
31*7c478bd9Sstevel@tonic-gate  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32*7c478bd9Sstevel@tonic-gate  *
33*7c478bd9Sstevel@tonic-gate  * $Id: pathnames.h,v 1.13 2000/04/04 07:06:52 paulus Exp $
34*7c478bd9Sstevel@tonic-gate  */
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
37*7c478bd9Sstevel@tonic-gate 
38*7c478bd9Sstevel@tonic-gate #ifndef __PATHNAMES_H__
39*7c478bd9Sstevel@tonic-gate #define __PATHNAMES_H__
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate #ifdef HAVE_PATHS_H
42*7c478bd9Sstevel@tonic-gate #include <paths.h>
43*7c478bd9Sstevel@tonic-gate #else /* HAVE_PATHS_H */
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
46*7c478bd9Sstevel@tonic-gate extern "C" {
47*7c478bd9Sstevel@tonic-gate #endif
48*7c478bd9Sstevel@tonic-gate 
49*7c478bd9Sstevel@tonic-gate #ifndef _PATH_VARRUN
50*7c478bd9Sstevel@tonic-gate #define _PATH_VARRUN	"/etc/ppp/"
51*7c478bd9Sstevel@tonic-gate #endif /* _PATH_VARRUN */
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate #define _PATH_DEVNULL	"/dev/null"
54*7c478bd9Sstevel@tonic-gate #endif /* HAVE_PATHS_H */
55*7c478bd9Sstevel@tonic-gate 
56*7c478bd9Sstevel@tonic-gate #ifndef _ROOT_PATH
57*7c478bd9Sstevel@tonic-gate #define _ROOT_PATH
58*7c478bd9Sstevel@tonic-gate #endif /* _ROOT_PATH */
59*7c478bd9Sstevel@tonic-gate 
60*7c478bd9Sstevel@tonic-gate /*
61*7c478bd9Sstevel@tonic-gate  * Duplication of /etc/ppp allows default compilation on non-ANSI compilers.
62*7c478bd9Sstevel@tonic-gate  */
63*7c478bd9Sstevel@tonic-gate #define _PATH_UPAPFILE	 _ROOT_PATH "/etc/ppp/pap-secrets"
64*7c478bd9Sstevel@tonic-gate #define _PATH_CHAPFILE	 _ROOT_PATH "/etc/ppp/chap-secrets"
65*7c478bd9Sstevel@tonic-gate #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
66*7c478bd9Sstevel@tonic-gate #define _PATH_IPUP	 _ROOT_PATH "/etc/ppp/ip-up"
67*7c478bd9Sstevel@tonic-gate #define _PATH_IPDOWN	 _ROOT_PATH "/etc/ppp/ip-down"
68*7c478bd9Sstevel@tonic-gate #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
69*7c478bd9Sstevel@tonic-gate #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
70*7c478bd9Sstevel@tonic-gate #define _PATH_IPXUP	 _ROOT_PATH "/etc/ppp/ipx-up"
71*7c478bd9Sstevel@tonic-gate #define _PATH_IPXDOWN	 _ROOT_PATH "/etc/ppp/ipx-down"
72*7c478bd9Sstevel@tonic-gate #define _PATH_AUTHUP	 _ROOT_PATH "/etc/ppp/auth-up"
73*7c478bd9Sstevel@tonic-gate #define _PATH_AUTHDOWN	 _ROOT_PATH "/etc/ppp/auth-down"
74*7c478bd9Sstevel@tonic-gate #define _PATH_TTYOPT	 _ROOT_PATH "/etc/ppp/options."
75*7c478bd9Sstevel@tonic-gate #define _PATH_CONNERRS	 _ROOT_PATH "/etc/ppp/connect-errors"
76*7c478bd9Sstevel@tonic-gate #define _PATH_PEERFILES	 _ROOT_PATH "/etc/ppp/peers/"
77*7c478bd9Sstevel@tonic-gate #define _PATH_RESOLV	 _ROOT_PATH "/etc/ppp/resolv.conf"
78*7c478bd9Sstevel@tonic-gate 
79*7c478bd9Sstevel@tonic-gate #define _PATH_USEROPT	 ".ppprc"
80*7c478bd9Sstevel@tonic-gate 
81*7c478bd9Sstevel@tonic-gate #ifdef __STDC__
82*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB	_ROOT_PATH _PATH_VARRUN "pppd.tdb"
83*7c478bd9Sstevel@tonic-gate #else /* __STDC__ */
84*7c478bd9Sstevel@tonic-gate #ifdef HAVE_PATHS_H
85*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB	"/var/run/pppd.tdb"
86*7c478bd9Sstevel@tonic-gate #else /* HAVE_PATHS_H */
87*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB	"/etc/ppp/pppd.tdb"
88*7c478bd9Sstevel@tonic-gate #endif /* HAVE_PATHS_H */
89*7c478bd9Sstevel@tonic-gate #endif /* __STDC__ */
90*7c478bd9Sstevel@tonic-gate 
91*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
92*7c478bd9Sstevel@tonic-gate }
93*7c478bd9Sstevel@tonic-gate #endif
94*7c478bd9Sstevel@tonic-gate 
95*7c478bd9Sstevel@tonic-gate #endif /* __PATHNAMES_H__ */
96