Lines Matching defs:weak
1 // Implementation derived from `weak` in Rust's
2 // library/std/src/sys/unix/weak.rs at revision
5 //! Support for "weak linkage" to symbols on Unix
12 //! One option to use here is weak linkage, but that is unfortunately only
19 //! A long time ago this used weak linkage for the `__pthread_get_minstack`
24 // each instance of `weak!` and `syscall!`. Rather than trying to unify all of
38 macro_rules! weak {
41 $vis static $name: $crate::backend::weak::Weak<unsafe extern fn($($t),*) -> $ret> =
42 $crate::backend::weak::Weak::new(concat!(stringify!($name), '\0'));
121 weak! { fn $name($($t),*) -> $ret }
195 weak! { fn $name($($t),*) -> $ret }
197 // Use a weak symbol from libc when possible, allowing `LD_PRELOAD`
214 weak! { fn $name($($t),*) -> $ret }
216 // Use a weak symbol from libc when possible, allowing `LD_PRELOAD`