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 #ifndef __PATHNAMES_H__ 37*7c478bd9Sstevel@tonic-gate #define __PATHNAMES_H__ 38*7c478bd9Sstevel@tonic-gate 39*7c478bd9Sstevel@tonic-gate #ifdef HAVE_PATHS_H 40*7c478bd9Sstevel@tonic-gate #include <paths.h> 41*7c478bd9Sstevel@tonic-gate #else /* HAVE_PATHS_H */ 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 44*7c478bd9Sstevel@tonic-gate extern "C" { 45*7c478bd9Sstevel@tonic-gate #endif 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gate #ifndef _PATH_VARRUN 48*7c478bd9Sstevel@tonic-gate #define _PATH_VARRUN "/etc/ppp/" 49*7c478bd9Sstevel@tonic-gate #endif /* _PATH_VARRUN */ 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate #define _PATH_DEVNULL "/dev/null" 52*7c478bd9Sstevel@tonic-gate #endif /* HAVE_PATHS_H */ 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate #ifndef _ROOT_PATH 55*7c478bd9Sstevel@tonic-gate #define _ROOT_PATH 56*7c478bd9Sstevel@tonic-gate #endif /* _ROOT_PATH */ 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate /* 59*7c478bd9Sstevel@tonic-gate * Duplication of /etc/ppp allows default compilation on non-ANSI compilers. 60*7c478bd9Sstevel@tonic-gate */ 61*7c478bd9Sstevel@tonic-gate #define _PATH_UPAPFILE _ROOT_PATH "/etc/ppp/pap-secrets" 62*7c478bd9Sstevel@tonic-gate #define _PATH_CHAPFILE _ROOT_PATH "/etc/ppp/chap-secrets" 63*7c478bd9Sstevel@tonic-gate #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options" 64*7c478bd9Sstevel@tonic-gate #define _PATH_IPUP _ROOT_PATH "/etc/ppp/ip-up" 65*7c478bd9Sstevel@tonic-gate #define _PATH_IPDOWN _ROOT_PATH "/etc/ppp/ip-down" 66*7c478bd9Sstevel@tonic-gate #define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up" 67*7c478bd9Sstevel@tonic-gate #define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 68*7c478bd9Sstevel@tonic-gate #define _PATH_IPXUP _ROOT_PATH "/etc/ppp/ipx-up" 69*7c478bd9Sstevel@tonic-gate #define _PATH_IPXDOWN _ROOT_PATH "/etc/ppp/ipx-down" 70*7c478bd9Sstevel@tonic-gate #define _PATH_AUTHUP _ROOT_PATH "/etc/ppp/auth-up" 71*7c478bd9Sstevel@tonic-gate #define _PATH_AUTHDOWN _ROOT_PATH "/etc/ppp/auth-down" 72*7c478bd9Sstevel@tonic-gate #define _PATH_TTYOPT _ROOT_PATH "/etc/ppp/options." 73*7c478bd9Sstevel@tonic-gate #define _PATH_CONNERRS _ROOT_PATH "/etc/ppp/connect-errors" 74*7c478bd9Sstevel@tonic-gate #define _PATH_PEERFILES _ROOT_PATH "/etc/ppp/peers/" 75*7c478bd9Sstevel@tonic-gate #define _PATH_RESOLV _ROOT_PATH "/etc/ppp/resolv.conf" 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gate #define _PATH_USEROPT ".ppprc" 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate #ifdef __STDC__ 80*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB _ROOT_PATH _PATH_VARRUN "pppd.tdb" 81*7c478bd9Sstevel@tonic-gate #else /* __STDC__ */ 82*7c478bd9Sstevel@tonic-gate #ifdef HAVE_PATHS_H 83*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB "/var/run/pppd.tdb" 84*7c478bd9Sstevel@tonic-gate #else /* HAVE_PATHS_H */ 85*7c478bd9Sstevel@tonic-gate #define _PATH_PPPDB "/etc/ppp/pppd.tdb" 86*7c478bd9Sstevel@tonic-gate #endif /* HAVE_PATHS_H */ 87*7c478bd9Sstevel@tonic-gate #endif /* __STDC__ */ 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 90*7c478bd9Sstevel@tonic-gate } 91*7c478bd9Sstevel@tonic-gate #endif 92*7c478bd9Sstevel@tonic-gate 93*7c478bd9Sstevel@tonic-gate #endif /* __PATHNAMES_H__ */ 94