diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-26 12:57:00 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-27 12:03:57 -0800 |
| commit | cd9010c77e764e9348ecd92dc4a285f6514505dc (patch) | |
| tree | 2f21e810536e25d0aea7c84c5c01768ae99f46b7 /src/libnative/io/timer_timerfd.rs | |
| parent | 843c5e6308920018defe62fd1951c8a5b45553b1 (diff) | |
| download | rust-cd9010c77e764e9348ecd92dc4a285f6514505dc.tar.gz rust-cd9010c77e764e9348ecd92dc4a285f6514505dc.zip | |
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
Diffstat (limited to 'src/libnative/io/timer_timerfd.rs')
| -rw-r--r-- | src/libnative/io/timer_timerfd.rs | 2 |
1 files changed, 0 insertions, 2 deletions
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; |
