| 1 | /* paths.h,v 1.2 2004/09/14 22:27:35 bird Exp */
|
|---|
| 2 | /** @file
|
|---|
| 3 | * FreeBSD 5.2
|
|---|
| 4 | * @changed bird: /@unixroot
|
|---|
| 5 | * @changed bird: A few of the /dev/'s.
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | /*
|
|---|
| 9 | * Copyright (c) 1989, 1993
|
|---|
| 10 | * The Regents of the University of California. All rights reserved.
|
|---|
| 11 | *
|
|---|
| 12 | * Redistribution and use in source and binary forms, with or without
|
|---|
| 13 | * modification, are permitted provided that the following conditions
|
|---|
| 14 | * are met:
|
|---|
| 15 | * 1. Redistributions of source code must retain the above copyright
|
|---|
| 16 | * notice, this list of conditions and the following disclaimer.
|
|---|
| 17 | * 2. Redistributions in binary form must reproduce the above copyright
|
|---|
| 18 | * notice, this list of conditions and the following disclaimer in the
|
|---|
| 19 | * documentation and/or other materials provided with the distribution.
|
|---|
| 20 | * 3. All advertising materials mentioning features or use of this software
|
|---|
| 21 | * must display the following acknowledgement:
|
|---|
| 22 | * This product includes software developed by the University of
|
|---|
| 23 | * California, Berkeley and its contributors.
|
|---|
| 24 | * 4. Neither the name of the University nor the names of its contributors
|
|---|
| 25 | * may be used to endorse or promote products derived from this software
|
|---|
| 26 | * without specific prior written permission.
|
|---|
| 27 | *
|
|---|
| 28 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|---|
| 29 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|---|
| 30 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|---|
| 31 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|---|
| 32 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|---|
| 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|---|
| 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|---|
| 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|---|
| 36 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|---|
| 37 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|---|
| 38 | * SUCH DAMAGE.
|
|---|
| 39 | *
|
|---|
| 40 | * @(#)paths.h 8.1 (Berkeley) 6/2/93
|
|---|
| 41 | * $FreeBSD: src/include/paths.h,v 1.25 2004/01/04 17:17:46 iedowse Exp $
|
|---|
| 42 | */
|
|---|
| 43 |
|
|---|
| 44 | #ifndef _PATHS_H_
|
|---|
| 45 | #define _PATHS_H_
|
|---|
| 46 |
|
|---|
| 47 | #include <sys/cdefs.h>
|
|---|
| 48 |
|
|---|
| 49 | /* Default search path. */
|
|---|
| 50 | #define _PATH_DEFPATH "/@unixroot/usr/bin:/@unixroot/bin"
|
|---|
| 51 | /* All standard utilities path. */
|
|---|
| 52 | #define _PATH_STDPATH \
|
|---|
| 53 | "/@unixroot/usr/bin:/@unixroot/bin:/@unixroot/usr/sbin:/@unixroot/sbin:"
|
|---|
| 54 | /* Locate system binaries */
|
|---|
| 55 | #define _PATH_SYSPATH \
|
|---|
| 56 | "/@unixroot/sbin:/@unixroot/usr/sbin"
|
|---|
| 57 |
|
|---|
| 58 | #define _PATH_AUTHCONF "/@unixroot/etc/auth.conf"
|
|---|
| 59 | #define _PATH_BSHELL "/@unixroot/bin/sh"
|
|---|
| 60 | #define _PATH_CAPABILITY "/@unixroot/etc/capability"
|
|---|
| 61 | #define _PATH_CAPABILITY_DB "/@unixroot/etc/capability.db"
|
|---|
| 62 | #define _PATH_CONSOLE "/dev/con"
|
|---|
| 63 | #define _PATH_CP "/@unixroot/bin/cp"
|
|---|
| 64 | #define _PATH_CSHELL "/@unixroot/bin/csh"
|
|---|
| 65 | #define _PATH_DEFTAPE "/@unixroot/dev/sa0"
|
|---|
| 66 | #define _PATH_DEVNULL "/dev/null"
|
|---|
| 67 | #define _PATH_DEVZERO "/@unixroot/dev/zero"
|
|---|
| 68 | #define _PATH_DRUM "/@unixroot/dev/drum"
|
|---|
| 69 | #define _PATH_ETC "/@unixroot/etc"
|
|---|
| 70 | #define _PATH_FTPUSERS "/@unixroot/etc/ftpusers"
|
|---|
| 71 | #define _PATH_HALT "/@unixroot/sbin/halt"
|
|---|
| 72 | #define _PATH_IFCONFIG "/@unixroot/sbin/ifconfig"
|
|---|
| 73 | #define _PATH_KMEM "/@unixroot/dev/kmem"
|
|---|
| 74 | #define _PATH_LIBMAP_CONF "/@unixroot/etc/libmap.conf"
|
|---|
| 75 | #define _PATH_LOCALE "/@unixroot/usr/share/locale"
|
|---|
| 76 | #define _PATH_LOGIN "/@unixroot/usr/bin/login"
|
|---|
| 77 | #define _PATH_MAILDIR "/@unixroot/var/mail"
|
|---|
| 78 | #define _PATH_MAN "/@unixroot/usr/share/man"
|
|---|
| 79 | #define _PATH_MDCONFIG "/@unixroot/sbin/mdconfig"
|
|---|
| 80 | #define _PATH_MEM "/@unixroot/dev/mem"
|
|---|
| 81 | #define _PATH_MKSNAP_FFS "/@unixroot/sbin/mksnap_ffs"
|
|---|
| 82 | #define _PATH_MOUNT "/@unixroot/sbin/mount"
|
|---|
| 83 | #define _PATH_NEWFS "/@unixroot/sbin/newfs"
|
|---|
| 84 | #define _PATH_NOLOGIN "/@unixroot/var/run/nologin"
|
|---|
| 85 | #define _PATH_RCP "/@unixroot/bin/rcp"
|
|---|
| 86 | #define _PATH_REBOOT "/@unixroot/sbin/reboot"
|
|---|
| 87 | #define _PATH_RLOGIN "/@unixroot/usr/bin/rlogin"
|
|---|
| 88 | #define _PATH_RM "/@unixroot/bin/rm"
|
|---|
| 89 | #define _PATH_RSH "/@unixroot/usr/bin/rsh"
|
|---|
| 90 | #define _PATH_SENDMAIL "/@unixroot/usr/sbin/sendmail"
|
|---|
| 91 | #define _PATH_SHELLS "/@unixroot/etc/shells"
|
|---|
| 92 | #define _PATH_TTY "/dev/tty"
|
|---|
| 93 | #define _PATH_UNIX "don't use _PATH_UNIX"
|
|---|
| 94 | #define _PATH_VI "/@unixroot/usr/bin/vi"
|
|---|
| 95 | #define _PATH_WALL "/@unixroot/usr/bin/wall"
|
|---|
| 96 |
|
|---|
| 97 | /* Provide trailing slash, since mostly used for building pathnames. */
|
|---|
| 98 | #define _PATH_DEV "/@unixroot/dev/"
|
|---|
| 99 | #define _PATH_TMP "/@unixroot/tmp/"
|
|---|
| 100 | #define _PATH_VARDB "/@unixroot/var/db/"
|
|---|
| 101 | #define _PATH_VARRUN "/@unixroot/var/run/"
|
|---|
| 102 | #define _PATH_VARTMP "/@unixroot/var/tmp/"
|
|---|
| 103 | #define _PATH_YP "/@unixroot/var/yp/"
|
|---|
| 104 | #define _PATH_UUCPLOCK "/@unixroot/var/spool/lock/"
|
|---|
| 105 |
|
|---|
| 106 | /* How to get the correct name of the kernel. */
|
|---|
| 107 | __BEGIN_DECLS
|
|---|
| 108 | const char *getbootfile(void);
|
|---|
| 109 | __END_DECLS
|
|---|
| 110 |
|
|---|
| 111 | #ifdef RESCUE
|
|---|
| 112 | #undef _PATH_DEFPATH
|
|---|
| 113 | #define _PATH_DEFPATH "/@unixroot/rescue:/@unixroot/usr/bin:/@unixroot/bin"
|
|---|
| 114 | #undef _PATH_STDPATH
|
|---|
| 115 | #define _PATH_STDPATH "/@unixroot/rescue:/@unixroot/usr/bin:/@unixroot/bin:/@unixroot/usr/sbin:/@unixroot/sbin"
|
|---|
| 116 | #undef _PATH_SYSPATH
|
|---|
| 117 | #define _PATH_SYSPATH "/@unixroot/rescue:/@unixroot/sbin:/@unixroot/usr/sbin"
|
|---|
| 118 | #undef _PATH_BSHELL
|
|---|
| 119 | #define _PATH_BSHELL "/@unixroot/rescue/sh"
|
|---|
| 120 | #undef _PATH_CP
|
|---|
| 121 | #define _PATH_CP "/@unixroot/rescue/cp"
|
|---|
| 122 | #undef _PATH_CSHELL
|
|---|
| 123 | #define _PATH_CSHELL "/@unixroot/rescue/csh"
|
|---|
| 124 | #undef _PATH_HALT
|
|---|
| 125 | #define _PATH_HALT "/@unixroot/rescue/halt"
|
|---|
| 126 | #undef _PATH_IFCONFIG
|
|---|
| 127 | #define _PATH_IFCONFIG "/@unixroot/rescue/ifconfig"
|
|---|
| 128 | #undef _PATH_MDCONFIG
|
|---|
| 129 | #define _PATH_MDCONFIG "/@unixroot/rescue/mdconfig"
|
|---|
| 130 | #undef _PATH_MOUNT
|
|---|
| 131 | #define _PATH_MOUNT "/@unixroot/rescue/mount"
|
|---|
| 132 | #undef _PATH_NEWFS
|
|---|
| 133 | #define _PATH_NEWFS "/@unixroot/rescue/newfs"
|
|---|
| 134 | #undef _PATH_RCP
|
|---|
| 135 | #define _PATH_RCP "/@unixroot/rescue/rcp"
|
|---|
| 136 | #undef _PATH_REBOOT
|
|---|
| 137 | #define _PATH_REBOOT "/@unixroot/rescue/reboot"
|
|---|
| 138 | #undef _PATH_RM
|
|---|
| 139 | #define _PATH_RM "/@unixroot/rescue/rm"
|
|---|
| 140 | #undef _PATH_VI
|
|---|
| 141 | #define _PATH_VI "/@unixroot/rescue/vi"
|
|---|
| 142 | #undef _PATH_WALL
|
|---|
| 143 | #define _PATH_WALL "/@unixroot/rescue/wall"
|
|---|
| 144 | #endif /* RESCUE */
|
|---|
| 145 |
|
|---|
| 146 | #endif /* !_PATHS_H_ */
|
|---|