Debian Codegraph @

.cargo/vendor/libc/src/windows/gnu/mod.rs

raw
1 pub const L_tmpnam: ::c_uint = 14;
2 pub const TMP_MAX: ::c_uint = 0x7fff;
3
4 // stdio file descriptor numbers
5 pub const STDIN_FILENO: ::c_int = 0;
6 pub const STDOUT_FILENO: ::c_int = 1;
7 pub const STDERR_FILENO: ::c_int = 2;
8
9 extern "C" {
10 pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
11 pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, n: ::size_t) -> ::c_int;
12
13 // NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
14 // header file. We cannot find a way to link to that symbol from Rust.
15 pub fn wmemchr(cx: *const ::wchar_t, c: ::wchar_t, n: ::size_t) -> *mut ::wchar_t;
16 }
17
18 cfg_if! {
19 if #[cfg(libc_align)] {
20 mod align;
21 pub use self::align::*;
22 }
23 }