paths.h revision 252310
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: head/include/paths.h 252310 2013-06-27 18:28:45Z hrs $ 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" 531539Srgrimes#define _PATH_DEVNULL "/dev/null" 5469793Sobrien#define _PATH_DEVZERO "/dev/zero" 551539Srgrimes#define _PATH_DRUM "/dev/drum" 56219019Sgabor#define _PATH_ESDB "/usr/share/i18n/esdb" 5796194Sdes#define _PATH_ETC "/etc" 583189Spst#define _PATH_FTPUSERS "/etc/ftpusers" 59170527Ssimokawa#define _PATH_FWMEM "/dev/fwmem" 60252310Shrs#define _PATH_GBDE "/sbin/gbde" 61252310Shrs#define _PATH_GELI "/sbin/geli" 62114763Sobrien#define _PATH_HALT "/sbin/halt" 63219019Sgabor#ifdef COMPAT_32BIT 64219019Sgabor#define _PATH_I18NMODULE "/usr/lib32/i18n" 65219019Sgabor#else 66219019Sgabor#define _PATH_I18NMODULE "/usr/lib/i18n" 67219019Sgabor#endif 68114763Sobrien#define _PATH_IFCONFIG "/sbin/ifconfig" 691539Srgrimes#define _PATH_KMEM "/dev/kmem" 70113229Smdodd#define _PATH_LIBMAP_CONF "/etc/libmap.conf" 71116844Sphantom#define _PATH_LOCALE "/usr/share/locale" 7296194Sdes#define _PATH_LOGIN "/usr/bin/login" 731539Srgrimes#define _PATH_MAILDIR "/var/mail" 741539Srgrimes#define _PATH_MAN "/usr/share/man" 75117033Sgordon#define _PATH_MDCONFIG "/sbin/mdconfig" 761539Srgrimes#define _PATH_MEM "/dev/mem" 77124132Siedowse#define _PATH_MKSNAP_FFS "/sbin/mksnap_ffs" 78117033Sgordon#define _PATH_MOUNT "/sbin/mount" 79117033Sgordon#define _PATH_NEWFS "/sbin/newfs" 8042515Sasami#define _PATH_NOLOGIN "/var/run/nologin" 8199958Ssobomax#define _PATH_RCP "/bin/rcp" 82114763Sobrien#define _PATH_REBOOT "/sbin/reboot" 8396194Sdes#define _PATH_RLOGIN "/usr/bin/rlogin" 84114763Sobrien#define _PATH_RM "/bin/rm" 8596194Sdes#define _PATH_RSH "/usr/bin/rsh" 861539Srgrimes#define _PATH_SENDMAIL "/usr/sbin/sendmail" 871539Srgrimes#define _PATH_SHELLS "/etc/shells" 881539Srgrimes#define _PATH_TTY "/dev/tty" 893041Swollman#define _PATH_UNIX "don't use _PATH_UNIX" 90243247Strasz#define _PATH_UFSSUSPEND "/dev/ufssuspend" 911539Srgrimes#define _PATH_VI "/usr/bin/vi" 9296807Sjmallett#define _PATH_WALL "/usr/bin/wall" 931539Srgrimes 941539Srgrimes/* Provide trailing slash, since mostly used for building pathnames. */ 951539Srgrimes#define _PATH_DEV "/dev/" 961539Srgrimes#define _PATH_TMP "/tmp/" 971539Srgrimes#define _PATH_VARDB "/var/db/" 981539Srgrimes#define _PATH_VARRUN "/var/run/" 991539Srgrimes#define _PATH_VARTMP "/var/tmp/" 1006083Swpaul#define _PATH_YP "/var/yp/" 10110975Sache#define _PATH_UUCPLOCK "/var/spool/lock/" 1021539Srgrimes 1033041Swollman/* How to get the correct name of the kernel. */ 1043041Swollman__BEGIN_DECLS 10593032Simpconst char *getbootfile(void); 1063041Swollman__END_DECLS 1073041Swollman 108117035Sgordon#ifdef RESCUE 109117035Sgordon#undef _PATH_DEFPATH 110117035Sgordon#define _PATH_DEFPATH "/rescue:/usr/bin:/bin" 111117035Sgordon#undef _PATH_STDPATH 112117035Sgordon#define _PATH_STDPATH "/rescue:/usr/bin:/bin:/usr/sbin:/sbin" 113117035Sgordon#undef _PATH_SYSPATH 114117035Sgordon#define _PATH_SYSPATH "/rescue:/sbin:/usr/sbin" 115117035Sgordon#undef _PATH_BSHELL 116117035Sgordon#define _PATH_BSHELL "/rescue/sh" 117117035Sgordon#undef _PATH_CP 118117035Sgordon#define _PATH_CP "/rescue/cp" 119117035Sgordon#undef _PATH_CSHELL 120117035Sgordon#define _PATH_CSHELL "/rescue/csh" 121117035Sgordon#undef _PATH_HALT 122117035Sgordon#define _PATH_HALT "/rescue/halt" 123117035Sgordon#undef _PATH_IFCONFIG 124117035Sgordon#define _PATH_IFCONFIG "/rescue/ifconfig" 125117035Sgordon#undef _PATH_MDCONFIG 126117035Sgordon#define _PATH_MDCONFIG "/rescue/mdconfig" 127117035Sgordon#undef _PATH_MOUNT 128117035Sgordon#define _PATH_MOUNT "/rescue/mount" 129117035Sgordon#undef _PATH_NEWFS 130117035Sgordon#define _PATH_NEWFS "/rescue/newfs" 131117035Sgordon#undef _PATH_RCP 132117035Sgordon#define _PATH_RCP "/rescue/rcp" 133117035Sgordon#undef _PATH_REBOOT 134117035Sgordon#define _PATH_REBOOT "/rescue/reboot" 135117035Sgordon#undef _PATH_RM 136117035Sgordon#define _PATH_RM "/rescue/rm" 137117035Sgordon#undef _PATH_VI 138117035Sgordon#define _PATH_VI "/rescue/vi" 139117035Sgordon#undef _PATH_WALL 140117035Sgordon#define _PATH_WALL "/rescue/wall" 141117035Sgordon#endif /* RESCUE */ 142117035Sgordon 1431539Srgrimes#endif /* !_PATHS_H_ */ 144