Skip to content
Snippets Groups Projects
Commit c1ae35da authored by bors's avatar bors
Browse files

Auto merge of #1180 - xmclark:add-stdio-constants-windows, r=alexcrichton

add stdio constants for windows

A few useful constants for working with the stdio file descriptors.

I referenced the [msdn](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fileno?view=vs-2017) docs for the numbers, although I think 0,1,2 are standard  on most platforms for the stdio.
parents 027d4834 f1b396f3
No related branches found
No related tags found
No related merge requests found
pub const L_tmpnam: ::c_uint = 14;
pub const TMP_MAX: ::c_uint = 0x7fff;
// 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;
extern {
pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment