paths.h revision 203964
11539Srgrimes/*
21539Srgrimes * Copyright (c) 1989, 1993
31539Srgrimes *	The Regents of the University of California.  All rights reserved.
41539Srgrimes *
51539Srgrimes * Redistribution and use in source and binary forms, with or without
61539Srgrimes * modification, are permitted provided that the following conditions
71539Srgrimes * are met:
81539Srgrimes * 1. Redistributions of source code must retain the above copyright
91539Srgrimes *    notice, this list of conditions and the following disclaimer.
101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111539Srgrimes *    notice, this list of conditions and the following disclaimer in the
121539Srgrimes *    documentation and/or other materials provided with the distribution.
13203964Simp * 3. Neither the name of the University nor the names of its contributors
141539Srgrimes *    may be used to endorse or promote products derived from this software
151539Srgrimes *    without specific prior written permission.
161539Srgrimes *
171539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
181539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
191539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
201539Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
211539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
221539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
231539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
241539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
251539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
261539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271539Srgrimes * SUCH DAMAGE.
281539Srgrimes *
291539Srgrimes *	@(#)paths.h	8.1 (Berkeley) 6/2/93
3069793Sobrien * $FreeBSD: head/include/paths.h 203964 2010-02-16 19:39:50Z imp $
311539Srgrimes */
321539Srgrimes
331539Srgrimes#ifndef _PATHS_H_
341539Srgrimes#define	_PATHS_H_
351539Srgrimes
363041Swollman#include <sys/cdefs.h>
373041Swollman
381539Srgrimes/* Default search path. */
391539Srgrimes#define	_PATH_DEFPATH	"/usr/bin:/bin"
401539Srgrimes/* All standard utilities path. */
41201258Sjilles#define	_PATH_STDPATH	"/usr/bin:/bin:/usr/sbin:/sbin"
42187969Sobrien/* Locate system binaries. */
43187969Sobrien#define	_PATH_SYSPATH	"/sbin:/usr/sbin"
441539Srgrimes
4587136Srwatson#define	_PATH_AUTHCONF	"/etc/auth.conf"
461539Srgrimes#define	_PATH_BSHELL	"/bin/sh"
4787135Srwatson#define	_PATH_CAPABILITY	"/etc/capability"
4887135Srwatson#define	_PATH_CAPABILITY_DB	"/etc/capability.db"
491539Srgrimes#define	_PATH_CONSOLE	"/dev/console"
5096194Sdes#define	_PATH_CP	"/bin/cp"
511539Srgrimes#define	_PATH_CSHELL	"/bin/csh"
5273986Sobrien#define	_PATH_DEFTAPE	"/dev/sa0"
531539Srgrimes#define	_PATH_DEVNULL	"/dev/null"
5469793Sobrien#define	_PATH_DEVZERO	"/dev/zero"
551539Srgrimes#define	_PATH_DRUM	"/dev/drum"
5696194Sdes#define	_PATH_ETC	"/etc"
573189Spst#define	_PATH_FTPUSERS	"/etc/ftpusers"
58170527Ssimokawa#define	_PATH_FWMEM	"/dev/fwmem"
59114763Sobrien#define	_PATH_HALT	"/sbin/halt"
60114763Sobrien#define	_PATH_IFCONFIG	"/sbin/ifconfig"
611539Srgrimes#define	_PATH_KMEM	"/dev/kmem"
62113229Smdodd#define	_PATH_LIBMAP_CONF	"/etc/libmap.conf"
63116844Sphantom#define	_PATH_LOCALE	"/usr/share/locale"
6496194Sdes#define	_PATH_LOGIN	"/usr/bin/login"
651539Srgrimes#define	_PATH_MAILDIR	"/var/mail"
661539Srgrimes#define	_PATH_MAN	"/usr/share/man"
67117033Sgordon#define	_PATH_MDCONFIG	"/sbin/mdconfig"
681539Srgrimes#define	_PATH_MEM	"/dev/mem"
69124132Siedowse#define	_PATH_MKSNAP_FFS	"/sbin/mksnap_ffs"
70117033Sgordon#define	_PATH_MOUNT	"/sbin/mount"
71117033Sgordon#define	_PATH_NEWFS	"/sbin/newfs"
7242515Sasami#define	_PATH_NOLOGIN	"/var/run/nologin"
7399958Ssobomax#define	_PATH_RCP	"/bin/rcp"
74114763Sobrien#define	_PATH_REBOOT	"/sbin/reboot"
7596194Sdes#define	_PATH_RLOGIN	"/usr/bin/rlogin"
76114763Sobrien#define	_PATH_RM	"/bin/rm"
7796194Sdes#define	_PATH_RSH	"/usr/bin/rsh"
781539Srgrimes#define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
791539Srgrimes#define	_PATH_SHELLS	"/etc/shells"
801539Srgrimes#define	_PATH_TTY	"/dev/tty"
813041Swollman#define	_PATH_UNIX	"don't use _PATH_UNIX"
821539Srgrimes#define	_PATH_VI	"/usr/bin/vi"
8396807Sjmallett#define	_PATH_WALL	"/usr/bin/wall"
841539Srgrimes
851539Srgrimes/* Provide trailing slash, since mostly used for building pathnames. */
861539Srgrimes#define	_PATH_DEV	"/dev/"
871539Srgrimes#define	_PATH_TMP	"/tmp/"
881539Srgrimes#define	_PATH_VARDB	"/var/db/"
891539Srgrimes#define	_PATH_VARRUN	"/var/run/"
901539Srgrimes#define	_PATH_VARTMP	"/var/tmp/"
916083Swpaul#define	_PATH_YP	"/var/yp/"
9210975Sache#define	_PATH_UUCPLOCK	"/var/spool/lock/"
931539Srgrimes
943041Swollman/* How to get the correct name of the kernel. */
953041Swollman__BEGIN_DECLS
9693032Simpconst char *getbootfile(void);
973041Swollman__END_DECLS
983041Swollman
99117035Sgordon#ifdef RESCUE
100117035Sgordon#undef	_PATH_DEFPATH
101117035Sgordon#define	_PATH_DEFPATH	"/rescue:/usr/bin:/bin"
102117035Sgordon#undef	_PATH_STDPATH
103117035Sgordon#define	_PATH_STDPATH	"/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
104117035Sgordon#undef	_PATH_SYSPATH
105117035Sgordon#define	_PATH_SYSPATH	"/rescue:/sbin:/usr/sbin"
106117035Sgordon#undef	_PATH_BSHELL
107117035Sgordon#define	_PATH_BSHELL	"/rescue/sh"
108117035Sgordon#undef	_PATH_CP
109117035Sgordon#define	_PATH_CP	"/rescue/cp"
110117035Sgordon#undef	_PATH_CSHELL
111117035Sgordon#define	_PATH_CSHELL	"/rescue/csh"
112117035Sgordon#undef	_PATH_HALT
113117035Sgordon#define	_PATH_HALT	"/rescue/halt"
114117035Sgordon#undef	_PATH_IFCONFIG
115117035Sgordon#define	_PATH_IFCONFIG	"/rescue/ifconfig"
116117035Sgordon#undef	_PATH_MDCONFIG
117117035Sgordon#define	_PATH_MDCONFIG	"/rescue/mdconfig"
118117035Sgordon#undef	_PATH_MOUNT
119117035Sgordon#define	_PATH_MOUNT	"/rescue/mount"
120117035Sgordon#undef	_PATH_NEWFS
121117035Sgordon#define	_PATH_NEWFS	"/rescue/newfs"
122117035Sgordon#undef	_PATH_RCP
123117035Sgordon#define	_PATH_RCP	"/rescue/rcp"
124117035Sgordon#undef	_PATH_REBOOT
125117035Sgordon#define	_PATH_REBOOT	"/rescue/reboot"
126117035Sgordon#undef	_PATH_RM
127117035Sgordon#define	_PATH_RM	"/rescue/rm"
128117035Sgordon#undef	_PATH_VI
129117035Sgordon#define	_PATH_VI	"/rescue/vi"
130117035Sgordon#undef	_PATH_WALL
131117035Sgordon#define	_PATH_WALL	"/rescue/wall"
132117035Sgordon#endif /* RESCUE */
133117035Sgordon
1341539Srgrimes#endif /* !_PATHS_H_ */
135