]> git.proxmox.com Git - rustc.git/blob - library/std/src/sys/unix/env.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / library / std / src / sys / unix / env.rs
1 #[cfg(target_os = "linux")]
2 pub mod os {
3 pub const FAMILY: &str = "unix";
4 pub const OS: &str = "linux";
5 pub const DLL_PREFIX: &str = "lib";
6 pub const DLL_SUFFIX: &str = ".so";
7 pub const DLL_EXTENSION: &str = "so";
8 pub const EXE_SUFFIX: &str = "";
9 pub const EXE_EXTENSION: &str = "";
10 }
11
12 #[cfg(target_os = "macos")]
13 pub mod os {
14 pub const FAMILY: &str = "unix";
15 pub const OS: &str = "macos";
16 pub const DLL_PREFIX: &str = "lib";
17 pub const DLL_SUFFIX: &str = ".dylib";
18 pub const DLL_EXTENSION: &str = "dylib";
19 pub const EXE_SUFFIX: &str = "";
20 pub const EXE_EXTENSION: &str = "";
21 }
22
23 #[cfg(target_os = "ios")]
24 pub mod os {
25 pub const FAMILY: &str = "unix";
26 pub const OS: &str = "ios";
27 pub const DLL_PREFIX: &str = "lib";
28 pub const DLL_SUFFIX: &str = ".dylib";
29 pub const DLL_EXTENSION: &str = "dylib";
30 pub const EXE_SUFFIX: &str = "";
31 pub const EXE_EXTENSION: &str = "";
32 }
33
34 #[cfg(target_os = "watchos")]
35 pub mod os {
36 pub const FAMILY: &str = "unix";
37 pub const OS: &str = "watchos";
38 pub const DLL_PREFIX: &str = "lib";
39 pub const DLL_SUFFIX: &str = ".dylib";
40 pub const DLL_EXTENSION: &str = "dylib";
41 pub const EXE_SUFFIX: &str = "";
42 pub const EXE_EXTENSION: &str = "";
43 }
44
45 #[cfg(target_os = "freebsd")]
46 pub mod os {
47 pub const FAMILY: &str = "unix";
48 pub const OS: &str = "freebsd";
49 pub const DLL_PREFIX: &str = "lib";
50 pub const DLL_SUFFIX: &str = ".so";
51 pub const DLL_EXTENSION: &str = "so";
52 pub const EXE_SUFFIX: &str = "";
53 pub const EXE_EXTENSION: &str = "";
54 }
55
56 #[cfg(target_os = "dragonfly")]
57 pub mod os {
58 pub const FAMILY: &str = "unix";
59 pub const OS: &str = "dragonfly";
60 pub const DLL_PREFIX: &str = "lib";
61 pub const DLL_SUFFIX: &str = ".so";
62 pub const DLL_EXTENSION: &str = "so";
63 pub const EXE_SUFFIX: &str = "";
64 pub const EXE_EXTENSION: &str = "";
65 }
66
67 #[cfg(target_os = "netbsd")]
68 pub mod os {
69 pub const FAMILY: &str = "unix";
70 pub const OS: &str = "netbsd";
71 pub const DLL_PREFIX: &str = "lib";
72 pub const DLL_SUFFIX: &str = ".so";
73 pub const DLL_EXTENSION: &str = "so";
74 pub const EXE_SUFFIX: &str = "";
75 pub const EXE_EXTENSION: &str = "";
76 }
77
78 #[cfg(target_os = "openbsd")]
79 pub mod os {
80 pub const FAMILY: &str = "unix";
81 pub const OS: &str = "openbsd";
82 pub const DLL_PREFIX: &str = "lib";
83 pub const DLL_SUFFIX: &str = ".so";
84 pub const DLL_EXTENSION: &str = "so";
85 pub const EXE_SUFFIX: &str = "";
86 pub const EXE_EXTENSION: &str = "";
87 }
88
89 #[cfg(target_os = "android")]
90 pub mod os {
91 pub const FAMILY: &str = "unix";
92 pub const OS: &str = "android";
93 pub const DLL_PREFIX: &str = "lib";
94 pub const DLL_SUFFIX: &str = ".so";
95 pub const DLL_EXTENSION: &str = "so";
96 pub const EXE_SUFFIX: &str = "";
97 pub const EXE_EXTENSION: &str = "";
98 }
99
100 #[cfg(target_os = "solaris")]
101 pub mod os {
102 pub const FAMILY: &str = "unix";
103 pub const OS: &str = "solaris";
104 pub const DLL_PREFIX: &str = "lib";
105 pub const DLL_SUFFIX: &str = ".so";
106 pub const DLL_EXTENSION: &str = "so";
107 pub const EXE_SUFFIX: &str = "";
108 pub const EXE_EXTENSION: &str = "";
109 }
110
111 #[cfg(target_os = "illumos")]
112 pub mod os {
113 pub const FAMILY: &str = "unix";
114 pub const OS: &str = "illumos";
115 pub const DLL_PREFIX: &str = "lib";
116 pub const DLL_SUFFIX: &str = ".so";
117 pub const DLL_EXTENSION: &str = "so";
118 pub const EXE_SUFFIX: &str = "";
119 pub const EXE_EXTENSION: &str = "";
120 }
121
122 #[cfg(target_os = "haiku")]
123 pub mod os {
124 pub const FAMILY: &str = "unix";
125 pub const OS: &str = "haiku";
126 pub const DLL_PREFIX: &str = "lib";
127 pub const DLL_SUFFIX: &str = ".so";
128 pub const DLL_EXTENSION: &str = "so";
129 pub const EXE_SUFFIX: &str = "";
130 pub const EXE_EXTENSION: &str = "";
131 }
132
133 #[cfg(target_os = "horizon")]
134 pub mod os {
135 pub const FAMILY: &str = "unix";
136 pub const OS: &str = "horizon";
137 pub const DLL_PREFIX: &str = "lib";
138 pub const DLL_SUFFIX: &str = ".so";
139 pub const DLL_EXTENSION: &str = "so";
140 pub const EXE_SUFFIX: &str = ".elf";
141 pub const EXE_EXTENSION: &str = "elf";
142 }
143
144 #[cfg(target_os = "vita")]
145 pub mod os {
146 pub const FAMILY: &str = "unix";
147 pub const OS: &str = "vita";
148 pub const DLL_PREFIX: &str = "lib";
149 pub const DLL_SUFFIX: &str = ".so";
150 pub const DLL_EXTENSION: &str = "so";
151 pub const EXE_SUFFIX: &str = ".elf";
152 pub const EXE_EXTENSION: &str = "elf";
153 }
154
155 #[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
156 pub mod os {
157 pub const FAMILY: &str = "unix";
158 pub const OS: &str = "emscripten";
159 pub const DLL_PREFIX: &str = "lib";
160 pub const DLL_SUFFIX: &str = ".so";
161 pub const DLL_EXTENSION: &str = "so";
162 pub const EXE_SUFFIX: &str = ".js";
163 pub const EXE_EXTENSION: &str = "js";
164 }
165
166 #[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
167 pub mod os {
168 pub const FAMILY: &str = "unix";
169 pub const OS: &str = "emscripten";
170 pub const DLL_PREFIX: &str = "lib";
171 pub const DLL_SUFFIX: &str = ".so";
172 pub const DLL_EXTENSION: &str = "so";
173 pub const EXE_SUFFIX: &str = ".js";
174 pub const EXE_EXTENSION: &str = "js";
175 }
176
177 #[cfg(target_os = "fuchsia")]
178 pub mod os {
179 pub const FAMILY: &str = "unix";
180 pub const OS: &str = "fuchsia";
181 pub const DLL_PREFIX: &str = "lib";
182 pub const DLL_SUFFIX: &str = ".so";
183 pub const DLL_EXTENSION: &str = "so";
184 pub const EXE_SUFFIX: &str = "";
185 pub const EXE_EXTENSION: &str = "";
186 }
187
188 #[cfg(target_os = "l4re")]
189 pub mod os {
190 pub const FAMILY: &str = "unix";
191 pub const OS: &str = "l4re";
192 pub const DLL_PREFIX: &str = "lib";
193 pub const DLL_SUFFIX: &str = ".so";
194 pub const DLL_EXTENSION: &str = "so";
195 pub const EXE_SUFFIX: &str = "";
196 pub const EXE_EXTENSION: &str = "";
197 }
198
199 #[cfg(target_os = "nto")]
200 pub mod os {
201 pub const FAMILY: &str = "unix";
202 pub const OS: &str = "nto";
203 pub const DLL_PREFIX: &str = "lib";
204 pub const DLL_SUFFIX: &str = ".so";
205 pub const DLL_EXTENSION: &str = "so";
206 pub const EXE_SUFFIX: &str = "";
207 pub const EXE_EXTENSION: &str = "";
208 }
209
210 #[cfg(target_os = "redox")]
211 pub mod os {
212 pub const FAMILY: &str = "unix";
213 pub const OS: &str = "redox";
214 pub const DLL_PREFIX: &str = "lib";
215 pub const DLL_SUFFIX: &str = ".so";
216 pub const DLL_EXTENSION: &str = "so";
217 pub const EXE_SUFFIX: &str = "";
218 pub const EXE_EXTENSION: &str = "";
219 }
220
221 #[cfg(target_os = "vxworks")]
222 pub mod os {
223 pub const FAMILY: &str = "unix";
224 pub const OS: &str = "vxworks";
225 pub const DLL_PREFIX: &str = "lib";
226 pub const DLL_SUFFIX: &str = ".so";
227 pub const DLL_EXTENSION: &str = "so";
228 pub const EXE_SUFFIX: &str = "";
229 pub const EXE_EXTENSION: &str = "";
230 }
231
232 #[cfg(target_os = "espidf")]
233 pub mod os {
234 pub const FAMILY: &str = "unix";
235 pub const OS: &str = "espidf";
236 pub const DLL_PREFIX: &str = "lib";
237 pub const DLL_SUFFIX: &str = ".so";
238 pub const DLL_EXTENSION: &str = "so";
239 pub const EXE_SUFFIX: &str = "";
240 pub const EXE_EXTENSION: &str = "";
241 }