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: stable/10/include/paths.h 312382 2017-01-18 14:14:00Z avg $
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"
53255629Ssbruno#define	_PATH_DEVGPIOC	"/dev/gpioc"
541539Srgrimes#define	_PATH_DEVNULL	"/dev/null"
5569793Sobrien#define	_PATH_DEVZERO	"/dev/zero"
561539Srgrimes#define	_PATH_DRUM	"/dev/drum"
57219019Sgabor#define	_PATH_ESDB	"/usr/share/i18n/esdb"
5896194Sdes#define	_PATH_ETC	"/etc"
593189Spst#define	_PATH_FTPUSERS	"/etc/ftpusers"
60170527Ssimokawa#define	_PATH_FWMEM	"/dev/fwmem"
61252310Shrs#define	_PATH_GBDE	"/sbin/gbde"
62252310Shrs#define	_PATH_GELI	"/sbin/geli"
63114763Sobrien#define	_PATH_HALT	"/sbin/halt"
64219019Sgabor#ifdef COMPAT_32BIT
65219019Sgabor#define	_PATH_I18NMODULE	"/usr/lib32/i18n"
66219019Sgabor#else
67219019Sgabor#define	_PATH_I18NMODULE	"/usr/lib/i18n"
68219019Sgabor#endif
69114763Sobrien#define	_PATH_IFCONFIG	"/sbin/ifconfig"
701539Srgrimes#define	_PATH_KMEM	"/dev/kmem"
71113229Smdodd#define	_PATH_LIBMAP_CONF	"/etc/libmap.conf"
72116844Sphantom#define	_PATH_LOCALE	"/usr/share/locale"
7396194Sdes#define	_PATH_LOGIN	"/usr/bin/login"
741539Srgrimes#define	_PATH_MAILDIR	"/var/mail"
751539Srgrimes#define	_PATH_MAN	"/usr/share/man"
76117033Sgordon#define	_PATH_MDCONFIG	"/sbin/mdconfig"
771539Srgrimes#define	_PATH_MEM	"/dev/mem"
78124132Siedowse#define	_PATH_MKSNAP_FFS	"/sbin/mksnap_ffs"
79117033Sgordon#define	_PATH_MOUNT	"/sbin/mount"
80117033Sgordon#define	_PATH_NEWFS	"/sbin/newfs"
8142515Sasami#define	_PATH_NOLOGIN	"/var/run/nologin"
8299958Ssobomax#define	_PATH_RCP	"/bin/rcp"
83114763Sobrien#define	_PATH_REBOOT	"/sbin/reboot"
8496194Sdes#define	_PATH_RLOGIN	"/usr/bin/rlogin"
85114763Sobrien#define	_PATH_RM	"/bin/rm"
8696194Sdes#define	_PATH_RSH	"/usr/bin/rsh"
871539Srgrimes#define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
881539Srgrimes#define	_PATH_SHELLS	"/etc/shells"
891539Srgrimes#define	_PATH_TTY	"/dev/tty"
903041Swollman#define	_PATH_UNIX	"don't use _PATH_UNIX"
91243247Strasz#define	_PATH_UFSSUSPEND	"/dev/ufssuspend"
921539Srgrimes#define	_PATH_VI	"/usr/bin/vi"
9396807Sjmallett#define	_PATH_WALL	"/usr/bin/wall"
941539Srgrimes
951539Srgrimes/* Provide trailing slash, since mostly used for building pathnames. */
961539Srgrimes#define	_PATH_DEV	"/dev/"
971539Srgrimes#define	_PATH_TMP	"/tmp/"
981539Srgrimes#define	_PATH_VARDB	"/var/db/"
991539Srgrimes#define	_PATH_VARRUN	"/var/run/"
1001539Srgrimes#define	_PATH_VARTMP	"/var/tmp/"
101312382Savg#define	_PATH_DEVVMM	"/dev/vmm/"
1026083Swpaul#define	_PATH_YP	"/var/yp/"
10310975Sache#define	_PATH_UUCPLOCK	"/var/spool/lock/"
1041539Srgrimes
1053041Swollman/* How to get the correct name of the kernel. */
1063041Swollman__BEGIN_DECLS
10793032Simpconst char *getbootfile(void);
1083041Swollman__END_DECLS
1093041Swollman
110117035Sgordon#ifdef RESCUE
111117035Sgordon#undef	_PATH_DEFPATH
112117035Sgordon#define	_PATH_DEFPATH	"/rescue:/usr/bin:/bin"
113117035Sgordon#undef	_PATH_STDPATH
114117035Sgordon#define	_PATH_STDPATH	"/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
115117035Sgordon#undef	_PATH_SYSPATH
116117035Sgordon#define	_PATH_SYSPATH	"/rescue:/sbin:/usr/sbin"
117117035Sgordon#undef	_PATH_BSHELL
118117035Sgordon#define	_PATH_BSHELL	"/rescue/sh"
119117035Sgordon#undef	_PATH_CP
120117035Sgordon#define	_PATH_CP	"/rescue/cp"
121117035Sgordon#undef	_PATH_CSHELL
122117035Sgordon#define	_PATH_CSHELL	"/rescue/csh"
123117035Sgordon#undef	_PATH_HALT
124117035Sgordon#define	_PATH_HALT	"/rescue/halt"
125117035Sgordon#undef	_PATH_IFCONFIG
126117035Sgordon#define	_PATH_IFCONFIG	"/rescue/ifconfig"
127117035Sgordon#undef	_PATH_MDCONFIG
128117035Sgordon#define	_PATH_MDCONFIG	"/rescue/mdconfig"
129117035Sgordon#undef	_PATH_MOUNT
130117035Sgordon#define	_PATH_MOUNT	"/rescue/mount"
131117035Sgordon#undef	_PATH_NEWFS
132117035Sgordon#define	_PATH_NEWFS	"/rescue/newfs"
133117035Sgordon#undef	_PATH_RCP
134117035Sgordon#define	_PATH_RCP	"/rescue/rcp"
135117035Sgordon#undef	_PATH_REBOOT
136117035Sgordon#define	_PATH_REBOOT	"/rescue/reboot"
137117035Sgordon#undef	_PATH_RM
138117035Sgordon#define	_PATH_RM	"/rescue/rm"
139117035Sgordon#undef	_PATH_VI
140117035Sgordon#define	_PATH_VI	"/rescue/vi"
141117035Sgordon#undef	_PATH_WALL
142117035Sgordon#define	_PATH_WALL	"/rescue/wall"
143117035Sgordon#endif /* RESCUE */
144117035Sgordon
1451539Srgrimes#endif /* !_PATHS_H_ */
146