xref: /minix/include/paths.h (revision 0a6a1f1d)
1*0a6a1f1dSLionel Sambuc /*	$NetBSD: paths.h,v 1.42 2015/05/06 23:06:26 pgoyette Exp $	*/
22fe8fb19SBen Gras 
3998af6f1SArun Thomas /*
4998af6f1SArun Thomas  * Copyright (c) 1989, 1993
5998af6f1SArun Thomas  *	The Regents of the University of California.  All rights reserved.
6998af6f1SArun Thomas  *
7998af6f1SArun Thomas  * Redistribution and use in source and binary forms, with or without
8998af6f1SArun Thomas  * modification, are permitted provided that the following conditions
9998af6f1SArun Thomas  * are met:
10998af6f1SArun Thomas  * 1. Redistributions of source code must retain the above copyright
11998af6f1SArun Thomas  *    notice, this list of conditions and the following disclaimer.
12998af6f1SArun Thomas  * 2. Redistributions in binary form must reproduce the above copyright
13998af6f1SArun Thomas  *    notice, this list of conditions and the following disclaimer in the
14998af6f1SArun Thomas  *    documentation and/or other materials provided with the distribution.
15998af6f1SArun Thomas  * 3. Neither the name of the University nor the names of its contributors
16998af6f1SArun Thomas  *    may be used to endorse or promote products derived from this software
17998af6f1SArun Thomas  *    without specific prior written permission.
18998af6f1SArun Thomas  *
19998af6f1SArun Thomas  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20998af6f1SArun Thomas  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21998af6f1SArun Thomas  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22998af6f1SArun Thomas  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23998af6f1SArun Thomas  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24998af6f1SArun Thomas  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25998af6f1SArun Thomas  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26998af6f1SArun Thomas  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27998af6f1SArun Thomas  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28998af6f1SArun Thomas  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29998af6f1SArun Thomas  * SUCH DAMAGE.
30998af6f1SArun Thomas  *
31998af6f1SArun Thomas  *	@(#)paths.h	8.1 (Berkeley) 6/2/93
32998af6f1SArun Thomas  */
33998af6f1SArun Thomas 
342fe8fb19SBen Gras #ifndef _PATHS_H_
352fe8fb19SBen Gras #define	_PATHS_H_
36998af6f1SArun Thomas 
372fe8fb19SBen Gras /*
382fe8fb19SBen Gras  * Default user search path.
392fe8fb19SBen Gras  * Set by login(1), rshd(8), rexecd(8)
402fe8fb19SBen Gras  * Used by execvp(3) absent PATH from the environ(7)
412fe8fb19SBen Gras  */
422fe8fb19SBen Gras #ifdef RESCUEDIR
432fe8fb19SBen Gras #define	_PATH_DEFPATH	RESCUEDIR ":/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin"
442fe8fb19SBen Gras #else
45998af6f1SArun Thomas #define	_PATH_DEFPATH	"/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin"
462fe8fb19SBen Gras #endif
472fe8fb19SBen Gras 
482fe8fb19SBen Gras /*
492fe8fb19SBen Gras  * All standard utilities path.
502fe8fb19SBen Gras  * Set by init(8) for system programs & scripts (e.g. /etc/rc)
512fe8fb19SBen Gras  * Used by ttyaction(3), whereis(1)
522fe8fb19SBen Gras  */
53998af6f1SArun Thomas #define	_PATH_STDPATH \
54998af6f1SArun Thomas 	"/usr/bin:/bin:/usr/sbin:/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/local/sbin"
55998af6f1SArun Thomas 
562fe8fb19SBen Gras #define	_PATH_AUDIO	"/dev/audio"
572fe8fb19SBen Gras #define	_PATH_AUDIO0	"/dev/audio0"
582fe8fb19SBen Gras #define	_PATH_AUDIOCTL	"/dev/audioctl"
592fe8fb19SBen Gras #define	_PATH_AUDIOCTL0	"/dev/audioctl0"
602fe8fb19SBen Gras #define	_PATH_BPF	"/dev/bpf"
612fe8fb19SBen Gras #define	_PATH_CLOCKCTL	"/dev/clockctl"
62998af6f1SArun Thomas #define	_PATH_CONSOLE	"/dev/console"
632fe8fb19SBen Gras #define	_PATH_CONSTTY	"/dev/constty"
64f14fb602SLionel Sambuc #define _PATH_CPUCTL	"/dev/cpuctl"
652fe8fb19SBen Gras #define	_PATH_CSMAPPER	"/usr/share/i18n/csmapper"
662fe8fb19SBen Gras #define	_PATH_DEFTAPE	"/dev/nrst0"
67f14fb602SLionel Sambuc #define	_PATH_DEVCDB	"/var/run/dev.cdb"
682fe8fb19SBen Gras #define	_PATH_DEVDB	"/var/run/dev.db"
692fe8fb19SBen Gras #define	_PATH_DEVNULL	"/dev/null"
702fe8fb19SBen Gras #define	_PATH_DRUM	"/dev/drum"
712fe8fb19SBen Gras #define	_PATH_ESDB	"/usr/share/i18n/esdb"
722fe8fb19SBen Gras #define	_PATH_FTPUSERS	"/etc/ftpusers"
732fe8fb19SBen Gras #define	_PATH_GETTYTAB	"/etc/gettytab"
742fe8fb19SBen Gras #define	_PATH_I18NMODULE "/usr/lib/i18n"
752fe8fb19SBen Gras #define	_PATH_ICONV	"/usr/share/i18n/iconv"
76998af6f1SArun Thomas #define	_PATH_KMEM	"/dev/kmem"
772fe8fb19SBen Gras #define	_PATH_KSYMS	"/dev/ksyms"
782fe8fb19SBen Gras #define	_PATH_KVMDB	"/var/db/kvm.db"
792fe8fb19SBen Gras #define	_PATH_LOCALE	"/usr/share/locale"
80a6e7b858SLionel Sambuc #define	_PATH_MAILDIR	"/var/mail"
812fe8fb19SBen Gras #define	_PATH_MAN	"/usr/share/man"
82998af6f1SArun Thomas #define	_PATH_MEM	"/dev/mem"
832fe8fb19SBen Gras #define	_PATH_MIXER	"/dev/mixer"
842fe8fb19SBen Gras #define	_PATH_MIXER0	"/dev/mixer0"
852fe8fb19SBen Gras #define	_PATH_NOLOGIN	"/etc/nologin"
862fe8fb19SBen Gras #define _PATH_POWER	"/dev/power"
872fe8fb19SBen Gras #define	_PATH_PRINTCAP	"/etc/printcap"
882fe8fb19SBen Gras #define	_PATH_PUD	"/dev/pud"
892fe8fb19SBen Gras #define	_PATH_PUFFS	"/dev/puffs"
90998af6f1SArun Thomas #define	_PATH_RANDOM	"/dev/random"
912fe8fb19SBen Gras #define	_PATH_SENDMAIL	"/usr/sbin/sendmail"
922fe8fb19SBen Gras #define	_PATH_SHELLS	"/etc/shells"
932fe8fb19SBen Gras #define	_PATH_SKEYKEYS	"/etc/skeykeys"
942fe8fb19SBen Gras #define	_PATH_SOUND	"/dev/sound"
952fe8fb19SBen Gras #define	_PATH_SOUND0	"/dev/sound0"
962fe8fb19SBen Gras #define	_PATH_SYSMON	"/dev/sysmon"
972fe8fb19SBen Gras #define	_PATH_TTY	"/dev/tty"
982fe8fb19SBen Gras #define	_PATH_UNIX	"/netbsd"
99998af6f1SArun Thomas #define	_PATH_URANDOM	"/dev/urandom"
1002fe8fb19SBen Gras #define	_PATH_VIDEO	"/dev/video"
1012fe8fb19SBen Gras #define	_PATH_VIDEO0	"/dev/video0"
102*0a6a1f1dSLionel Sambuc #define	_PATH_WATCHDOG	"/dev/watchdog"
103998af6f1SArun Thomas 
1042fe8fb19SBen Gras /*
1052fe8fb19SBen Gras  * Provide trailing slash, since mostly used for building pathnames.
1062fe8fb19SBen Gras  * See the __CONCAT() macro from <sys/cdefs.h> for cpp examples.
1072fe8fb19SBen Gras  */
108998af6f1SArun Thomas #define	_PATH_DEV	"/dev/"
1092fe8fb19SBen Gras #define	_PATH_DEV_PTS	"/dev/pts/"
1102fe8fb19SBen Gras #define	_PATH_EMUL_AOUT	"/emul/aout/"
111998af6f1SArun Thomas #define	_PATH_TMP	"/tmp/"
1122fe8fb19SBen Gras #define	_PATH_VARDB	"/var/db/"
1132fe8fb19SBen Gras #define	_PATH_VARRUN	"/var/run/"
1142fe8fb19SBen Gras #define	_PATH_VARTMP	"/var/tmp/"
115998af6f1SArun Thomas 
1162fe8fb19SBen Gras /*
1172fe8fb19SBen Gras  * Paths that may change if RESCUEDIR is defined.
1182fe8fb19SBen Gras  * Used by tools in /rescue.
1192fe8fb19SBen Gras  */
1202fe8fb19SBen Gras #ifdef RESCUEDIR
1212fe8fb19SBen Gras #define	_PATH_BSHELL	RESCUEDIR "/sh"
1222fe8fb19SBen Gras #define	_PATH_CSHELL	RESCUEDIR "/csh"
1232fe8fb19SBen Gras #define	_PATH_VI	RESCUEDIR "/vi"
1242fe8fb19SBen Gras #else
1252fe8fb19SBen Gras #define	_PATH_BSHELL	"/bin/sh"
1262fe8fb19SBen Gras #define	_PATH_CSHELL	"/bin/csh"
1272fe8fb19SBen Gras #define	_PATH_VI	"/usr/bin/vi"
128998af6f1SArun Thomas #endif
1292fe8fb19SBen Gras 
1302fe8fb19SBen Gras #endif /* !_PATHS_H_ */
1312fe8fb19SBen Gras 
132