Roy Ivy III
f0b0e3b867
change ~ reorganize code files
2020-04-14 13:46:18 -05:00
Joseph Crail
ca1074201f
Split utility files into separate library.
...
Everything in src/common has been moved to src/uucore. This is defined
as a Cargo library, instead of directly included. This gives us
flexibility to make the library an external crate in the future.
Fixes #717 .
2015-11-24 22:20:27 -05:00
Nathan Ross
b20b2cca19
update uses of libc 0.1.x and deprecated stdlib uses
2015-11-23 02:04:15 -05:00
Joseph Crail
b089831ea0
Switch over to internal canonicalize().
...
The method, fs::canonicalize(), is unstable and can't be used for stable
builds. We already have our own implementation of canonicalize(), which
supports more options than the Rust library implementation.
2015-07-31 18:55:33 -04:00
Joseph Crail
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Peter Atashian
47f82f0de2
Various Windows fixes
...
Improve handling of unicode on Windows
Disable a few crates on Windows that abuse unix APIs too much
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-07-19 20:25:48 -04:00
Joseph Crail
01b0d5da1c
Remove unused attribute.
2015-07-05 22:36:34 -04:00
Remi Rampin
dc40480e6e
Switch wait_or_timeout() to f64
2015-06-30 18:44:32 -04:00
Remi Rampin
cce3d5171d
ChildExt for send_signal() and wait_or_timeout()
2015-06-30 18:42:51 -04:00
Remi Rampin
13f5994e15
Rename time.rs to parse_time.rs
...
Conflicts with crate time.
2015-06-30 18:42:51 -04:00
Joseph Crail
d558e37288
Add macro to manually flush a writer.
...
I built upon the pipe_* macros, adding pipe_flush!() to flush an
optional writer (default to stdout if no writer is given).
2015-05-23 03:31:42 -04:00
Joseph Crail
7d71dfbbf4
Fix kill.
2015-05-17 15:26:52 -04:00
Joseph Crail
c93440170d
Fix id.
2015-05-17 14:59:04 -04:00
kwantam
aabbf83d88
fix cut
...
This commit updates `cut` to build on rust nightly.
In addition, it adds support for null input and output delimiters,
and fixes a bug in the `cut_characters()` function that would cause
incorrect output when two adjacent fields were specified in the range
list.
2015-05-11 21:15:39 -04:00
kwantam
7565c27c00
fixed sleep
2015-05-07 18:13:40 -04:00
kwantam
664f7d474e
update chroot (not quite working yet)
2015-04-26 16:12:19 -04:00
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
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
26568d2021
Update to the new integer suffixes
2015-02-22 13:59:57 +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
d89d9ca73b
Various functions in std::str return Result instead of Option now
2015-02-03 22:32:30 +01:00
Michael Gehring
d187dc574b
std::io -> std::old_io
2015-01-29 08:45:37 +01:00
Michael Gehring
fbdf04c072
Replace deprecated slice_{to,from} with slicing syntax
2015-01-24 10:46:28 +01:00
Michael Gehring
782fad4667
int/uint -> isize/usize
2015-01-10 20:40:37 +01:00
Arcterus
a12fd89cb2
chmod, chroot, comm: fix build
2015-01-09 16:51:51 -08:00
Arcterus
4e0360c495
base64, cat: fix build for Rust alpha
2015-01-09 16:16:05 -08:00
Michael Gehring
0a757b957f
Partially fixed build with rust master
...
String::from_raw_buf removal
Deprecated closure syntax
cmp::Ord -> cmp::Ordering
Vec::from_{elem,fn} removal
rand::TaskRng -> rand::ThreadRng
PtrExt::is_not_null removal
to_c_str removal
2015-01-09 09:41:49 +01:00
Michael Gehring
7d8053561e
Use new array syntax
2015-01-08 14:50:03 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Stephan Jaensch
605c107258
Fix deprecation warnings with latest rust nightly
...
- from_str() -> parse()
- into_string() -> to_owned()
2015-01-01 12:14:28 +01:00
Haitao Li
9b67c372b2
Add semicolons to item macros
2014-12-22 10:54:29 +11:00
Michael Gehring
842cc8b14c
Fix build with rust master
2014-12-11 07:51:37 +01:00
Arcterus
31111ac199
Fix most deprecation warnings and remove hacky nohup code
2014-11-28 14:49:22 -08:00
Arcterus
d50d4f54b9
Fix build as well as most deprecation warnings
2014-11-22 13:00:42 -08:00
Michael Gehring
2027a7a981
fix *write*! macro args
2014-11-22 07:30:18 +01:00
Michael Gehring
cb4b5bce29
Remove now invalid format specifiers
2014-11-22 07:30:18 +01:00
skv
737db500a3
update from string for new api
2014-11-17 17:56:00 +03:00
Michael Gehring
f3fc1b72ff
os::errno returns uint now
2014-11-09 16:30:01 +01:00
Michael Gehring
3244416b19
fail! -> panic!
2014-10-30 10:06:47 +01:00
Michael Gehring
e482abb630
static -> const
2014-10-10 18:36:35 +02:00
Michael Gehring
7eefe7003b
Update to the new cfg syntax
2014-10-02 19:55:06 +02:00
Michael Gehring
78c6d0b383
FreeBSD support
2014-09-23 15:40:31 +02:00
Michael Gehring
2ef74e2783
Update for rust RFC 52 changes
2014-09-17 17:16:21 +02:00
Michael Gehring
83974be06f
Add repr(C) to c structs
2014-08-22 12:21:30 +02:00
Arcterus
7e00000098
common/util: make pipe_writeln! use writeln! instead of write!
2014-08-04 20:17:10 -07:00
Michael Gehring
ac77c6da17
Fix deprecation warnings
2014-07-29 08:52:58 +02:00
Arcterus
e80af55700
Fix more bugs to pass Busybox tests
2014-07-24 22:20:03 -07:00
Arcterus
a38ee8a007
Implement timeout ( resolves #364 )
2014-07-21 18:55:52 -07:00