paths.h revision 3041
178892Sume/*
263291Sitojun * Copyright (c) 1989, 1993
355505Sshin *	The Regents of the University of California.  All rights reserved.
455505Sshin *
563291Sitojun * Redistribution and use in source and binary forms, with or without
655505Sshin * modification, are permitted provided that the following conditions
755505Sshin * are met:
855505Sshin * 1. Redistributions of source code must retain the above copyright
955505Sshin *    notice, this list of conditions and the following disclaimer.
1055505Sshin * 2. Redistributions in binary form must reproduce the above copyright
1155505Sshin *    notice, this list of conditions and the following disclaimer in the
1255505Sshin *    documentation and/or other materials provided with the distribution.
1355505Sshin * 3. All advertising materials mentioning features or use of this software
1455505Sshin *    must display the following acknowledgement:
1555505Sshin *	This product includes software developed by the University of
1655505Sshin *	California, Berkeley and its contributors.
1763291Sitojun * 4. Neither the name of the University nor the names of its contributors
1855505Sshin *    may be used to endorse or promote products derived from this software
1955505Sshin *    without specific prior written permission.
2055505Sshin *
2155505Sshin * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2255505Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2355505Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2455505Sshin * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2555505Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2655505Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2755505Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2855505Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2955505Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30141580Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31141580Sru * SUCH DAMAGE.
32315514Sae *
3355505Sshin *	@(#)paths.h	8.1 (Berkeley) 6/2/93
3456194Sasmodai */
3555505Sshin
36242691Skevlo#ifndef _PATHS_H_
37171696Sbz#define	_PATHS_H_
3855505Sshin
39161581Sdanger#include <sys/cdefs.h>
40315514Sae
41171696Sbz/* Default search path. */
42162404Sru#define	_PATH_DEFPATH	"/usr/bin:/bin"
43162404Sru/* All standard utilities path. */
44162404Sru#define	_PATH_STDPATH \
45171696Sbz	"/usr/bin:/bin:/usr/sbin:/sbin:"
46171696Sbz
4755505Sshin#define	_PATH_BSHELL	"/bin/sh"
4855505Sshin#define	_PATH_CONSOLE	"/dev/console"
49155673Sgnn#define	_PATH_CSHELL	"/bin/csh"
50171696Sbz#define	_PATH_DEVDB	"/var/run/dev.db"
5155505Sshin#define	_PATH_DEVNULL	"/dev/null"
5255505Sshin#define	_PATH_DRUM	"/dev/drum"
5381251Sru#define	_PATH_KMEM	"/dev/kmem"
5455505Sshin#define	_PATH_MAILDIR	"/var/mail"
5581251Sru#define	_PATH_MAN	"/usr/share/man"
5655505Sshin#define	_PATH_MEM	"/dev/mem"
57171696Sbz#define	_PATH_NOLOGIN	"/etc/nologin"
58171696Sbz#define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
59171696Sbz#define	_PATH_SHELLS	"/etc/shells"
60171696Sbz#define	_PATH_TTY	"/dev/tty"
61171696Sbz#define	_PATH_UNIX	"don't use _PATH_UNIX"
62171696Sbz#define	_PATH_VI	"/usr/bin/vi"
63171696Sbz
64171696Sbz/* Provide trailing slash, since mostly used for building pathnames. */
65171696Sbz#define	_PATH_DEV	"/dev/"
66171696Sbz#define	_PATH_TMP	"/tmp/"
67155673Sgnn#define	_PATH_VARDB	"/var/db/"
68171696Sbz#define	_PATH_VARRUN	"/var/run/"
69171696Sbz#define	_PATH_VARTMP	"/var/tmp/"
70171696Sbz
71171696Sbz/* How to get the correct name of the kernel. */
72171696Sbz__BEGIN_DECLS
7355505Sshinconst char *getbootfile __P((void));
74171696Sbz__END_DECLS
75155673Sgnn
76155673Sgnn#endif /* !_PATHS_H_ */
77155673Sgnn