2018-11-23 23:33:20 +01:00
|
|
|
pub const L_tmpnam: ::c_uint = 14;
|
|
|
|
pub const TMP_MAX: ::c_uint = 0x7fff;
|
|
|
|
|
2018-12-21 18:55:13 +01:00
|
|
|
// stdio file descriptor numbers
|
|
|
|
pub const STDIN_FILENO: ::c_int = 0;
|
|
|
|
pub const STDOUT_FILENO: ::c_int = 1;
|
|
|
|
pub const STDERR_FILENO: ::c_int = 2;
|
|
|
|
|
2019-09-12 15:12:33 +02:00
|
|
|
extern "C" {
|
2018-11-23 23:33:20 +01:00
|
|
|
pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
|
2021-04-06 02:57:12 +02:00
|
|
|
pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, n: ::size_t) -> ::c_int;
|
2020-03-18 05:57:28 +01:00
|
|
|
|
|
|
|
// NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
|
|
|
|
// header file. We cannot find a way to link to that symbol from Rust.
|
2021-04-06 02:57:12 +02:00
|
|
|
pub fn wmemchr(cx: *const ::wchar_t, c: ::wchar_t, n: ::size_t) -> *mut ::wchar_t;
|
2018-11-23 23:33:20 +01:00
|
|
|
}
|
2019-09-17 11:50:05 +02:00
|
|
|
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(libc_align)] {
|
|
|
|
mod align;
|
|
|
|
pub use self::align::*;
|
|
|
|
}
|
|
|
|
}
|