12321c474SPedro F. Giffuni /*- 22321c474SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 32321c474SPedro F. Giffuni * 459deaec5SRodney W. Grimes * Copyright (c) 1989, 1993 559deaec5SRodney W. Grimes * The Regents of the University of California. All rights reserved. 659deaec5SRodney W. Grimes * 759deaec5SRodney W. Grimes * Redistribution and use in source and binary forms, with or without 859deaec5SRodney W. Grimes * modification, are permitted provided that the following conditions 959deaec5SRodney W. Grimes * are met: 1059deaec5SRodney W. Grimes * 1. Redistributions of source code must retain the above copyright 1159deaec5SRodney W. Grimes * notice, this list of conditions and the following disclaimer. 1259deaec5SRodney W. Grimes * 2. Redistributions in binary form must reproduce the above copyright 1359deaec5SRodney W. Grimes * notice, this list of conditions and the following disclaimer in the 1459deaec5SRodney W. Grimes * documentation and/or other materials provided with the distribution. 15f2556687SWarner Losh * 3. Neither the name of the University nor the names of its contributors 1659deaec5SRodney W. Grimes * may be used to endorse or promote products derived from this software 1759deaec5SRodney W. Grimes * without specific prior written permission. 1859deaec5SRodney W. Grimes * 1959deaec5SRodney W. Grimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2059deaec5SRodney W. Grimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2159deaec5SRodney W. Grimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2259deaec5SRodney W. Grimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2359deaec5SRodney W. Grimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2459deaec5SRodney W. Grimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2559deaec5SRodney W. Grimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2659deaec5SRodney W. Grimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2759deaec5SRodney W. Grimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2859deaec5SRodney W. Grimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2959deaec5SRodney W. Grimes * SUCH DAMAGE. 3059deaec5SRodney W. Grimes */ 3159deaec5SRodney W. Grimes 3259deaec5SRodney W. Grimes #ifndef _PATHS_H_ 3359deaec5SRodney W. Grimes #define _PATHS_H_ 3459deaec5SRodney W. Grimes 354be4929cSGarrett Wollman #include <sys/cdefs.h> 364be4929cSGarrett Wollman 3734b38e12SStefan Eßer #define _PATH_LOCALBASE "/usr/local" 3834b38e12SStefan Eßer 3959deaec5SRodney W. Grimes /* Default search path. */ 4034b38e12SStefan Eßer #define _PATH_DEFPATH "/sbin:/bin:/usr/sbin:/usr/bin:" \ 4134b38e12SStefan Eßer _PATH_LOCALBASE "/sbin:" _PATH_LOCALBASE "/bin" 4259deaec5SRodney W. Grimes /* All standard utilities path. */ 438ca5ff35SJilles Tjoelker #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 442fb69002SDavid E. O'Brien /* Locate system binaries. */ 45927c7d40SDavid E. O'Brien #define _PATH_SYSPATH "/sbin:/usr/sbin" 4659deaec5SRodney W. Grimes 4759deaec5SRodney W. Grimes #define _PATH_BSHELL "/bin/sh" 480caeee4eSRobert Watson #define _PATH_CAPABILITY "/etc/capability" 490caeee4eSRobert Watson #define _PATH_CAPABILITY_DB "/etc/capability.db" 5059deaec5SRodney W. Grimes #define _PATH_CONSOLE "/dev/console" 5175f3111cSDag-Erling Smørgrav #define _PATH_CP "/bin/cp" 5259deaec5SRodney W. Grimes #define _PATH_CSHELL "/bin/csh" 53ad30f8e7SGabor Kovesdan #define _PATH_CSMAPPER "/usr/share/i18n/csmapper" 548454c72cSDavid E. O'Brien #define _PATH_DEFTAPE "/dev/sa0" 5522e3858cSSean Bruno #define _PATH_DEVGPIOC "/dev/gpioc" 5659deaec5SRodney W. Grimes #define _PATH_DEVNULL "/dev/null" 571a37aa56SDavid E. O'Brien #define _PATH_DEVZERO "/dev/zero" 5859deaec5SRodney W. Grimes #define _PATH_DRUM "/dev/drum" 59ad30f8e7SGabor Kovesdan #define _PATH_ESDB "/usr/share/i18n/esdb" 6075f3111cSDag-Erling Smørgrav #define _PATH_ETC "/etc" 611ed9c427SWarner Losh #define _PATH_FIRMWARE "/usr/share/firmware" 6266a9a515SPaul Traina #define _PATH_FTPUSERS "/etc/ftpusers" 6341b23fe0SHidetoshi Shimokawa #define _PATH_FWMEM "/dev/fwmem" 64268a55bcSHiroki Sato #define _PATH_GELI "/sbin/geli" 658d5c19ffSDavid E. O'Brien #define _PATH_HALT "/sbin/halt" 66d3748fc0SJessica Clarke #ifdef COMPAT_libcompat 67d3748fc0SJessica Clarke #define _PATH_I18NMODULE "/usr/lib" COMPAT_libcompat "/i18n" 68ad30f8e7SGabor Kovesdan #else 69ad30f8e7SGabor Kovesdan #define _PATH_I18NMODULE "/usr/lib/i18n" 70ad30f8e7SGabor Kovesdan #endif 718d5c19ffSDavid E. O'Brien #define _PATH_IFCONFIG "/sbin/ifconfig" 7259deaec5SRodney W. Grimes #define _PATH_KMEM "/dev/kmem" 7329ade362SMatthew N. Dodd #define _PATH_LIBMAP_CONF "/etc/libmap.conf" 7473e18024SAlexey Zelkin #define _PATH_LOCALE "/usr/share/locale" 7575f3111cSDag-Erling Smørgrav #define _PATH_LOGIN "/usr/bin/login" 7659deaec5SRodney W. Grimes #define _PATH_MAILDIR "/var/mail" 7759deaec5SRodney W. Grimes #define _PATH_MAN "/usr/share/man" 781386defaSGordon Tetlow #define _PATH_MDCONFIG "/sbin/mdconfig" 7959deaec5SRodney W. Grimes #define _PATH_MEM "/dev/mem" 806e3aaeb2SIan Dowse #define _PATH_MKSNAP_FFS "/sbin/mksnap_ffs" 811386defaSGordon Tetlow #define _PATH_MOUNT "/sbin/mount" 821386defaSGordon Tetlow #define _PATH_NEWFS "/sbin/newfs" 8316ceea1bSSatoshi Asami #define _PATH_NOLOGIN "/var/run/nologin" 846f8d27fcSMaxim Sobolev #define _PATH_RCP "/bin/rcp" 858d5c19ffSDavid E. O'Brien #define _PATH_REBOOT "/sbin/reboot" 8675f3111cSDag-Erling Smørgrav #define _PATH_RLOGIN "/usr/bin/rlogin" 878d5c19ffSDavid E. O'Brien #define _PATH_RM "/bin/rm" 8875f3111cSDag-Erling Smørgrav #define _PATH_RSH "/usr/bin/rsh" 8959deaec5SRodney W. Grimes #define _PATH_SENDMAIL "/usr/sbin/sendmail" 9059deaec5SRodney W. Grimes #define _PATH_SHELLS "/etc/shells" 9159deaec5SRodney W. Grimes #define _PATH_TTY "/dev/tty" 924be4929cSGarrett Wollman #define _PATH_UNIX "don't use _PATH_UNIX" 93bdd39eb8SEdward Tomasz Napierala #define _PATH_UFSSUSPEND "/dev/ufssuspend" 9459deaec5SRodney W. Grimes #define _PATH_VI "/usr/bin/vi" 955fab96cfSJuli Mallett #define _PATH_WALL "/usr/bin/wall" 9659deaec5SRodney W. Grimes 9759deaec5SRodney W. Grimes /* Provide trailing slash, since mostly used for building pathnames. */ 9859deaec5SRodney W. Grimes #define _PATH_DEV "/dev/" 9959deaec5SRodney W. Grimes #define _PATH_TMP "/tmp/" 10059deaec5SRodney W. Grimes #define _PATH_VARDB "/var/db/" 10159deaec5SRodney W. Grimes #define _PATH_VARRUN "/var/run/" 10259deaec5SRodney W. Grimes #define _PATH_VARTMP "/var/tmp/" 1037502cc40SAndriy Gapon #define _PATH_DEVVMM "/dev/vmm/" 104c70242aeSBill Paul #define _PATH_YP "/var/yp/" 105b8643b5aSAndrey A. Chernov #define _PATH_UUCPLOCK "/var/spool/lock/" 10659deaec5SRodney W. Grimes 1074be4929cSGarrett Wollman /* How to get the correct name of the kernel. */ 1084be4929cSGarrett Wollman __BEGIN_DECLS 109bb28f3c2SWarner Losh const char *getbootfile(void); 1104be4929cSGarrett Wollman __END_DECLS 1114be4929cSGarrett Wollman 112884c25d1SGordon Tetlow #ifdef RESCUE 113884c25d1SGordon Tetlow #undef _PATH_DEFPATH 11443d53dbaSJilles Tjoelker #define _PATH_DEFPATH "/rescue:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" 115884c25d1SGordon Tetlow #undef _PATH_STDPATH 116884c25d1SGordon Tetlow #define _PATH_STDPATH "/rescue:/usr/bin:/bin:/usr/sbin:/sbin" 117884c25d1SGordon Tetlow #undef _PATH_SYSPATH 118884c25d1SGordon Tetlow #define _PATH_SYSPATH "/rescue:/sbin:/usr/sbin" 119884c25d1SGordon Tetlow #undef _PATH_BSHELL 120884c25d1SGordon Tetlow #define _PATH_BSHELL "/rescue/sh" 121884c25d1SGordon Tetlow #undef _PATH_CP 122884c25d1SGordon Tetlow #define _PATH_CP "/rescue/cp" 123884c25d1SGordon Tetlow #undef _PATH_CSHELL 124884c25d1SGordon Tetlow #define _PATH_CSHELL "/rescue/csh" 125884c25d1SGordon Tetlow #undef _PATH_HALT 126884c25d1SGordon Tetlow #define _PATH_HALT "/rescue/halt" 127884c25d1SGordon Tetlow #undef _PATH_IFCONFIG 128884c25d1SGordon Tetlow #define _PATH_IFCONFIG "/rescue/ifconfig" 129884c25d1SGordon Tetlow #undef _PATH_MDCONFIG 130884c25d1SGordon Tetlow #define _PATH_MDCONFIG "/rescue/mdconfig" 131884c25d1SGordon Tetlow #undef _PATH_MOUNT 132884c25d1SGordon Tetlow #define _PATH_MOUNT "/rescue/mount" 133884c25d1SGordon Tetlow #undef _PATH_NEWFS 134884c25d1SGordon Tetlow #define _PATH_NEWFS "/rescue/newfs" 135884c25d1SGordon Tetlow #undef _PATH_RCP 136884c25d1SGordon Tetlow #define _PATH_RCP "/rescue/rcp" 137884c25d1SGordon Tetlow #undef _PATH_REBOOT 138884c25d1SGordon Tetlow #define _PATH_REBOOT "/rescue/reboot" 139884c25d1SGordon Tetlow #undef _PATH_RM 140884c25d1SGordon Tetlow #define _PATH_RM "/rescue/rm" 141884c25d1SGordon Tetlow #undef _PATH_VI 142884c25d1SGordon Tetlow #define _PATH_VI "/rescue/vi" 143884c25d1SGordon Tetlow #undef _PATH_WALL 144884c25d1SGordon Tetlow #define _PATH_WALL "/rescue/wall" 145884c25d1SGordon Tetlow #endif /* RESCUE */ 146884c25d1SGordon Tetlow 14759deaec5SRodney W. Grimes #endif /* !_PATHS_H_ */ 148