Debian Codegraph @

debian/missing-sources/libc/src/windows/gnu/mod.rs

raw
1 use crate::prelude::*;
2
3 cfg_if! {
4 if #[cfg(target_pointer_width = "64")] {
5 s_no_extra_traits! {
6 #[repr(align(16))]
7 pub struct max_align_t {
8 priv_: [f64; 4],
9 }
10 }
11 } else if #[cfg(target_pointer_width = "32")] {
12 s_no_extra_traits! {
13 #[repr(align(16))]
14 pub struct max_align_t {
15 priv_: [i64; 6],
16 }
17 }
18 }
19 }
20
21 // stdio file descriptor numbers
22 pub const STDIN_FILENO: c_int = 0;
23 pub const STDOUT_FILENO: c_int = 1;
24 pub const STDERR_FILENO: c_int = 2;
25
26 extern "C" {
27 pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
28 pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int;
29
30 // NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
31 // header file. We cannot find a way to link to that symbol from Rust.
32 pub fn wmemchr(cx: *const crate::wchar_t, c: crate::wchar_t, n: size_t) -> *mut crate::wchar_t;
33 }