paths.h revision 170527
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. 131539Srgrimes * 3. All advertising materials mentioning features or use of this software 141539Srgrimes * must display the following acknowledgement: 151539Srgrimes * This product includes software developed by the University of 161539Srgrimes * California, Berkeley and its contributors. 171539Srgrimes * 4. Neither the name of the University nor the names of its contributors 181539Srgrimes * may be used to endorse or promote products derived from this software 191539Srgrimes * without specific prior written permission. 201539Srgrimes * 211539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241539Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311539Srgrimes * SUCH DAMAGE. 321539Srgrimes * 331539Srgrimes * @(#)paths.h 8.1 (Berkeley) 6/2/93 3469793Sobrien * $FreeBSD: head/include/paths.h 170527 2007-06-11 02:21:18Z simokawa $ 351539Srgrimes */ 361539Srgrimes 371539Srgrimes#ifndef _PATHS_H_ 381539Srgrimes#define _PATHS_H_ 391539Srgrimes 403041Swollman#include <sys/cdefs.h> 413041Swollman 421539Srgrimes/* Default search path. */ 431539Srgrimes#define _PATH_DEFPATH "/usr/bin:/bin" 441539Srgrimes/* All standard utilities path. */ 451539Srgrimes#define _PATH_STDPATH \ 461570Srgrimes "/usr/bin:/bin:/usr/sbin:/sbin:" 47117031Sgordon/* Locate system binaries */ 48117031Sgordon#define _PATH_SYSPATH \ 49117031Sgordon "/sbin:/usr/sbin" 501539Srgrimes 5187136Srwatson#define _PATH_AUTHCONF "/etc/auth.conf" 521539Srgrimes#define _PATH_BSHELL "/bin/sh" 5387135Srwatson#define _PATH_CAPABILITY "/etc/capability" 5487135Srwatson#define _PATH_CAPABILITY_DB "/etc/capability.db" 551539Srgrimes#define _PATH_CONSOLE "/dev/console" 5696194Sdes#define _PATH_CP "/bin/cp" 571539Srgrimes#define _PATH_CSHELL "/bin/csh" 5873986Sobrien#define _PATH_DEFTAPE "/dev/sa0" 591539Srgrimes#define _PATH_DEVNULL "/dev/null" 6069793Sobrien#define _PATH_DEVZERO "/dev/zero" 611539Srgrimes#define _PATH_DRUM "/dev/drum" 6296194Sdes#define _PATH_ETC "/etc" 633189Spst#define _PATH_FTPUSERS "/etc/ftpusers" 64170527Ssimokawa#define _PATH_FWMEM "/dev/fwmem" 65114763Sobrien#define _PATH_HALT "/sbin/halt" 66114763Sobrien#define _PATH_IFCONFIG "/sbin/ifconfig" 671539Srgrimes#define _PATH_KMEM "/dev/kmem" 68113229Smdodd#define _PATH_LIBMAP_CONF "/etc/libmap.conf" 69116844Sphantom#define _PATH_LOCALE "/usr/share/locale" 7096194Sdes#define _PATH_LOGIN "/usr/bin/login" 711539Srgrimes#define _PATH_MAILDIR "/var/mail" 721539Srgrimes#define _PATH_MAN "/usr/share/man" 73117033Sgordon#define _PATH_MDCONFIG "/sbin/mdconfig" 741539Srgrimes#define _PATH_MEM "/dev/mem" 75124132Siedowse#define _PATH_MKSNAP_FFS "/sbin/mksnap_ffs" 76117033Sgordon#define _PATH_MOUNT "/sbin/mount" 77117033Sgordon#define _PATH_NEWFS "/sbin/newfs" 7842515Sasami#define _PATH_NOLOGIN "/var/run/nologin" 7999958Ssobomax#define _PATH_RCP "/bin/rcp" 80114763Sobrien#define _PATH_REBOOT "/sbin/reboot" 8196194Sdes#define _PATH_RLOGIN "/usr/bin/rlogin" 82114763Sobrien#define _PATH_RM "/bin/rm" 8396194Sdes#define _PATH_RSH "/usr/bin/rsh" 841539Srgrimes#define _PATH_SENDMAIL "/usr/sbin/sendmail" 851539Srgrimes#define _PATH_SHELLS "/etc/shells" 861539Srgrimes#define _PATH_TTY "/dev/tty" 873041Swollman#define _PATH_UNIX "don't use _PATH_UNIX" 881539Srgrimes#define _PATH_VI "/usr/bin/vi" 8996807Sjmallett#define _PATH_WALL "/usr/bin/wall" 901539Srgrimes 911539Srgrimes/* Provide trailing slash, since mostly used for building pathnames. */ 921539Srgrimes#define _PATH_DEV "/dev/" 931539Srgrimes#define _PATH_TMP "/tmp/" 941539Srgrimes#define _PATH_VARDB "/var/db/" 951539Srgrimes#define _PATH_VARRUN "/var/run/" 961539Srgrimes#define _PATH_VARTMP "/var/tmp/" 976083Swpaul#define _PATH_YP "/var/yp/" 9810975Sache#define _PATH_UUCPLOCK "/var/spool/lock/" 991539Srgrimes 1003041Swollman/* How to get the correct name of the kernel. */ 1013041Swollman__BEGIN_DECLS 10293032Simpconst char *getbootfile(void); 1033041Swollman__END_DECLS 1043041Swollman 105117035Sgordon#ifdef RESCUE 106117035Sgordon#undef _PATH_DEFPATH 107117035Sgordon#define _PATH_DEFPATH "/rescue:/usr/bin:/bin" 108117035Sgordon#undef _PATH_STDPATH 109117035Sgordon#define _PATH_STDPATH "/rescue:/usr/bin:/bin:/usr/sbin:/sbin" 110117035Sgordon#undef _PATH_SYSPATH 111117035Sgordon#define _PATH_SYSPATH "/rescue:/sbin:/usr/sbin" 112117035Sgordon#undef _PATH_BSHELL 113117035Sgordon#define _PATH_BSHELL "/rescue/sh" 114117035Sgordon#undef _PATH_CP 115117035Sgordon#define _PATH_CP "/rescue/cp" 116117035Sgordon#undef _PATH_CSHELL 117117035Sgordon#define _PATH_CSHELL "/rescue/csh" 118117035Sgordon#undef _PATH_HALT 119117035Sgordon#define _PATH_HALT "/rescue/halt" 120117035Sgordon#undef _PATH_IFCONFIG 121117035Sgordon#define _PATH_IFCONFIG "/rescue/ifconfig" 122117035Sgordon#undef _PATH_MDCONFIG 123117035Sgordon#define _PATH_MDCONFIG "/rescue/mdconfig" 124117035Sgordon#undef _PATH_MOUNT 125117035Sgordon#define _PATH_MOUNT "/rescue/mount" 126117035Sgordon#undef _PATH_NEWFS 127117035Sgordon#define _PATH_NEWFS "/rescue/newfs" 128117035Sgordon#undef _PATH_RCP 129117035Sgordon#define _PATH_RCP "/rescue/rcp" 130117035Sgordon#undef _PATH_REBOOT 131117035Sgordon#define _PATH_REBOOT "/rescue/reboot" 132117035Sgordon#undef _PATH_RM 133117035Sgordon#define _PATH_RM "/rescue/rm" 134117035Sgordon#undef _PATH_VI 135117035Sgordon#define _PATH_VI "/rescue/vi" 136117035Sgordon#undef _PATH_WALL 137117035Sgordon#define _PATH_WALL "/rescue/wall" 138117035Sgordon#endif /* RESCUE */ 139117035Sgordon 1401539Srgrimes#endif /* !_PATHS_H_ */ 141