]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/unix/env.rs
Rollup merge of #90704 - ijackson:exitstatus-comments, r=joshtriplett
[rust.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 = "freebsd")]
35 pub mod os {
36     pub const FAMILY: &str = "unix";
37     pub const OS: &str = "freebsd";
38     pub const DLL_PREFIX: &str = "lib";
39     pub const DLL_SUFFIX: &str = ".so";
40     pub const DLL_EXTENSION: &str = "so";
41     pub const EXE_SUFFIX: &str = "";
42     pub const EXE_EXTENSION: &str = "";
43 }
44
45 #[cfg(target_os = "dragonfly")]
46 pub mod os {
47     pub const FAMILY: &str = "unix";
48     pub const OS: &str = "dragonfly";
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 = "netbsd")]
57 pub mod os {
58     pub const FAMILY: &str = "unix";
59     pub const OS: &str = "netbsd";
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 = "openbsd")]
68 pub mod os {
69     pub const FAMILY: &str = "unix";
70     pub const OS: &str = "openbsd";
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 = "android")]
79 pub mod os {
80     pub const FAMILY: &str = "unix";
81     pub const OS: &str = "android";
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 = "solaris")]
90 pub mod os {
91     pub const FAMILY: &str = "unix";
92     pub const OS: &str = "solaris";
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 = "illumos")]
101 pub mod os {
102     pub const FAMILY: &str = "unix";
103     pub const OS: &str = "illumos";
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 = "haiku")]
112 pub mod os {
113     pub const FAMILY: &str = "unix";
114     pub const OS: &str = "haiku";
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(all(target_os = "emscripten", target_arch = "asmjs"))]
123 pub mod os {
124     pub const FAMILY: &str = "unix";
125     pub const OS: &str = "emscripten";
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 = ".js";
130     pub const EXE_EXTENSION: &str = "js";
131 }
132
133 #[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
134 pub mod os {
135     pub const FAMILY: &str = "unix";
136     pub const OS: &str = "emscripten";
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 = ".js";
141     pub const EXE_EXTENSION: &str = "js";
142 }
143
144 #[cfg(target_os = "fuchsia")]
145 pub mod os {
146     pub const FAMILY: &str = "unix";
147     pub const OS: &str = "fuchsia";
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 = "";
152     pub const EXE_EXTENSION: &str = "";
153 }
154
155 #[cfg(target_os = "l4re")]
156 pub mod os {
157     pub const FAMILY: &str = "unix";
158     pub const OS: &str = "l4re";
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 = "";
163     pub const EXE_EXTENSION: &str = "";
164 }
165
166 #[cfg(target_os = "redox")]
167 pub mod os {
168     pub const FAMILY: &str = "unix";
169     pub const OS: &str = "redox";
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 = "";
174     pub const EXE_EXTENSION: &str = "";
175 }
176
177 #[cfg(target_os = "vxworks")]
178 pub mod os {
179     pub const FAMILY: &str = "unix";
180     pub const OS: &str = "vxworks";
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 = "espidf")]
189 pub mod os {
190     pub const FAMILY: &str = "unix";
191     pub const OS: &str = "espidf";
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 }