paths.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1989, 1993
00003  *      The Regents of the University of California.  All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. All advertising materials mentioning features or use of this software
00014  *    must display the following acknowledgement:
00015  *      This product includes software developed by the University of
00016  *      California, Berkeley and its contributors.
00017  * 4. Neither the name of the University nor the names of its contributors
00018  *    may be used to endorse or promote products derived from this software
00019  *    without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00022  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00023  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00024  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00025  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00026  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00027  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00028  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00029  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00030  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
00033  *      @(#)paths.h     8.1 (Berkeley) 6/2/93
00034  * $FreeBSD: src/include/paths.h,v 1.25 2004/01/04 17:17:46 iedowse Exp $
00035  */
00036 
00037 #ifndef _PATHS_H_
00038 #define _PATHS_H_
00039 
00040 #include <sys/cdefs.h>
00041 
00042 /* Default search path. */
00043 #define _PATH_DEFPATH   "/usr/bin:/bin"
00044 /* All standard utilities path. */
00045 #define _PATH_STDPATH \
00046         "/usr/bin:/bin:/usr/sbin:/sbin:"
00047 /* Locate system binaries */
00048 #define _PATH_SYSPATH   \
00049         "/sbin:/usr/sbin"
00050 
00051 #define _PATH_AUTHCONF  "/etc/auth.conf"
00052 #define _PATH_BSHELL    "/bin/sh"
00053 #define _PATH_CAPABILITY        "/etc/capability"
00054 #define _PATH_CAPABILITY_DB     "/etc/capability.db"
00055 #define _PATH_CONSOLE   "/dev/console"
00056 #define _PATH_CP        "/bin/cp"
00057 #define _PATH_CSHELL    "/bin/csh"
00058 #define _PATH_DEFTAPE   "/dev/sa0"
00059 #define _PATH_DEVNULL   "/dev/null"
00060 #define _PATH_DEVZERO   "/dev/zero"
00061 #define _PATH_DRUM      "/dev/drum"
00062 #define _PATH_ETC       "/etc"
00063 #define _PATH_FTPUSERS  "/etc/ftpusers"
00064 #define _PATH_HALT      "/sbin/halt"
00065 #define _PATH_IFCONFIG  "/sbin/ifconfig"
00066 #define _PATH_KMEM      "/dev/kmem"
00067 #define _PATH_LIBMAP_CONF       "/etc/libmap.conf"
00068 #define _PATH_LOCALE    "/usr/share/locale"
00069 #define _PATH_LOGIN     "/usr/bin/login"
00070 #define _PATH_MAILDIR   "/var/mail"
00071 #define _PATH_MAN       "/usr/share/man"
00072 #define _PATH_MDCONFIG  "/sbin/mdconfig"
00073 #define _PATH_MEM       "/dev/mem"
00074 #define _PATH_MKSNAP_FFS        "/sbin/mksnap_ffs"
00075 #define _PATH_MOUNT     "/sbin/mount"
00076 #define _PATH_NEWFS     "/sbin/newfs"
00077 #define _PATH_NOLOGIN   "/var/run/nologin"
00078 #define _PATH_RCP       "/bin/rcp"
00079 #define _PATH_REBOOT    "/sbin/reboot"
00080 #define _PATH_RLOGIN    "/usr/bin/rlogin"
00081 #define _PATH_RM        "/bin/rm"
00082 #define _PATH_RSH       "/usr/bin/rsh"
00083 #define _PATH_SENDMAIL  "/usr/sbin/sendmail"
00084 #define _PATH_SHELLS    "/etc/shells"
00085 #define _PATH_TTY       "/dev/tty"
00086 #define _PATH_UNIX      "don't use _PATH_UNIX"
00087 #define _PATH_VI        "/usr/bin/vi"
00088 #define _PATH_WALL      "/usr/bin/wall"
00089 
00090 /* Provide trailing slash, since mostly used for building pathnames. */
00091 #define _PATH_DEV       "/dev/"
00092 #define _PATH_TMP       "/tmp/"
00093 #define _PATH_VARDB     "/var/db/"
00094 #define _PATH_VARRUN    "/var/run/"
00095 #define _PATH_VARTMP    "/var/tmp/"
00096 #define _PATH_YP        "/var/yp/"
00097 #define _PATH_UUCPLOCK  "/var/spool/lock/"
00098 
00099 #ifdef RESCUE
00100 #undef  _PATH_DEFPATH
00101 #define _PATH_DEFPATH   "/rescue:/usr/bin:/bin"
00102 #undef  _PATH_STDPATH
00103 #define _PATH_STDPATH   "/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
00104 #undef  _PATH_SYSPATH
00105 #define _PATH_SYSPATH   "/rescue:/sbin:/usr/sbin"
00106 #undef  _PATH_BSHELL
00107 #define _PATH_BSHELL    "/rescue/sh"
00108 #undef  _PATH_CP
00109 #define _PATH_CP        "/rescue/cp"
00110 #undef  _PATH_CSHELL
00111 #define _PATH_CSHELL    "/rescue/csh"
00112 #undef  _PATH_HALT
00113 #define _PATH_HALT      "/rescue/halt"
00114 #undef  _PATH_IFCONFIG
00115 #define _PATH_IFCONFIG  "/rescue/ifconfig"
00116 #undef  _PATH_MDCONFIG
00117 #define _PATH_MDCONFIG  "/rescue/mdconfig"
00118 #undef  _PATH_MOUNT
00119 #define _PATH_MOUNT     "/rescue/mount"
00120 #undef  _PATH_NEWFS
00121 #define _PATH_NEWFS     "/rescue/newfs"
00122 #undef  _PATH_RCP
00123 #define _PATH_RCP       "/rescue/rcp"
00124 #undef  _PATH_REBOOT
00125 #define _PATH_REBOOT    "/rescue/reboot"
00126 #undef  _PATH_RM
00127 #define _PATH_RM        "/rescue/rm"
00128 #undef  _PATH_VI
00129 #define _PATH_VI        "/rescue/vi"
00130 #undef  _PATH_WALL
00131 #define _PATH_WALL      "/rescue/wall"
00132 #endif /* RESCUE */
00133 
00134 #endif /* !_PATHS_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top