xref: /freebsd/include/paths.h (revision 927c7d40)
159deaec5SRodney W. Grimes /*
259deaec5SRodney W. Grimes  * Copyright (c) 1989, 1993
359deaec5SRodney W. Grimes  *	The Regents of the University of California.  All rights reserved.
459deaec5SRodney W. Grimes  *
559deaec5SRodney W. Grimes  * Redistribution and use in source and binary forms, with or without
659deaec5SRodney W. Grimes  * modification, are permitted provided that the following conditions
759deaec5SRodney W. Grimes  * are met:
859deaec5SRodney W. Grimes  * 1. Redistributions of source code must retain the above copyright
959deaec5SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer.
1059deaec5SRodney W. Grimes  * 2. Redistributions in binary form must reproduce the above copyright
1159deaec5SRodney W. Grimes  *    notice, this list of conditions and the following disclaimer in the
1259deaec5SRodney W. Grimes  *    documentation and/or other materials provided with the distribution.
1359deaec5SRodney W. Grimes  * 3. All advertising materials mentioning features or use of this software
1459deaec5SRodney W. Grimes  *    must display the following acknowledgement:
1559deaec5SRodney W. Grimes  *	This product includes software developed by the University of
1659deaec5SRodney W. Grimes  *	California, Berkeley and its contributors.
1759deaec5SRodney W. Grimes  * 4. Neither the name of the University nor the names of its contributors
1859deaec5SRodney W. Grimes  *    may be used to endorse or promote products derived from this software
1959deaec5SRodney W. Grimes  *    without specific prior written permission.
2059deaec5SRodney W. Grimes  *
2159deaec5SRodney W. Grimes  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2259deaec5SRodney W. Grimes  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2359deaec5SRodney W. Grimes  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2459deaec5SRodney W. Grimes  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2559deaec5SRodney W. Grimes  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2659deaec5SRodney W. Grimes  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2759deaec5SRodney W. Grimes  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2859deaec5SRodney W. Grimes  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2959deaec5SRodney W. Grimes  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3059deaec5SRodney W. Grimes  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3159deaec5SRodney W. Grimes  * SUCH DAMAGE.
3259deaec5SRodney W. Grimes  *
3359deaec5SRodney W. Grimes  *	@(#)paths.h	8.1 (Berkeley) 6/2/93
341a37aa56SDavid E. O'Brien  * $FreeBSD$
3559deaec5SRodney W. Grimes  */
3659deaec5SRodney W. Grimes 
3759deaec5SRodney W. Grimes #ifndef _PATHS_H_
3859deaec5SRodney W. Grimes #define	_PATHS_H_
3959deaec5SRodney W. Grimes 
404be4929cSGarrett Wollman #include <sys/cdefs.h>
414be4929cSGarrett Wollman 
4259deaec5SRodney W. Grimes /* Default search path. */
4359deaec5SRodney W. Grimes #define	_PATH_DEFPATH	"/usr/bin:/bin"
4459deaec5SRodney W. Grimes /* All standard utilities path. */
4559deaec5SRodney W. Grimes #define	_PATH_STDPATH \
46fb502a37SRodney W. Grimes 	"/usr/bin:/bin:/usr/sbin:/sbin:"
47a3ba4c65SGordon Tetlow /* Locate system binaries */
48927c7d40SDavid E. O'Brien #define _PATH_SYSPATH	"/sbin:/usr/sbin"
4959deaec5SRodney W. Grimes 
50eecd4637SJordan K. Hubbard #define	_PATH_AUTHCONF	"/etc/auth.conf"
5159deaec5SRodney W. Grimes #define	_PATH_BSHELL	"/bin/sh"
520caeee4eSRobert Watson #define	_PATH_CAPABILITY	"/etc/capability"
530caeee4eSRobert Watson #define	_PATH_CAPABILITY_DB	"/etc/capability.db"
5459deaec5SRodney W. Grimes #define	_PATH_CONSOLE	"/dev/console"
5575f3111cSDag-Erling Smørgrav #define	_PATH_CP	"/bin/cp"
5659deaec5SRodney W. Grimes #define	_PATH_CSHELL	"/bin/csh"
578454c72cSDavid E. O'Brien #define	_PATH_DEFTAPE	"/dev/sa0"
5859deaec5SRodney W. Grimes #define	_PATH_DEVNULL	"/dev/null"
591a37aa56SDavid E. O'Brien #define	_PATH_DEVZERO	"/dev/zero"
6059deaec5SRodney W. Grimes #define	_PATH_DRUM	"/dev/drum"
6175f3111cSDag-Erling Smørgrav #define	_PATH_ETC	"/etc"
6266a9a515SPaul Traina #define	_PATH_FTPUSERS	"/etc/ftpusers"
6341b23fe0SHidetoshi Shimokawa #define	_PATH_FWMEM	"/dev/fwmem"
648d5c19ffSDavid E. O'Brien #define	_PATH_HALT	"/sbin/halt"
658d5c19ffSDavid E. O'Brien #define	_PATH_IFCONFIG	"/sbin/ifconfig"
6659deaec5SRodney W. Grimes #define	_PATH_KMEM	"/dev/kmem"
6729ade362SMatthew N. Dodd #define	_PATH_LIBMAP_CONF	"/etc/libmap.conf"
6873e18024SAlexey Zelkin #define	_PATH_LOCALE	"/usr/share/locale"
6975f3111cSDag-Erling Smørgrav #define	_PATH_LOGIN	"/usr/bin/login"
7059deaec5SRodney W. Grimes #define	_PATH_MAILDIR	"/var/mail"
7159deaec5SRodney W. Grimes #define	_PATH_MAN	"/usr/share/man"
721386defaSGordon Tetlow #define	_PATH_MDCONFIG	"/sbin/mdconfig"
7359deaec5SRodney W. Grimes #define	_PATH_MEM	"/dev/mem"
746e3aaeb2SIan Dowse #define	_PATH_MKSNAP_FFS	"/sbin/mksnap_ffs"
751386defaSGordon Tetlow #define	_PATH_MOUNT	"/sbin/mount"
761386defaSGordon Tetlow #define	_PATH_NEWFS	"/sbin/newfs"
7716ceea1bSSatoshi Asami #define	_PATH_NOLOGIN	"/var/run/nologin"
786f8d27fcSMaxim Sobolev #define	_PATH_RCP	"/bin/rcp"
798d5c19ffSDavid E. O'Brien #define	_PATH_REBOOT	"/sbin/reboot"
8075f3111cSDag-Erling Smørgrav #define	_PATH_RLOGIN	"/usr/bin/rlogin"
818d5c19ffSDavid E. O'Brien #define	_PATH_RM	"/bin/rm"
8275f3111cSDag-Erling Smørgrav #define	_PATH_RSH	"/usr/bin/rsh"
8359deaec5SRodney W. Grimes #define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
8459deaec5SRodney W. Grimes #define	_PATH_SHELLS	"/etc/shells"
8559deaec5SRodney W. Grimes #define	_PATH_TTY	"/dev/tty"
864be4929cSGarrett Wollman #define	_PATH_UNIX	"don't use _PATH_UNIX"
8759deaec5SRodney W. Grimes #define	_PATH_VI	"/usr/bin/vi"
885fab96cfSJuli Mallett #define	_PATH_WALL	"/usr/bin/wall"
8959deaec5SRodney W. Grimes 
9059deaec5SRodney W. Grimes /* Provide trailing slash, since mostly used for building pathnames. */
9159deaec5SRodney W. Grimes #define	_PATH_DEV	"/dev/"
9259deaec5SRodney W. Grimes #define	_PATH_TMP	"/tmp/"
9359deaec5SRodney W. Grimes #define	_PATH_VARDB	"/var/db/"
9459deaec5SRodney W. Grimes #define	_PATH_VARRUN	"/var/run/"
9559deaec5SRodney W. Grimes #define	_PATH_VARTMP	"/var/tmp/"
96c70242aeSBill Paul #define	_PATH_YP	"/var/yp/"
97b8643b5aSAndrey A. Chernov #define	_PATH_UUCPLOCK	"/var/spool/lock/"
9859deaec5SRodney W. Grimes 
994be4929cSGarrett Wollman /* How to get the correct name of the kernel. */
1004be4929cSGarrett Wollman __BEGIN_DECLS
101bb28f3c2SWarner Losh const char *getbootfile(void);
1024be4929cSGarrett Wollman __END_DECLS
1034be4929cSGarrett Wollman 
104884c25d1SGordon Tetlow #ifdef RESCUE
105884c25d1SGordon Tetlow #undef	_PATH_DEFPATH
106884c25d1SGordon Tetlow #define	_PATH_DEFPATH	"/rescue:/usr/bin:/bin"
107884c25d1SGordon Tetlow #undef	_PATH_STDPATH
108884c25d1SGordon Tetlow #define	_PATH_STDPATH	"/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
109884c25d1SGordon Tetlow #undef	_PATH_SYSPATH
110884c25d1SGordon Tetlow #define	_PATH_SYSPATH	"/rescue:/sbin:/usr/sbin"
111884c25d1SGordon Tetlow #undef	_PATH_BSHELL
112884c25d1SGordon Tetlow #define	_PATH_BSHELL	"/rescue/sh"
113884c25d1SGordon Tetlow #undef	_PATH_CP
114884c25d1SGordon Tetlow #define	_PATH_CP	"/rescue/cp"
115884c25d1SGordon Tetlow #undef	_PATH_CSHELL
116884c25d1SGordon Tetlow #define	_PATH_CSHELL	"/rescue/csh"
117884c25d1SGordon Tetlow #undef	_PATH_HALT
118884c25d1SGordon Tetlow #define	_PATH_HALT	"/rescue/halt"
119884c25d1SGordon Tetlow #undef	_PATH_IFCONFIG
120884c25d1SGordon Tetlow #define	_PATH_IFCONFIG	"/rescue/ifconfig"
121884c25d1SGordon Tetlow #undef	_PATH_MDCONFIG
122884c25d1SGordon Tetlow #define	_PATH_MDCONFIG	"/rescue/mdconfig"
123884c25d1SGordon Tetlow #undef	_PATH_MOUNT
124884c25d1SGordon Tetlow #define	_PATH_MOUNT	"/rescue/mount"
125884c25d1SGordon Tetlow #undef	_PATH_NEWFS
126884c25d1SGordon Tetlow #define	_PATH_NEWFS	"/rescue/newfs"
127884c25d1SGordon Tetlow #undef	_PATH_RCP
128884c25d1SGordon Tetlow #define	_PATH_RCP	"/rescue/rcp"
129884c25d1SGordon Tetlow #undef	_PATH_REBOOT
130884c25d1SGordon Tetlow #define	_PATH_REBOOT	"/rescue/reboot"
131884c25d1SGordon Tetlow #undef	_PATH_RM
132884c25d1SGordon Tetlow #define	_PATH_RM	"/rescue/rm"
133884c25d1SGordon Tetlow #undef	_PATH_VI
134884c25d1SGordon Tetlow #define	_PATH_VI	"/rescue/vi"
135884c25d1SGordon Tetlow #undef	_PATH_WALL
136884c25d1SGordon Tetlow #define	_PATH_WALL	"/rescue/wall"
137884c25d1SGordon Tetlow #endif /* RESCUE */
138884c25d1SGordon Tetlow 
13959deaec5SRodney W. Grimes #endif /* !_PATHS_H_ */
140