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( 12 s1: *const ::c_char, 13 s2: *const ::c_char, 14 n: ::size_t, 15 ) -> ::c_int; 16 17 // NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>` 18 // header file. We cannot find a way to link to that symbol from Rust. 19 pub fn wmemchr( 20 cx: *const ::wchar_t, 21 c: ::wchar_t, 22 n: ::size_t, 23 ) -> *mut ::wchar_t; 24 } 25 26 cfg_if! { 27 if #[cfg(libc_align)] { 28 mod align; 29 pub use self::align::*; 30 } 31 } 32