about summary refs log tree commit diff
path: root/src/libcore/os.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-4/+2
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-10/+9
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13auto merge of #6387 : brson/rust/unstable, r=brsonbors-2/+2
r? @pcwalton * Move `SharedMutableState`, `LittleLock`, and `Exclusive` from `core::unstable` to `core::unstable::sync` * Modernize the `SharedMutableState` interface with methods * Rename `SharedMutableState` to `UnsafeAtomicRcBox` to match `RcBox`.
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-2/+2
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-14/+9
2013-05-11clean up the last bit of warningsCorey Richardson-1/+0
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-2/+2
Fix for #3356
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-0/+9
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-2/+2
2013-05-10core: Use the new `for` protocolAlex Crichton-0/+9
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-2/+2
2013-05-09libcore: rename vec::each(variable) to variable.eachYoungmin Yoo-2/+2
2013-05-08libcore: Fix tests.Patrick Walton-1/+1
2013-05-08libcore: Remove mutable fields from os and ptrPatrick Walton-1/+4
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-2/+153
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-03rustpkg: Implement install commandTim Chevalier-0/+37
The install command should work now, though it only installs in-place (anything else has to wait until I implement RUST_PATH). Also including: core: Add remove_directory_recursive, change copy_file Make copy_file preserve permissions, and add a remove_directory_recursive function.
2013-05-02Convert most of rust_run_program.cpp to rust (issue #2674).gareth-1/+1
2013-05-01add a higher level glob() function to osJesse Luehrs-0/+83
this could probably use expansion - it just uses all of the default options, which is usually what we want, but not always. maybe add a separate function that takes more options?
2013-04-30core/std: Fix race condition in os::mkdir_recursive testsTim Chevalier-0/+30
Added a change_dir_locked function to os, and use it in the mkdir_recursive tests so that the tests don't clobber each other's directory changes.
2013-04-30allover: numerous unused muts etcNiko Matsakis-9/+8
2013-04-28core: Use a better termination condition in os::mkdir_recursiveTim Chevalier-16/+20
Instead of checking whether the parent is "." or "/", check the number of components. Also, more tests.
2013-04-26core: Move mkdir_recursive from rustpkg into core::osTim Chevalier-0/+35
mkdir_recursive creates a directory as well as any of its parent directories that don't exist already. Seems like a useful thing to have in core.
2013-04-24core: Comments only -- move FIXME to correct locationTim Chevalier-2/+2
2013-04-24libcore: remove @Rng from rand, and use traits instead.Huon Wilson-1/+1
Also, rename RandRes -> IsaacRng, and make the constructors static methods.
2013-04-23Cleanup some mistakes made during rebasing/merging.gareth-1/+1
2013-04-23Remove os::waitpid because:gareth-26/+0
- The return value meant different things on different platforms (on windows, it was the exit code, on unix it was the status information returned from waitpid). - It was undocumented. - There also exists run::waitpid, which does much the same thing but has a more consistent return value and also some documentation.
2013-04-23Fix issue #5976 - HANDLE leaks and undefined/bad behavourgareth-2/+6
on windows.
2013-04-20Replaced many instances of reinterpret_cast with transmuteMatthijs Hofstra-3/+3
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-4/+4
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-41/+41
2013-03-28Removing unused importsAlex Crichton-5/+5
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-20/+20
directives, then items. Resolve them in this order as well.
2013-03-26option: rm functions that duplicate methodsDaniel Micay-9/+6
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-1/+2
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-30/+30
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-22/+22
notation. rs=delifetiming
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-1/+2
2013-03-11Remove uses of logBrian Anderson-20/+18
2013-03-11core: convert asserts to fail_unless!Jeff Olson-1/+1
2013-03-11core: formatting appeasementJeff Olson-3/+5
2013-03-11core: fix broken tests on windowsJeff Olson-3/+2
2013-03-11core: change import of exchange_alloc for win32 os::_list_dirJeff Olson-1/+1
2013-03-11rt/core: port os::list_dir to rust ref #4812Jeff Olson-8/+88
2013-03-11core: rt/core: impl os::env() in rust ref #4812Jeff Olson-8/+56
2013-03-11rt/core: impl os::getcwd() in rust ref #4812Jeff Olson-1/+8
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-6/+6
2013-03-07test: Fix tests.Patrick Walton-2/+4
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-43/+44
2013-03-07libcore: Remove `extern mod { ... }` from libcore. rs=deexterningPatrick Walton-11/+16
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-26/+26
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.