pathnames.h revision 225736
1110827Sphantom/* $Header: /p/tcsh/cvsroot/tcsh/pathnames.h,v 3.18 2002/03/08 17:36:46 christos Exp $ */ 2110827Sphantom/* 3110827Sphantom * pathnames.h: Location of things to find 4110827Sphantom */ 5110827Sphantom/*- 6110827Sphantom * Copyright (c) 1980, 1991 The Regents of the University of California. 7110827Sphantom * All rights reserved. 8110827Sphantom * 9110827Sphantom * Redistribution and use in source and binary forms, with or without 10110827Sphantom * modification, are permitted provided that the following conditions 11110827Sphantom * are met: 12110827Sphantom * 1. Redistributions of source code must retain the above copyright 13110827Sphantom * notice, this list of conditions and the following disclaimer. 14110827Sphantom * 2. Redistributions in binary form must reproduce the above copyright 15110827Sphantom * notice, this list of conditions and the following disclaimer in the 16110827Sphantom * documentation and/or other materials provided with the distribution. 17110827Sphantom * 3. Neither the name of the University nor the names of its contributors 18110827Sphantom * may be used to endorse or promote products derived from this software 19110827Sphantom * without specific prior written permission. 20110827Sphantom * 21110827Sphantom * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22110827Sphantom * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23110827Sphantom * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24110827Sphantom * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25110827Sphantom * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26110827Sphantom * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27110827Sphantom * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28110827Sphantom * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29110827Sphantom * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30110827Sphantom * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31110827Sphantom * SUCH DAMAGE. 32110827Sphantom */ 33111447Sru#ifndef _h_pathnames 34110827Sphantom#define _h_pathnames 35124535Sru 36110827Sphantom#ifdef BSD4_4 37110827Sphantom# include <paths.h> 38110827Sphantom#endif 39111447Sru 40110827Sphantom#if defined(CMUCS) && !defined(_PATH_LOCAL) 41111447Sru# define _PATH_LOCAL "/usr/cs/bin" 42110827Sphantom#endif /* CMUCS && !_PATH_LOCAL */ 43110827Sphantom 44110827Sphantom#if defined(convex) || defined(stellar) || defined(INTEL) 45111447Sru# ifndef _PATH_DOTLOGIN 46111447Sru# define _PATH_DOTLOGIN "/etc/login" 47111447Sru# endif /* !_PATH_DOTLOGIN */ 48111447Sru# ifndef _PATH_DOTLOGOUT 49110827Sphantom# define _PATH_DOTLOGOUT "/etc/logout" 50110827Sphantom# endif /* !_PATH_DOTLOGOUT */ 51110827Sphantom# ifndef _PATH_DOTCSHRC 52111447Sru# define _PATH_DOTCSHRC "/etc/cshrc" 53111447Sru# endif /* !_PATH_DOTCSHRC */ 54111447Sru#endif /* convex || stellar || INTEL */ 55111447Sru 56111447Sru#ifdef NeXT 57111447Sru# ifndef _PATH_DOTLOGIN 58111447Sru# define _PATH_DOTLOGIN "/etc/login.std" 59111447Sru# endif /* !_PATH_DOTLOGIN */ 60111447Sru# ifndef _PATH_DOTLOGOUT 61110827Sphantom# define _PATH_DOTLOGOUT "/etc/logout.std" 62110827Sphantom# endif /* !_PATH_DOTLOGOUT */ 63111447Sru# ifndef _PATH_DOTCSHRC 64110827Sphantom# define _PATH_DOTCSHRC "/etc/cshrc.std" 65111447Sru# endif /* !_PATH_DOTCSHRC */ 66111447Sru#endif /* NeXT */ 67 68/* for sunos5. */ 69#if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4)) 70# ifndef _PATH_DOTLOGIN 71# define _PATH_DOTLOGIN "/etc/.login" 72# endif /* !_PATH_DOTLOGIN */ 73# ifndef _PATH_DOTLOGOUT 74# define _PATH_DOTLOGOUT "/etc/.logout" 75# endif /* !_PATH_DOTLOGOUT */ 76# ifndef _PATH_DOTCSHRC 77# define _PATH_DOTCSHRC "/etc/.cshrc" 78# endif /* !_PATH_DOTCSHRC */ 79#endif /* sun & SVR4 */ 80 81#if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC) 82# ifndef _PATH_DOTLOGIN 83# define _PATH_DOTLOGIN "/etc/cshrc" 84# endif /* !_PATH_DOTLOGIN */ 85#endif /* sgi || OREO || cray || AMIX || CDC */ 86 87#if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL) 88# define _PATH_TCSHELL "/bin/tcsh" /* 1st class shell */ 89#endif /* _CRAYCOM && !_PATH_TCSHELL */ 90 91#if defined(_MINIX) && !defined(_PATH_TCSHELL) 92# define _PATH_TCSHELL "/local/bin/tcsh" /* use ram disk */ 93#endif /* _MINIX && !_PATH_TCSHELL */ 94 95#if defined(__EMX__) && !defined(_PATH_DEVNULL) 96# define _PATH_DEVNULL "nul" 97#endif /* __EMX__ && !_PATH_DEVNULL */ 98 99#ifndef _PATH_LOCAL 100# define _PATH_LOCAL "/usr/local/bin" 101#endif /* !_PATH_LOCAL */ 102 103#ifndef _PATH_USRBIN 104# define _PATH_USRBIN "/usr/bin" 105#endif /* !_PATH_USRBIN */ 106 107#ifndef _PATH_USRUCB 108# define _PATH_USRUCB "/usr/ucb" 109#endif /* !_PATH_USRUCB */ 110 111#ifndef _PATH_USRBSD 112# define _PATH_USRBSD "/usr/bsd" 113#endif /* !_PATH_USRBSD */ 114 115#ifndef _PATH_BIN 116# define _PATH_BIN "/bin" 117#endif /* !_PATH_BIN */ 118 119#ifndef _PATH_DOTCSHRC 120# define _PATH_DOTCSHRC "/etc/csh.cshrc" 121#endif /* !_PATH_DOTCSHRC */ 122 123#ifndef _PATH_DOTLOGIN 124# define _PATH_DOTLOGIN "/etc/csh.login" 125#endif /* !_PATH_DOTLOGIN */ 126 127#ifndef _PATH_DOTLOGOUT 128# define _PATH_DOTLOGOUT "/etc/csh.logout" 129#endif /* !_PATH_DOTLOGOUT */ 130 131#ifndef _PATH_DEVNULL 132# define _PATH_DEVNULL "/dev/null" 133#endif /* !_PATH_DEVNULL */ 134 135#ifndef _PATH_BSHELL 136# define _PATH_BSHELL "/bin/sh" 137#endif /* !_PATH_BSHELL */ 138 139#ifndef _PATH_CSHELL 140# define _PATH_CSHELL "/bin/csh" 141#endif /* !_PATH_CSHELL */ 142 143#ifndef _PATH_TCSHELL 144# define _PATH_TCSHELL "/usr/local/bin/tcsh" 145#endif /* !_PATH_TCSHELL */ 146 147#ifndef _PATH_BIN_LOGIN 148# define _PATH_BIN_LOGIN "/bin/login" 149#endif /* !_PATH_BIN_LOGIN */ 150 151#ifndef _PATH_USRBIN_LOGIN 152# define _PATH_USRBIN_LOGIN "/usr/bin/login" 153#endif /* !_PATH_USRBIN_LOGIN */ 154 155#ifndef _PATH_BIN_NEWGRP 156# define _PATH_BIN_NEWGRP "/bin/newgrp" 157#endif /* _PATH_BIN_NEWGRP */ 158 159#ifndef _PATH_USRBIN_NEWGRP 160# define _PATH_USRBIN_NEWGRP "/usr/bin/newgrp" 161#endif /* _PATH_USRBIN_NEWGRP */ 162 163 164 165#endif /* _h_pathnames */ 166