Debian Codegraph @

third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/errno.rs

raw
1 use crate::prelude::*;
2
3 /* DIFF(main): module removed in de76fee6 */
4
5 // DragonFlyBSD's __error function is declared with "static inline", so it must
6 // be implemented in the libc crate, as a pointer to a static thread_local.
7 f! {
8 #[deprecated(since = "0.2.77", note = "Use `__errno_location()` instead")]
9 pub fn __error() -> *mut c_int {
10 &mut errno
11 }
12 }
13
14 extern "C" {
15 #[thread_local]
16 pub static mut errno: c_int;
17 }