From cd9010c77e764e9348ecd92dc4a285f6514505dc Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 26 Feb 2014 12:57:00 -0800 Subject: native: Improve windows file handling This commit splits the file implementation into file_unix and file_win32. The two implementations have diverged to the point that they share almost 0 code at this point, so it's easier to maintain as separate files. The other major change accompanied with this commit is that file::open is no longer based on libc's open function on windows, but rather windows's CreateFile function. This fixes dealing with binary files on windows (test added in previous commit). This also changes the read/write functions to use ReadFile and WriteFile instead of libc's read/write. Closes #12406 --- src/libnative/io/timer_timerfd.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libnative/io/timer_timerfd.rs') diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs index baafe3f4850..7feeaa4768c 100644 --- a/src/libnative/io/timer_timerfd.rs +++ b/src/libnative/io/timer_timerfd.rs @@ -28,8 +28,6 @@ //! //! As with timer_other, all units in this file are in units of millseconds. -#[allow(non_camel_case_types)]; - use std::comm::Data; use std::libc; use std::ptr; -- cgit 1.4.1-3-g733a5