1232633Smp/* $Header: /p/tcsh/cvsroot/tcsh/pathnames.h,v 3.22 2011/02/05 20:34:55 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.
17100616Smp * 3. Neither the name of the University nor the names of its contributors
1859243Sobrien *    may be used to endorse or promote products derived from this software
1959243Sobrien *    without specific prior written permission.
2059243Sobrien *
2159243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2259243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2359243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2459243Sobrien * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2559243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2659243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2759243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2859243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2959243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3059243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3159243Sobrien * SUCH DAMAGE.
3259243Sobrien */
3359243Sobrien#ifndef _h_pathnames
3459243Sobrien#define _h_pathnames
3559243Sobrien
36232633Smp#ifdef HAVE_PATHS_H
3759243Sobrien# include <paths.h>
3859243Sobrien#endif
3959243Sobrien
4059243Sobrien#if defined(CMUCS) && !defined(_PATH_LOCAL)
4159243Sobrien# define _PATH_LOCAL		"/usr/cs/bin"
4259243Sobrien#endif /* CMUCS && !_PATH_LOCAL */
4359243Sobrien
4459243Sobrien#if defined(convex) || defined(stellar) || defined(INTEL)
4559243Sobrien# ifndef _PATH_DOTLOGIN
4659243Sobrien#  define _PATH_DOTLOGIN	"/etc/login"
4759243Sobrien# endif /* !_PATH_DOTLOGIN */
4859243Sobrien# ifndef _PATH_DOTLOGOUT
4959243Sobrien#  define _PATH_DOTLOGOUT	"/etc/logout"
5059243Sobrien# endif /* !_PATH_DOTLOGOUT */
5159243Sobrien# ifndef _PATH_DOTCSHRC
5259243Sobrien#  define _PATH_DOTCSHRC	"/etc/cshrc"
5359243Sobrien# endif /* !_PATH_DOTCSHRC */
5459243Sobrien#endif /* convex || stellar || INTEL */
5559243Sobrien
5659243Sobrien#ifdef NeXT
5759243Sobrien# ifndef _PATH_DOTLOGIN
5859243Sobrien#  define _PATH_DOTLOGIN	"/etc/login.std"
5959243Sobrien# endif /* !_PATH_DOTLOGIN */
6059243Sobrien# ifndef _PATH_DOTLOGOUT
6159243Sobrien#  define _PATH_DOTLOGOUT	"/etc/logout.std"
6259243Sobrien# endif /* !_PATH_DOTLOGOUT */
6359243Sobrien# ifndef _PATH_DOTCSHRC
6459243Sobrien#  define _PATH_DOTCSHRC	"/etc/cshrc.std"
6559243Sobrien# endif /* !_PATH_DOTCSHRC */
6659243Sobrien#endif /* NeXT */
6759243Sobrien
6859243Sobrien/* for sunos5.  */
6959243Sobrien#if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4))
7059243Sobrien# ifndef _PATH_DOTLOGIN
7159243Sobrien#  define _PATH_DOTLOGIN	"/etc/.login"
7259243Sobrien# endif /* !_PATH_DOTLOGIN */
7359243Sobrien# ifndef _PATH_DOTLOGOUT
7459243Sobrien#  define _PATH_DOTLOGOUT	"/etc/.logout"
7559243Sobrien# endif /* !_PATH_DOTLOGOUT */
7659243Sobrien# ifndef _PATH_DOTCSHRC
7759243Sobrien#  define _PATH_DOTCSHRC	"/etc/.cshrc"
7859243Sobrien# endif /* !_PATH_DOTCSHRC */
7959243Sobrien#endif /* sun & SVR4 */
8059243Sobrien
8159243Sobrien#if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC)
8259243Sobrien# ifndef _PATH_DOTLOGIN
8359243Sobrien#  define _PATH_DOTLOGIN	"/etc/cshrc"
8459243Sobrien# endif /* !_PATH_DOTLOGIN */
8559243Sobrien#endif /* sgi || OREO || cray || AMIX || CDC */
8659243Sobrien
8759243Sobrien#if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL)
8859243Sobrien# define _PATH_TCSHELL		"/bin/tcsh"		/* 1st class shell */
8959243Sobrien#endif /* _CRAYCOM && !_PATH_TCSHELL */
9059243Sobrien
9159243Sobrien#if defined(_MINIX) && !defined(_PATH_TCSHELL)
9259243Sobrien# define _PATH_TCSHELL		"/local/bin/tcsh"	/* use ram disk */
9359243Sobrien#endif /* _MINIX && !_PATH_TCSHELL */
9459243Sobrien
95232633Smp#if defined(__linux__) && !defined(_PATH_TCSHELL)
96232633Smp# define _PATH_TCSHELL		"/bin/tcsh"
97232633Smp#endif /* __linux__ && !_PATH_TCSHELL */
98232633Smp
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
148232633Smp# 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