diff options
author | mikehoyle <mikehoyle@google.com> | 2019-10-24 13:59:53 -0700 |
---|---|---|
committer | mikehoyle <mikehoyle@google.com> | 2019-10-24 13:59:53 -0700 |
commit | 3ecdafbde86fc01cd3f37c9327497ed0da8ab743 (patch) | |
tree | b499f430f5d1996d4cd11498ae77a2875724531d /src/windows/mod.rs | |
parent | 785a60c4d221611b832df6c1a0357543f0e45b77 (diff) | |
download | rust-libc-3ecdafbde86fc01cd3f37c9327497ed0da8ab743.tar.gz |
Updating for formatting _time64, and gnu test failures
Diffstat (limited to 'src/windows/mod.rs')
-rw-r--r-- | src/windows/mod.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 9dafb43ac9..a83babaed6 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -215,7 +215,6 @@ pub const ENOTRECOVERABLE: ::c_int = 127; pub const ENOTSOCK: ::c_int = 128; pub const ENOTSUP: ::c_int = 129; pub const EOPNOTSUPP: ::c_int = 130; -pub const EOTHER: ::c_int = 131; pub const EOVERFLOW: ::c_int = 132; pub const EOWNERDEAD: ::c_int = 133; pub const EPROTO: ::c_int = 134; @@ -378,8 +377,6 @@ extern "C" { n: size_t, ) -> ::size_t; - pub fn time(destTime: *mut time_t) -> time_t; - pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void; pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int; pub fn memcpy( @@ -403,6 +400,8 @@ extern "C" { pub fn signal(signum: c_int, handler: sighandler_t) -> sighandler_t; pub fn raise(signum: c_int) -> c_int; + #[link_name = "_time64"] + pub fn time(destTime: *mut time_t) -> time_t; #[link_name = "_chmod"] pub fn chmod(path: *const c_char, mode: ::c_int) -> ::c_int; #[link_name = "_wchmod"] @@ -471,8 +470,11 @@ extern "C" { #[link_name = "_lseek"] pub fn lseek(fd: ::c_int, offset: c_long, origin: ::c_int) -> c_long; #[link_name = "_lseeki64"] - pub fn lseek64(fd: ::c_int, offset: c_longlong, origin: ::c_int) - -> c_longlong; + pub fn lseek64( + fd: ::c_int, + offset: c_longlong, + origin: ::c_int, + ) -> c_longlong; #[link_name = "_pipe"] pub fn pipe( fds: *mut ::c_int, |