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