Commit graph

1488 commits

Author SHA1 Message Date
kwantam
ecf248c5e3 fix build infrastructure ; modernize library use
This patch begins the work of modernizing uutils to work with 1.0-ish
Rust. In particular, it

1. Updates to the latest submodules.

2. Convert mkmain.rs, mkuutils.rs, and src/uutils/uutils.rs
   to new slice syntax and use of new io, fs, and path APIs.

3. Convert src/common/util.rs to new io, fs, and path APIs.

4. Convert fmt to use new APIs.
2015-04-18 19:55:32 -04:00
Heather
e526de0079 Merge pull request #532 from ebfe/fix-build
Fix build with rust nightly
2015-03-08 22:14:44 +03:00
Michael Gehring
3529c5d809 Update feature flags 2015-03-08 19:09:41 +01:00
Michael Gehring
9f8fd55b4a Integer type changes 2015-03-08 19:06:30 +01:00
Michael Gehring
bce3382fd2 Closure syntax 2015-03-08 19:06:04 +01:00
Michael Gehring
0d7ac019d1 Update dependencies 2015-03-08 18:45:13 +01:00
Heather
34161ba8c5 Merge pull request #525 from ebfe/fix-warnings
Fix (some) deprecation warnings
2015-02-22 22:08:22 +03:00
Michael Gehring
a5547507af c_str_to_bytes -> CStr::from_ptr 2015-02-22 13:59:57 +01:00
Michael Gehring
eb6594cc91 CString::from_slice -> CString::new 2015-02-22 13:59:57 +01:00
Michael Gehring
3993a2bf90 Update feature flags 2015-02-22 13:59:57 +01:00
Michael Gehring
26568d2021 Update to the new integer suffixes 2015-02-22 13:59:57 +01:00
Michael Gehring
8098d172d7 Update slicing syntax ([] -> [..]) 2015-02-22 13:59:12 +01:00
Michael Gehring
9ae9a48387 feature io -> old_io, path -> old_path 2015-02-22 13:59:12 +01:00
Michael Gehring
4e79a82f46 fix feature warnings 2015-02-22 13:59:12 +01:00
Michael Gehring
50301e63ee env::args return Strings now 2015-02-22 13:59:12 +01:00
Michael Gehring
ec9c8659ea Drop unused imports 2015-02-22 13:59:12 +01:00
Michael Gehring
910fd61070 os::args -> env::args 2015-02-22 13:59:12 +01:00
Michael Gehring
e7b647171f os::set_exit_status(isize) -> env::set_exit_status(i32) 2015-02-22 13:59:12 +01:00
Heather
19bb2e1ccd Merge pull request #530 from ebfe/fix-build
Fix build with alpha 2
2015-02-22 13:25:01 +03:00
Michael Gehring
4d62e8289a collections::BitvSet -> collections::BitSet 2015-02-22 10:31:49 +01:00
Michael Gehring
b6ff2aeeae collections::RingBuf -> collections::VecDeque 2015-02-22 10:29:28 +01:00
Michael Gehring
80f9ef08d2 various integer type changes 2015-02-22 10:27:16 +01:00
Michael Gehring
09b1162912 CString::as_slice_with_nul -> CString::as_bytes_with_nul 2015-02-22 10:06:26 +01:00
Michael Gehring
4ad3e854ac Update dependencies 2015-02-22 09:52:54 +01:00
Heather
b843b5fec4 Merge pull request #528 from ebfe/fix-build
Fix build with rust master
2015-02-13 20:58:45 +03:00
Michael Gehring
e78900e56a new plugin attribute syntax 2015-02-13 16:45:01 +01:00
Heather
c8607e79ff Merge pull request #526 from ebfe/fix-build
Fix build with rust nightly
2015-02-07 15:58:42 +03:00
Michael Gehring
6dd6ff31b3 link against the rand crate from rust-crypto/deps 2015-02-07 10:33:00 +01:00
Michael Gehring
7c617f524b Fix closure syntax 2015-02-07 10:15:16 +01:00
Michael Gehring
932ef2aa3a Update dependencies 2015-02-07 10:15:16 +01:00
Heather
71f3b1923f Merge pull request #524 from ebfe/fix-build
Fix build with rust master
2015-02-06 16:21:10 +03:00
Michael Gehring
d3ff46d0c7 Drop deprecated 'libc' feature flag 2015-02-06 14:10:07 +01:00
Michael Gehring
8021b491f6 fmt: iter::Peekable changes 2015-02-06 14:10:07 +01:00
Michael Gehring
9c75b2ddab link against the libc from rust-crypto/deps/libc 2015-02-06 14:10:07 +01:00
Michael Gehring
5e70473a2b std::path -> std::old_path 2015-02-06 13:45:45 +01:00
Heather
f5246aba3d Merge pull request #523 from ebfe/fix-build
Fix build with rust master
2015-02-04 09:11:00 +03:00
Michael Gehring
25232c3697 Fix warnings 2015-02-03 23:59:48 +01:00
Michael Gehring
3eb5a814a3 Fix most unstable feature warnings 2015-02-03 23:54:37 +01:00
Michael Gehring
db8506532e derive(Show) -> derive(Debug) 2015-02-03 22:42:36 +01:00
Michael Gehring
d89d9ca73b Various functions in std::str return Result instead of Option now 2015-02-03 22:32:30 +01:00
Michael Gehring
05709c37d6 Update dependencies 2015-02-03 21:14:42 +01:00
Michael Gehring
3158ac61b6 Merge pull request #522 from Arcterus/fix-stdbuf
Fix typo in stdbuf dependencies (fixes #521)
2015-02-01 22:22:28 +01:00
Arcterus
b01f123050 Fix typo in stdbuf dependencies (fixes #521) 2015-02-01 13:08:54 -08:00
Alex Lyon
9c0ed7236c Merge pull request #517 from keunwoo/keunwoo-fix-address-radix-20150127
od: fix --address-radix interpretation and minor cleanups
2015-02-01 12:13:37 -08:00
Heather
6b548acc6c Merge pull request #519 from ebfe/fix-build
Fix build with rust master
2015-01-29 11:26:02 +03:00
Michael Gehring
906d3e4ec5 write -> write_all 2015-01-29 08:47:43 +01:00
Michael Gehring
d187dc574b std::io -> std::old_io 2015-01-29 08:45:37 +01:00
Michael Gehring
3bff810837 Update dependencies 2015-01-29 08:17:05 +01:00
Keunwoo Lee
f6a07663e8 od: proper interpretation of -A flag
Prior to this CL, --address-radix was being used to determine the format
of the output bytes.  This was wrong: this flag controls the printing of
the address (in the POSIX spec for od, this is called the "input offset
base"), not the printing of the content bytes.
2015-01-27 21:51:28 -08:00
Keunwoo Lee
55be34a2c4 od: clean up fname usage
+ rm superfluous clone
+ rm superfluous mut variable
2015-01-27 21:51:28 -08:00