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. 13f2556687SWarner Losh * 3. Neither the name of the University nor the names of its contributors 1459deaec5SRodney W. Grimes * may be used to endorse or promote products derived from this software 1559deaec5SRodney W. Grimes * without specific prior written permission. 1659deaec5SRodney W. Grimes * 1759deaec5SRodney W. Grimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1859deaec5SRodney W. Grimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1959deaec5SRodney W. Grimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2059deaec5SRodney W. Grimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2159deaec5SRodney W. Grimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2259deaec5SRodney W. Grimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2359deaec5SRodney W. Grimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2459deaec5SRodney W. Grimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2559deaec5SRodney W. Grimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2659deaec5SRodney W. Grimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2759deaec5SRodney W. Grimes * SUCH DAMAGE. 2859deaec5SRodney W. Grimes * 2959deaec5SRodney W. Grimes * @(#)paths.h 8.1 (Berkeley) 6/2/93 301a37aa56SDavid E. O'Brien * $FreeBSD$ 3159deaec5SRodney W. Grimes */ 3259deaec5SRodney W. Grimes 3359deaec5SRodney W. Grimes #ifndef _PATHS_H_ 3459deaec5SRodney W. Grimes #define _PATHS_H_ 3559deaec5SRodney W. Grimes 364be4929cSGarrett Wollman #include <sys/cdefs.h> 374be4929cSGarrett Wollman 3859deaec5SRodney W. Grimes /* Default search path. */ 3943d53dbaSJilles Tjoelker #define _PATH_DEFPATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" 4059deaec5SRodney W. Grimes /* All standard utilities path. */ 418ca5ff35SJilles Tjoelker #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 422fb69002SDavid E. O'Brien /* Locate system binaries. */ 43927c7d40SDavid E. O'Brien #define _PATH_SYSPATH "/sbin:/usr/sbin" 4459deaec5SRodney W. Grimes 4559deaec5SRodney W. Grimes #define _PATH_BSHELL "/bin/sh" 460caeee4eSRobert Watson #define _PATH_CAPABILITY "/etc/capability" 470caeee4eSRobert Watson #define _PATH_CAPABILITY_DB "/etc/capability.db" 4859deaec5SRodney W. Grimes #define _PATH_CONSOLE "/dev/console" 4975f3111cSDag-Erling Smørgrav #define _PATH_CP "/bin/cp" 5059deaec5SRodney W. Grimes #define _PATH_CSHELL "/bin/csh" 51ad30f8e7SGabor Kovesdan #define _PATH_CSMAPPER "/usr/share/i18n/csmapper" 528454c72cSDavid E. O'Brien #define _PATH_DEFTAPE "/dev/sa0" 5322e3858cSSean Bruno #define _PATH_DEVGPIOC "/dev/gpioc" 5459deaec5SRodney W. Grimes #define _PATH_DEVNULL "/dev/null" 551a37aa56SDavid E. O'Brien #define _PATH_DEVZERO "/dev/zero" 5659deaec5SRodney W. Grimes #define _PATH_DRUM "/dev/drum" 57ad30f8e7SGabor Kovesdan #define _PATH_ESDB "/usr/share/i18n/esdb" 5875f3111cSDag-Erling Smørgrav #define _PATH_ETC "/etc" 591ed9c427SWarner Losh #define _PATH_FIRMWARE "/usr/share/firmware" 6066a9a515SPaul Traina #define _PATH_FTPUSERS "/etc/ftpusers" 6141b23fe0SHidetoshi Shimokawa #define _PATH_FWMEM "/dev/fwmem" 62268a55bcSHiroki Sato #define _PATH_GBDE "/sbin/gbde" 63268a55bcSHiroki Sato #define _PATH_GELI "/sbin/geli" 648d5c19ffSDavid E. O'Brien #define _PATH_HALT "/sbin/halt" 65ad30f8e7SGabor Kovesdan #ifdef COMPAT_32BIT 66ad30f8e7SGabor Kovesdan #define _PATH_I18NMODULE "/usr/lib32/i18n" 67ad30f8e7SGabor Kovesdan #else 68ad30f8e7SGabor Kovesdan #define _PATH_I18NMODULE "/usr/lib/i18n" 69ad30f8e7SGabor Kovesdan #endif 708d5c19ffSDavid E. O'Brien #define _PATH_IFCONFIG "/sbin/ifconfig" 7159deaec5SRodney W. Grimes #define _PATH_KMEM "/dev/kmem" 7229ade362SMatthew N. Dodd #define _PATH_LIBMAP_CONF "/etc/libmap.conf" 7373e18024SAlexey Zelkin #define _PATH_LOCALE "/usr/share/locale" 7475f3111cSDag-Erling Smørgrav #define _PATH_LOGIN "/usr/bin/login" 7559deaec5SRodney W. Grimes #define _PATH_MAILDIR "/var/mail" 7659deaec5SRodney W. Grimes #define _PATH_MAN "/usr/share/man" 771386defaSGordon Tetlow #define _PATH_MDCONFIG "/sbin/mdconfig" 7859deaec5SRodney W. Grimes #define _PATH_MEM "/dev/mem" 796e3aaeb2SIan Dowse #define _PATH_MKSNAP_FFS "/sbin/mksnap_ffs" 801386defaSGordon Tetlow #define _PATH_MOUNT "/sbin/mount" 811386defaSGordon Tetlow #define _PATH_NEWFS "/sbin/newfs" 8216ceea1bSSatoshi Asami #define _PATH_NOLOGIN "/var/run/nologin" 836f8d27fcSMaxim Sobolev #define _PATH_RCP "/bin/rcp" 848d5c19ffSDavid E. O'Brien #define _PATH_REBOOT "/sbin/reboot" 8575f3111cSDag-Erling Smørgrav #define _PATH_RLOGIN "/usr/bin/rlogin" 868d5c19ffSDavid E. O'Brien #define _PATH_RM "/bin/rm" 8775f3111cSDag-Erling Smørgrav #define _PATH_RSH "/usr/bin/rsh" 8859deaec5SRodney W. Grimes #define _PATH_SENDMAIL "/usr/sbin/sendmail" 8959deaec5SRodney W. Grimes #define _PATH_SHELLS "/etc/shells" 9059deaec5SRodney W. Grimes #define _PATH_TTY "/dev/tty" 914be4929cSGarrett Wollman #define _PATH_UNIX "don't use _PATH_UNIX" 92bdd39eb8SEdward Tomasz Napierala #define _PATH_UFSSUSPEND "/dev/ufssuspend" 9359deaec5SRodney W. Grimes #define _PATH_VI "/usr/bin/vi" 945fab96cfSJuli Mallett #define _PATH_WALL "/usr/bin/wall" 9559deaec5SRodney W. Grimes 9659deaec5SRodney W. Grimes /* Provide trailing slash, since mostly used for building pathnames. */ 9759deaec5SRodney W. Grimes #define _PATH_DEV "/dev/" 9859deaec5SRodney W. Grimes #define _PATH_TMP "/tmp/" 9959deaec5SRodney W. Grimes #define _PATH_VARDB "/var/db/" 10059deaec5SRodney W. Grimes #define _PATH_VARRUN "/var/run/" 10159deaec5SRodney W. Grimes #define _PATH_VARTMP "/var/tmp/" 1027502cc40SAndriy Gapon #define _PATH_DEVVMM "/dev/vmm/" 103c70242aeSBill Paul #define _PATH_YP "/var/yp/" 104b8643b5aSAndrey A. Chernov #define _PATH_UUCPLOCK "/var/spool/lock/" 10559deaec5SRodney W. Grimes 1064be4929cSGarrett Wollman /* How to get the correct name of the kernel. */ 1074be4929cSGarrett Wollman __BEGIN_DECLS 108bb28f3c2SWarner Losh const char *getbootfile(void); 1094be4929cSGarrett Wollman __END_DECLS 1104be4929cSGarrett Wollman 111884c25d1SGordon Tetlow #ifdef RESCUE 112884c25d1SGordon Tetlow #undef _PATH_DEFPATH 11343d53dbaSJilles Tjoelker #define _PATH_DEFPATH "/rescue:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" 114884c25d1SGordon Tetlow #undef _PATH_STDPATH 115884c25d1SGordon Tetlow #define _PATH_STDPATH "/rescue:/usr/bin:/bin:/usr/sbin:/sbin" 116884c25d1SGordon Tetlow #undef _PATH_SYSPATH 117884c25d1SGordon Tetlow #define _PATH_SYSPATH "/rescue:/sbin:/usr/sbin" 118884c25d1SGordon Tetlow #undef _PATH_BSHELL 119884c25d1SGordon Tetlow #define _PATH_BSHELL "/rescue/sh" 120884c25d1SGordon Tetlow #undef _PATH_CP 121884c25d1SGordon Tetlow #define _PATH_CP "/rescue/cp" 122884c25d1SGordon Tetlow #undef _PATH_CSHELL 123884c25d1SGordon Tetlow #define _PATH_CSHELL "/rescue/csh" 124884c25d1SGordon Tetlow #undef _PATH_HALT 125884c25d1SGordon Tetlow #define _PATH_HALT "/rescue/halt" 126884c25d1SGordon Tetlow #undef _PATH_IFCONFIG 127884c25d1SGordon Tetlow #define _PATH_IFCONFIG "/rescue/ifconfig" 128884c25d1SGordon Tetlow #undef _PATH_MDCONFIG 129884c25d1SGordon Tetlow #define _PATH_MDCONFIG "/rescue/mdconfig" 130884c25d1SGordon Tetlow #undef _PATH_MOUNT 131884c25d1SGordon Tetlow #define _PATH_MOUNT "/rescue/mount" 132884c25d1SGordon Tetlow #undef _PATH_NEWFS 133884c25d1SGordon Tetlow #define _PATH_NEWFS "/rescue/newfs" 134884c25d1SGordon Tetlow #undef _PATH_RCP 135884c25d1SGordon Tetlow #define _PATH_RCP "/rescue/rcp" 136884c25d1SGordon Tetlow #undef _PATH_REBOOT 137884c25d1SGordon Tetlow #define _PATH_REBOOT "/rescue/reboot" 138884c25d1SGordon Tetlow #undef _PATH_RM 139884c25d1SGordon Tetlow #define _PATH_RM "/rescue/rm" 140884c25d1SGordon Tetlow #undef _PATH_VI 141884c25d1SGordon Tetlow #define _PATH_VI "/rescue/vi" 142884c25d1SGordon Tetlow #undef _PATH_WALL 143884c25d1SGordon Tetlow #define _PATH_WALL "/rescue/wall" 144884c25d1SGordon Tetlow #endif /* RESCUE */ 145884c25d1SGordon Tetlow 14659deaec5SRodney W. Grimes #endif /* !_PATHS_H_ */ 147