Debian Codegraph @

debian/missing-sources/libc/src/lib.rs

raw symbols SCIP
1 //! libc - Raw FFI bindings to platforms' system libraries
2 #![crate_name = "libc"]
3 #![crate_type = "rlib"]
4 #![allow(
5 renamed_and_removed_lints, // Keep this order.
6 unknown_lints, // Keep this order.
7 nonstandard_style,
8 overflowing_literals,
9 unused_macros,
10 unused_macro_rules,
11 )]
12 #![warn(
13 missing_copy_implementations,
14 missing_debug_implementations,
15 safe_packed_borrows
16 )]
17 // Prepare for a future upgrade
18 #![warn(rust_2024_compatibility)]
19 // Things missing for 2024 that are blocked on MSRV or breakage
20 #![allow(
21 missing_unsafe_on_extern,
22 edition_2024_expr_fragment_specifier,
23 // Allowed globally, the warning is enabled in individual modules as we work through them
24 unsafe_op_in_unsafe_fn
25 )]
26 #![cfg_attr(libc_deny_warnings, deny(warnings))]
27 // Attributes needed when building as part of the standard library
28 #![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]
29 #![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))]
30 // DIFF(1.0): The thread local references that raise this lint were removed in 1.0
31 #![cfg_attr(feature = "rustc-dep-of-std", allow(static_mut_refs))]
32 #![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
33 #![cfg_attr(feature = "rustc-dep-of-std", no_core)]
34
35 #[macro_use]
36 mod macrosrust-analyzer cargo libc 0.2.180 macros/;
37 mod newrust-analyzer cargo libc 0.2.180 new/;
38
39 cfg_ifrust-analyzer cargo libc 0.2.180 macros/cfg_if!! {
40 if #[cfg(feature = "rustc-dep-of-std")] {
41 extern crate rustc_std_workspace_core as core;
42 }
43 }
44
45 pub use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/::c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#;
46
47 #[allow(unused_imports)] // needed while the module is empty on some platforms
48 pub use newrust-analyzer cargo libc 0.2.180 new/::*;
49
50 cfg_ifrust-analyzer cargo libc 0.2.180 macros/cfg_if!! {
51 if #[cfg(windows)] {
52 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
53 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
54
55 mod windows;
56 pub use craterust-analyzer cargo libc 0.2.180 crate/::windows::*;
57
58 preluderust-analyzer cargo libc 0.2.180 prelude/!();
59 } else if #[cfg(target_os = "fuchsia")] {
60 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
61 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
62
63 mod fuchsia;
64 pub use craterust-analyzer cargo libc 0.2.180 crate/::fuchsia::*;
65
66 preluderust-analyzer cargo libc 0.2.180 prelude/!();
67 } else if #[cfg(target_os = "switch")] {
68 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
69 pub use primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
70
71 mod switch;
72 pub use switch::*;
73
74 preluderust-analyzer cargo libc 0.2.180 prelude/!();
75 } else if #[cfg(target_os = "psp")] {
76 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
77 pub use primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
78
79 mod psp;
80 pub use craterust-analyzer cargo libc 0.2.180 crate/::psp::*;
81
82 preluderust-analyzer cargo libc 0.2.180 prelude/!();
83 } else if #[cfg(target_os = "vxworks")] {
84 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
85 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
86
87 mod vxworks;
88 pub use craterust-analyzer cargo libc 0.2.180 crate/::vxworks::*;
89
90 preluderust-analyzer cargo libc 0.2.180 prelude/!();
91 } else if #[cfg(target_os = "qurt")] {
92 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
93 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
94
95 mod qurt;
96 pub use craterust-analyzer cargo libc 0.2.180 crate/::qurt::*;
97
98 preluderust-analyzer cargo libc 0.2.180 prelude/!();
99 } else if #[cfg(target_os = "solid_asp3")] {
100 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
101 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
102
103 mod solid;
104 pub use craterust-analyzer cargo libc 0.2.180 crate/::solid::*;
105
106 preluderust-analyzer cargo libc 0.2.180 prelude/!();
107 } else if #[cfg(unix)] {
108 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
109 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
110
111 mod unixrust-analyzer cargo libc 0.2.180 unix/;
112 pub use craterust-analyzer cargo libc 0.2.180 crate/::unixrust-analyzer cargo libc 0.2.180 unix/::*;
113
114 preluderust-analyzer cargo libc 0.2.180 macros/prelude!!();
115 } else if #[cfg(target_os = "hermit")] {
116 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
117 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
118
119 mod hermit;
120 pub use craterust-analyzer cargo libc 0.2.180 crate/::hermit::*;
121
122 preluderust-analyzer cargo libc 0.2.180 prelude/!();
123 } else if #[cfg(target_os = "teeos")] {
124 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
125 pub use primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
126
127 mod teeos;
128 pub use teeos::*;
129
130 preluderust-analyzer cargo libc 0.2.180 prelude/!();
131 } else if #[cfg(target_os = "trusty")] {
132 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
133 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
134
135 mod trusty;
136 pub use craterust-analyzer cargo libc 0.2.180 crate/::trusty::*;
137
138 preluderust-analyzer cargo libc 0.2.180 prelude/!();
139 } else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
140 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
141 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
142
143 mod sgx;
144 pub use craterust-analyzer cargo libc 0.2.180 crate/::sgx::*;
145
146 preluderust-analyzer cargo libc 0.2.180 prelude/!();
147 } else if #[cfg(any(target_env = "wasi", target_os = "wasi"))] {
148 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
149 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
150
151 mod wasi;
152 pub use craterust-analyzer cargo libc 0.2.180 crate/::wasi::*;
153
154 preluderust-analyzer cargo libc 0.2.180 prelude/!();
155 } else if #[cfg(target_os = "xous")] {
156 mod primitivesrust-analyzer cargo libc 0.2.180 primitives/;
157 pub use craterust-analyzer cargo libc 0.2.180 crate/::primitivesrust-analyzer cargo libc 0.2.180 primitives/::*;
158
159 mod xous;
160 pub use craterust-analyzer cargo libc 0.2.180 crate/::xous::*;
161
162 preluderust-analyzer cargo libc 0.2.180 prelude/!();
163 } else {
164 // non-supported targets: empty...
165 }
166 }