1 /** @file
2 
3     Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.<BR>
4     This program and the accompanying materials
5     are licensed and made available under the terms and conditions of the BSD License
6     which accompanies this distribution.  The full text of the license may be found at
7     http://opensource.org/licenses/bsd-license.php
8 
9     THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10     WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 
12  * Copyright (c) 1989, 1993
13  *  The Regents of the University of California.  All rights reserved.
14  *
15  * Redistribution and use in source and binary forms, with or without
16  * modification, are permitted provided that the following conditions
17  * are met:
18  * 1. Redistributions of source code must retain the above copyright
19  *    notice, this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright
21  *    notice, this list of conditions and the following disclaimer in the
22  *    documentation and/or other materials provided with the distribution.
23  * 3. Neither the name of the University nor the names of its contributors
24  *    may be used to endorse or promote products derived from this software
25  *    without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37  * SUCH DAMAGE.
38  *
39  *  @(#)paths.h 8.1 (Berkeley) 6/2/93
40  *  $NetBSD: paths.h,v 1.30 2004/12/11 06:01:33 christos Exp
41  */
42 
43 #ifndef _PATHS_H_
44 #define _PATHS_H_
45 
46 /* Provide trailing slash, since mostly used for building pathnames.
47  * see the __CONCAT() macro from <sys/EfiCdefs.h> for cpp examples.
48  */
49 #define _PATH_DEV         "/dev/"
50 #define _PATH_STDLIB      "/Efi/StdLib/"
51 #define _PATH_ETC         _PATH_STDLIB "etc/"
52 #define _PATH_TMP         _PATH_STDLIB "tmp/"
53 #define _PATH_LIB         _PATH_STDLIB "lib/"
54 #define _PATH_BIN         "/Efi/Tools/"
55 
56 /* DOS style device paths */
57 #define _PATH_TTYDEV      "tty:"
58 #define _PATH_NULLDEV     "null:"
59 #define _PATH_CONSOLE     "console:"
60 #define _PATH_CONSTTY     "constty:"
61 #define _PATH_STDIN       "stdin:"
62 #define _PATH_STDOUT      "stdout:"
63 #define _PATH_STDERR      "stderr:"
64 #define _PATH_SOCKET      "socket:"
65 
66 /* *nix style device paths */
67 #define _PATH_DEVTTY      _PATH_DEV "tty"
68 #define _PATH_DEVNULL     _PATH_DEV "null"
69 #define _PATH_DEVCONSOLE  _PATH_DEV "console"
70 #define _PATH_DEVCONSTTY  _PATH_DEV "constty"
71 #define _PATH_DEVSTDIN    _PATH_DEV "stdin"
72 #define _PATH_DEVSTDOUT   _PATH_DEV "stdout"
73 #define _PATH_DEVSTDERR   _PATH_DEV "stderr"
74 #define _PATH_DEVSOCKET   _PATH_DEV "socket"
75 
76 /* Special files and locations */
77 #define _PATH_FSTAB       _PATH_ETC "fstab"
78 #define _PATH_HOSTNAME    _PATH_ETC "hostname"
79 #define _PATH_HOSTS       _PATH_ETC "hosts"
80 #define _PATH_HOSTCONF    _PATH_ETC "host.conf"
81 #define _PATH_LOCALE      _PATH_ETC "Locale"
82 #define _PATH_NETCONF     _PATH_ETC "host.conf"
83 #define _PATH_NETWORKS    _PATH_ETC "networks"
84 #define _PATH_PROTOCOLS   _PATH_ETC "protocols"
85 
86 /* Resolver configuration file.
87  * Normally not present, but may contain the address of the
88  * inital name server(s) to query and the domain search list.
89  */
90 #define _PATH_RESCONF     _PATH_ETC "resolv.conf"
91 #define _PATH_SERVICES    _PATH_ETC "services"
92 
93 #endif /* !_PATHS_H_ */
94