paths.h revision 243247
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 243247 2012-11-18 19:16:10Z trasz $
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
451539Srgrimes#define	_PATH_BSHELL	"/bin/sh"
4687135Srwatson#define	_PATH_CAPABILITY	"/etc/capability"
4787135Srwatson#define	_PATH_CAPABILITY_DB	"/etc/capability.db"
481539Srgrimes#define	_PATH_CONSOLE	"/dev/console"
4996194Sdes#define	_PATH_CP	"/bin/cp"
501539Srgrimes#define	_PATH_CSHELL	"/bin/csh"
51219019Sgabor#define	_PATH_CSMAPPER	"/usr/share/i18n/csmapper"
5273986Sobrien#define	_PATH_DEFTAPE	"/dev/sa0"
531539Srgrimes#define	_PATH_DEVNULL	"/dev/null"
5469793Sobrien#define	_PATH_DEVZERO	"/dev/zero"
551539Srgrimes#define	_PATH_DRUM	"/dev/drum"
56219019Sgabor#define	_PATH_ESDB	"/usr/share/i18n/esdb"
5796194Sdes#define	_PATH_ETC	"/etc"
583189Spst#define	_PATH_FTPUSERS	"/etc/ftpusers"
59170527Ssimokawa#define	_PATH_FWMEM	"/dev/fwmem"
60114763Sobrien#define	_PATH_HALT	"/sbin/halt"
61219019Sgabor#ifdef COMPAT_32BIT
62219019Sgabor#define	_PATH_I18NMODULE	"/usr/lib32/i18n"
63219019Sgabor#else
64219019Sgabor#define	_PATH_I18NMODULE	"/usr/lib/i18n"
65219019Sgabor#endif
66114763Sobrien#define	_PATH_IFCONFIG	"/sbin/ifconfig"
671539Srgrimes#define	_PATH_KMEM	"/dev/kmem"
68113229Smdodd#define	_PATH_LIBMAP_CONF	"/etc/libmap.conf"
69116844Sphantom#define	_PATH_LOCALE	"/usr/share/locale"
7096194Sdes#define	_PATH_LOGIN	"/usr/bin/login"
711539Srgrimes#define	_PATH_MAILDIR	"/var/mail"
721539Srgrimes#define	_PATH_MAN	"/usr/share/man"
73117033Sgordon#define	_PATH_MDCONFIG	"/sbin/mdconfig"
741539Srgrimes#define	_PATH_MEM	"/dev/mem"
75124132Siedowse#define	_PATH_MKSNAP_FFS	"/sbin/mksnap_ffs"
76117033Sgordon#define	_PATH_MOUNT	"/sbin/mount"
77117033Sgordon#define	_PATH_NEWFS	"/sbin/newfs"
7842515Sasami#define	_PATH_NOLOGIN	"/var/run/nologin"
7999958Ssobomax#define	_PATH_RCP	"/bin/rcp"
80114763Sobrien#define	_PATH_REBOOT	"/sbin/reboot"
8196194Sdes#define	_PATH_RLOGIN	"/usr/bin/rlogin"
82114763Sobrien#define	_PATH_RM	"/bin/rm"
8396194Sdes#define	_PATH_RSH	"/usr/bin/rsh"
841539Srgrimes#define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
851539Srgrimes#define	_PATH_SHELLS	"/etc/shells"
861539Srgrimes#define	_PATH_TTY	"/dev/tty"
873041Swollman#define	_PATH_UNIX	"don't use _PATH_UNIX"
88243247Strasz#define	_PATH_UFSSUSPEND	"/dev/ufssuspend"
891539Srgrimes#define	_PATH_VI	"/usr/bin/vi"
9096807Sjmallett#define	_PATH_WALL	"/usr/bin/wall"
911539Srgrimes
921539Srgrimes/* Provide trailing slash, since mostly used for building pathnames. */
931539Srgrimes#define	_PATH_DEV	"/dev/"
941539Srgrimes#define	_PATH_TMP	"/tmp/"
951539Srgrimes#define	_PATH_VARDB	"/var/db/"
961539Srgrimes#define	_PATH_VARRUN	"/var/run/"
971539Srgrimes#define	_PATH_VARTMP	"/var/tmp/"
986083Swpaul#define	_PATH_YP	"/var/yp/"
9910975Sache#define	_PATH_UUCPLOCK	"/var/spool/lock/"
1001539Srgrimes
1013041Swollman/* How to get the correct name of the kernel. */
1023041Swollman__BEGIN_DECLS
10393032Simpconst char *getbootfile(void);
1043041Swollman__END_DECLS
1053041Swollman
106117035Sgordon#ifdef RESCUE
107117035Sgordon#undef	_PATH_DEFPATH
108117035Sgordon#define	_PATH_DEFPATH	"/rescue:/usr/bin:/bin"
109117035Sgordon#undef	_PATH_STDPATH
110117035Sgordon#define	_PATH_STDPATH	"/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
111117035Sgordon#undef	_PATH_SYSPATH
112117035Sgordon#define	_PATH_SYSPATH	"/rescue:/sbin:/usr/sbin"
113117035Sgordon#undef	_PATH_BSHELL
114117035Sgordon#define	_PATH_BSHELL	"/rescue/sh"
115117035Sgordon#undef	_PATH_CP
116117035Sgordon#define	_PATH_CP	"/rescue/cp"
117117035Sgordon#undef	_PATH_CSHELL
118117035Sgordon#define	_PATH_CSHELL	"/rescue/csh"
119117035Sgordon#undef	_PATH_HALT
120117035Sgordon#define	_PATH_HALT	"/rescue/halt"
121117035Sgordon#undef	_PATH_IFCONFIG
122117035Sgordon#define	_PATH_IFCONFIG	"/rescue/ifconfig"
123117035Sgordon#undef	_PATH_MDCONFIG
124117035Sgordon#define	_PATH_MDCONFIG	"/rescue/mdconfig"
125117035Sgordon#undef	_PATH_MOUNT
126117035Sgordon#define	_PATH_MOUNT	"/rescue/mount"
127117035Sgordon#undef	_PATH_NEWFS
128117035Sgordon#define	_PATH_NEWFS	"/rescue/newfs"
129117035Sgordon#undef	_PATH_RCP
130117035Sgordon#define	_PATH_RCP	"/rescue/rcp"
131117035Sgordon#undef	_PATH_REBOOT
132117035Sgordon#define	_PATH_REBOOT	"/rescue/reboot"
133117035Sgordon#undef	_PATH_RM
134117035Sgordon#define	_PATH_RM	"/rescue/rm"
135117035Sgordon#undef	_PATH_VI
136117035Sgordon#define	_PATH_VI	"/rescue/vi"
137117035Sgordon#undef	_PATH_WALL
138117035Sgordon#define	_PATH_WALL	"/rescue/wall"
139117035Sgordon#endif /* RESCUE */
140117035Sgordon
1411539Srgrimes#endif /* !_PATHS_H_ */
142