diff options
| author | chromatic <chromatic@wgz.org> | 2014-02-02 16:32:52 -0800 |
|---|---|---|
| committer | chromatic <chromatic@wgz.org> | 2014-02-07 09:59:19 -0800 |
| commit | 813886b22ccd0976db03c1bfcbb9738b5b7c41db (patch) | |
| tree | dfcd088cfc04989509241e1f7ece9ca0a50c9059 /src/libstd/os.rs | |
| parent | c3ccaacc6c90fc678cbba9c3c0427f0a7dece75c (diff) | |
| download | rust-813886b22ccd0976db03c1bfcbb9738b5b7c41db.tar.gz rust-813886b22ccd0976db03c1bfcbb9738b5b7c41db.zip | |
Removed prelude::* from libstd files.
This replaces the imports from the prelude with the re-exported symbols.
Diffstat (limited to 'src/libstd/os.rs')
| -rw-r--r-- | src/libstd/os.rs | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 541db01f148..fb67f82d612 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -28,20 +28,31 @@ #[allow(missing_doc)]; -use clone::Clone; -use container::Container; #[cfg(target_os = "macos")] +#[cfg(windows)] use iter::range; + +use clone::Clone; +use container::Container; use libc; use libc::{c_char, c_void, c_int}; -use option::{Some, None}; +use option::{Some, None, Option}; use os; -use prelude::*; +use ops::Drop; +use result::{Err, Ok, Result}; use ptr; use str; +use str::{Str, StrSlice}; use fmt; use unstable::finally::Finally; use sync::atomics::{AtomicInt, INIT_ATOMIC_INT, SeqCst}; +use path::{Path, GenericPath}; +use iter::Iterator; +use vec::{Vector, CloneableVector, ImmutableVector, MutableVector, OwnedVector}; +use ptr::RawPtr; + +#[cfg(unix)] +use c_str::ToCStr; /// Delegates to the libc close() function, returning the same return value. pub fn close(fd: int) -> int { @@ -396,6 +407,8 @@ pub fn self_exe_name() -> Option<Path> { #[cfg(windows)] fn load_self() -> Option<~[u8]> { + use str::OwnedStr; + unsafe { use os::win32::fill_utf16_buf_and_decode; fill_utf16_buf_and_decode(|buf, sz| { @@ -967,6 +980,7 @@ impl MemoryMap { /// `ErrZeroLength`. pub fn new(min_len: uint, options: &[MapOption]) -> Result<MemoryMap, MapError> { use libc::off_t; + use cmp::Equiv; if min_len == 0 { return Err(ErrZeroLength) |
