pathnames.h revision 59243
159243Sobrien/* $Header: /src/pub/tcsh/pathnames.h,v 3.17 1998/09/13 13:51:03 christos Exp $ */
259243Sobrien/*
359243Sobrien * pathnames.h: Location of things to find
459243Sobrien */
559243Sobrien/*-
659243Sobrien * Copyright (c) 1980, 1991 The Regents of the University of California.
759243Sobrien * All rights reserved.
859243Sobrien *
959243Sobrien * Redistribution and use in source and binary forms, with or without
1059243Sobrien * modification, are permitted provided that the following conditions
1159243Sobrien * are met:
1259243Sobrien * 1. Redistributions of source code must retain the above copyright
1359243Sobrien *    notice, this list of conditions and the following disclaimer.
1459243Sobrien * 2. Redistributions in binary form must reproduce the above copyright
1559243Sobrien *    notice, this list of conditions and the following disclaimer in the
1659243Sobrien *    documentation and/or other materials provided with the distribution.
1759243Sobrien * 3. All advertising materials mentioning features or use of this software
1859243Sobrien *    must display the following acknowledgement:
1959243Sobrien *	This product includes software developed by the University of
2059243Sobrien *	California, Berkeley and its contributors.
2159243Sobrien * 4. Neither the name of the University nor the names of its contributors
2259243Sobrien *    may be used to endorse or promote products derived from this software
2359243Sobrien *    without specific prior written permission.
2459243Sobrien *
2559243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2659243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2759243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2859243Sobrien * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2959243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3059243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3159243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3259243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3359243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3459243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3559243Sobrien * SUCH DAMAGE.
3659243Sobrien */
3759243Sobrien#ifndef _h_pathnames
3859243Sobrien#define _h_pathnames
3959243Sobrien
4059243Sobrien#ifdef BSD4_4
4159243Sobrien# include <paths.h>
4259243Sobrien#endif
4359243Sobrien
4459243Sobrien#if defined(CMUCS) && !defined(_PATH_LOCAL)
4559243Sobrien# define _PATH_LOCAL		"/usr/cs/bin"
4659243Sobrien#endif /* CMUCS && !_PATH_LOCAL */
4759243Sobrien
4859243Sobrien#if defined(convex) || defined(stellar) || defined(INTEL)
4959243Sobrien# ifndef _PATH_DOTLOGIN
5059243Sobrien#  define _PATH_DOTLOGIN	"/etc/login"
5159243Sobrien# endif /* !_PATH_DOTLOGIN */
5259243Sobrien# ifndef _PATH_DOTLOGOUT
5359243Sobrien#  define _PATH_DOTLOGOUT	"/etc/logout"
5459243Sobrien# endif /* !_PATH_DOTLOGOUT */
5559243Sobrien# ifndef _PATH_DOTCSHRC
5659243Sobrien#  define _PATH_DOTCSHRC	"/etc/cshrc"
5759243Sobrien# endif /* !_PATH_DOTCSHRC */
5859243Sobrien#endif /* convex || stellar || INTEL */
5959243Sobrien
6059243Sobrien#ifdef NeXT
6159243Sobrien# ifndef _PATH_DOTLOGIN
6259243Sobrien#  define _PATH_DOTLOGIN	"/etc/login.std"
6359243Sobrien# endif /* !_PATH_DOTLOGIN */
6459243Sobrien# ifndef _PATH_DOTLOGOUT
6559243Sobrien#  define _PATH_DOTLOGOUT	"/etc/logout.std"
6659243Sobrien# endif /* !_PATH_DOTLOGOUT */
6759243Sobrien# ifndef _PATH_DOTCSHRC
6859243Sobrien#  define _PATH_DOTCSHRC	"/etc/cshrc.std"
6959243Sobrien# endif /* !_PATH_DOTCSHRC */
7059243Sobrien#endif /* NeXT */
7159243Sobrien
7259243Sobrien/* for sunos5.  */
7359243Sobrien#if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4))
7459243Sobrien# ifndef _PATH_DOTLOGIN
7559243Sobrien#  define _PATH_DOTLOGIN	"/etc/.login"
7659243Sobrien# endif /* !_PATH_DOTLOGIN */
7759243Sobrien# ifndef _PATH_DOTLOGOUT
7859243Sobrien#  define _PATH_DOTLOGOUT	"/etc/.logout"
7959243Sobrien# endif /* !_PATH_DOTLOGOUT */
8059243Sobrien# ifndef _PATH_DOTCSHRC
8159243Sobrien#  define _PATH_DOTCSHRC	"/etc/.cshrc"
8259243Sobrien# endif /* !_PATH_DOTCSHRC */
8359243Sobrien#endif /* sun & SVR4 */
8459243Sobrien
8559243Sobrien#if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC)
8659243Sobrien# ifndef _PATH_DOTLOGIN
8759243Sobrien#  define _PATH_DOTLOGIN	"/etc/cshrc"
8859243Sobrien# endif /* !_PATH_DOTLOGIN */
8959243Sobrien#endif /* sgi || OREO || cray || AMIX || CDC */
9059243Sobrien
9159243Sobrien#if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL)
9259243Sobrien# define _PATH_TCSHELL		"/bin/tcsh"		/* 1st class shell */
9359243Sobrien#endif /* _CRAYCOM && !_PATH_TCSHELL */
9459243Sobrien
9559243Sobrien#if defined(_MINIX) && !defined(_PATH_TCSHELL)
9659243Sobrien# define _PATH_TCSHELL		"/local/bin/tcsh"	/* use ram disk */
9759243Sobrien#endif /* _MINIX && !_PATH_TCSHELL */
9859243Sobrien
9959243Sobrien#if defined(__EMX__) && !defined(_PATH_DEVNULL)
10059243Sobrien# define _PATH_DEVNULL		"nul"
10159243Sobrien#endif /* __EMX__ && !_PATH_DEVNULL */
10259243Sobrien
10359243Sobrien#ifndef _PATH_LOCAL
10459243Sobrien# define _PATH_LOCAL		"/usr/local/bin"
10559243Sobrien#endif /* !_PATH_LOCAL */
10659243Sobrien
10759243Sobrien#ifndef _PATH_USRBIN
10859243Sobrien# define _PATH_USRBIN		"/usr/bin"
10959243Sobrien#endif /* !_PATH_USRBIN */
11059243Sobrien
11159243Sobrien#ifndef _PATH_USRUCB
11259243Sobrien# define _PATH_USRUCB		"/usr/ucb"
11359243Sobrien#endif /* !_PATH_USRUCB */
11459243Sobrien
11559243Sobrien#ifndef _PATH_USRBSD
11659243Sobrien# define _PATH_USRBSD		"/usr/bsd"
11759243Sobrien#endif /* !_PATH_USRBSD */
11859243Sobrien
11959243Sobrien#ifndef _PATH_BIN
12059243Sobrien# define _PATH_BIN		"/bin"
12159243Sobrien#endif /* !_PATH_BIN */
12259243Sobrien
12359243Sobrien#ifndef _PATH_DOTCSHRC
12459243Sobrien# define _PATH_DOTCSHRC		"/etc/csh.cshrc"
12559243Sobrien#endif /* !_PATH_DOTCSHRC */
12659243Sobrien
12759243Sobrien#ifndef _PATH_DOTLOGIN
12859243Sobrien# define _PATH_DOTLOGIN		"/etc/csh.login"
12959243Sobrien#endif /* !_PATH_DOTLOGIN */
13059243Sobrien
13159243Sobrien#ifndef _PATH_DOTLOGOUT
13259243Sobrien# define _PATH_DOTLOGOUT	"/etc/csh.logout"
13359243Sobrien#endif /* !_PATH_DOTLOGOUT */
13459243Sobrien
13559243Sobrien#ifndef _PATH_DEVNULL
13659243Sobrien# define _PATH_DEVNULL		"/dev/null"
13759243Sobrien#endif /* !_PATH_DEVNULL */
13859243Sobrien
13959243Sobrien#ifndef _PATH_BSHELL
14059243Sobrien# define _PATH_BSHELL		"/bin/sh"
14159243Sobrien#endif /* !_PATH_BSHELL */
14259243Sobrien
14359243Sobrien#ifndef _PATH_CSHELL
14459243Sobrien# define _PATH_CSHELL 		"/bin/csh"
14559243Sobrien#endif /* !_PATH_CSHELL */
14659243Sobrien
14759243Sobrien#ifndef _PATH_TCSHELL
14859243Sobrien#  define _PATH_TCSHELL		"/usr/local/bin/tcsh"
14959243Sobrien#endif /* !_PATH_TCSHELL */
15059243Sobrien
15159243Sobrien#ifndef _PATH_BIN_LOGIN
15259243Sobrien# define _PATH_BIN_LOGIN	"/bin/login"
15359243Sobrien#endif /* !_PATH_BIN_LOGIN */
15459243Sobrien
15559243Sobrien#ifndef _PATH_USRBIN_LOGIN
15659243Sobrien# define _PATH_USRBIN_LOGIN	"/usr/bin/login"
15759243Sobrien#endif /* !_PATH_USRBIN_LOGIN */
15859243Sobrien
15959243Sobrien#ifndef _PATH_BIN_NEWGRP
16059243Sobrien# define _PATH_BIN_NEWGRP	"/bin/newgrp"
16159243Sobrien#endif /* _PATH_BIN_NEWGRP */
16259243Sobrien
16359243Sobrien#ifndef _PATH_USRBIN_NEWGRP
16459243Sobrien# define _PATH_USRBIN_NEWGRP	"/usr/bin/newgrp"
16559243Sobrien#endif /* _PATH_USRBIN_NEWGRP */
16659243Sobrien
16759243Sobrien
16859243Sobrien
16959243Sobrien#endif /* _h_pathnames */
170