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