]>
Commit | Line | Data |
---|---|---|
69743fb6 XL |
1 | pub const L_tmpnam: ::c_uint = 14; |
2 | pub const TMP_MAX: ::c_uint = 0x7fff; | |
3 | ||
0731742a XL |
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 | ||
e74abb32 | 9 | extern "C" { |
69743fb6 | 10 | pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int; |
cdc7bbd5 | 11 | pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, n: ::size_t) -> ::c_int; |
ba9703b0 XL |
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. | |
cdc7bbd5 | 15 | pub fn wmemchr(cx: *const ::wchar_t, c: ::wchar_t, n: ::size_t) -> *mut ::wchar_t; |
e74abb32 XL |
16 | } |
17 | ||
18 | cfg_if! { | |
19 | if #[cfg(libc_align)] { | |
20 | mod align; | |
21 | pub use self::align::*; | |
22 | } | |
69743fb6 | 23 | } |