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:" 4759deaec5SRodney W. Grimes 48eecd4637SJordan K. Hubbard #define _PATH_AUTHCONF "/etc/auth.conf" 4959deaec5SRodney W. Grimes #define _PATH_BSHELL "/bin/sh" 500caeee4eSRobert Watson #define _PATH_CAPABILITY "/etc/capability" 510caeee4eSRobert Watson #define _PATH_CAPABILITY_DB "/etc/capability.db" 5259deaec5SRodney W. Grimes #define _PATH_CONSOLE "/dev/console" 5375f3111cSDag-Erling Smørgrav #define _PATH_CP "/bin/cp" 5459deaec5SRodney W. Grimes #define _PATH_CSHELL "/bin/csh" 558454c72cSDavid E. O'Brien #define _PATH_DEFTAPE "/dev/sa0" 5659deaec5SRodney W. Grimes #define _PATH_DEVDB "/var/run/dev.db" 5759deaec5SRodney W. Grimes #define _PATH_DEVNULL "/dev/null" 581a37aa56SDavid E. O'Brien #define _PATH_DEVZERO "/dev/zero" 5959deaec5SRodney W. Grimes #define _PATH_DRUM "/dev/drum" 6075f3111cSDag-Erling Smørgrav #define _PATH_ETC "/etc" 6166a9a515SPaul Traina #define _PATH_FTPUSERS "/etc/ftpusers" 628d5c19ffSDavid E. O'Brien #define _PATH_HALT "/sbin/halt" 638d5c19ffSDavid E. O'Brien #define _PATH_IFCONFIG "/sbin/ifconfig" 6459deaec5SRodney W. Grimes #define _PATH_KMEM "/dev/kmem" 6529ade362SMatthew N. Dodd #define _PATH_LIBMAP_CONF "/etc/libmap.conf" 6675f3111cSDag-Erling Smørgrav #define _PATH_LOGIN "/usr/bin/login" 6759deaec5SRodney W. Grimes #define _PATH_MAILDIR "/var/mail" 6859deaec5SRodney W. Grimes #define _PATH_MAN "/usr/share/man" 6959deaec5SRodney W. Grimes #define _PATH_MEM "/dev/mem" 7016ceea1bSSatoshi Asami #define _PATH_NOLOGIN "/var/run/nologin" 716f8d27fcSMaxim Sobolev #define _PATH_RCP "/bin/rcp" 728d5c19ffSDavid E. O'Brien #define _PATH_REBOOT "/sbin/reboot" 7375f3111cSDag-Erling Smørgrav #define _PATH_RLOGIN "/usr/bin/rlogin" 748d5c19ffSDavid E. O'Brien #define _PATH_RM "/bin/rm" 7575f3111cSDag-Erling Smørgrav #define _PATH_RSH "/usr/bin/rsh" 7659deaec5SRodney W. Grimes #define _PATH_SENDMAIL "/usr/sbin/sendmail" 7759deaec5SRodney W. Grimes #define _PATH_SHELLS "/etc/shells" 7859deaec5SRodney W. Grimes #define _PATH_TTY "/dev/tty" 794be4929cSGarrett Wollman #define _PATH_UNIX "don't use _PATH_UNIX" 8059deaec5SRodney W. Grimes #define _PATH_VI "/usr/bin/vi" 815fab96cfSJuli Mallett #define _PATH_WALL "/usr/bin/wall" 8259deaec5SRodney W. Grimes 8359deaec5SRodney W. Grimes /* Provide trailing slash, since mostly used for building pathnames. */ 8459deaec5SRodney W. Grimes #define _PATH_DEV "/dev/" 8559deaec5SRodney W. Grimes #define _PATH_TMP "/tmp/" 8659deaec5SRodney W. Grimes #define _PATH_VARDB "/var/db/" 8759deaec5SRodney W. Grimes #define _PATH_VARRUN "/var/run/" 8859deaec5SRodney W. Grimes #define _PATH_VARTMP "/var/tmp/" 89c70242aeSBill Paul #define _PATH_YP "/var/yp/" 90b8643b5aSAndrey A. Chernov #define _PATH_UUCPLOCK "/var/spool/lock/" 9159deaec5SRodney W. Grimes 924be4929cSGarrett Wollman /* How to get the correct name of the kernel. */ 934be4929cSGarrett Wollman __BEGIN_DECLS 94bb28f3c2SWarner Losh const char *getbootfile(void); 954be4929cSGarrett Wollman __END_DECLS 964be4929cSGarrett Wollman 9759deaec5SRodney W. Grimes #endif /* !_PATHS_H_ */ 98