Commit graph

19 commits

Author SHA1 Message Date
Michael Gehring
96c32a70a5 remove use of deprecated to_err_msg 2014-06-15 12:51:03 +02:00
Brian Anderson
bad19f6016 Remove tail return statements.
Per review feedback.
2014-06-11 21:48:38 -07:00
Brian Anderson
0ee4fb0576 Handle exit status more consistently. #211
This changes the `uumain` functions to return the exit code as `int`.

It does not eliminate all calls to `os::set_exit_status` and `libc::exit`.
2014-06-11 21:48:38 -07:00
Michael Gehring
448f4d6d70 remove remaining uses of ~[T] 2014-05-30 10:40:36 +02:00
Michael Gehring
1bac39d509 silence dead code warnings in multicall build 2014-05-29 08:58:06 +02:00
Michael Gehring
13f01e4c11 add uutils multicall binary 2014-05-28 14:22:52 +02:00
Michael Gehring
a70f858f12 Remove the unnecessary conversion of os::args() ret val
Missed these in 46b9d6d78e
2014-05-25 11:55:28 +02:00
Michael Gehring
1bf7569084 StrBuf was renamed to String 2014-05-25 11:20:52 +02:00
Michael Gehring
0ce3f0f4e1 Adapt to removal of ~str from libstd. 2014-05-23 14:28:40 +02:00
Michael Gehring
577e4baef9 Update for getopts changes 2014-05-17 12:32:14 +02:00
Michael Gehring
bf26ea12b2 transmute moved to std::mem 2014-05-16 11:17:29 +02:00
Michael Gehring
4b9c8279ce os::args returns Vec<~str> now 2014-05-16 11:17:23 +02:00
Arcterus
4e8703e04f Fix everything but md5sum (blocked on rust-crypto) for latest Rust 2014-04-25 22:03:08 -07:00
Arcterus
e898d37736 Update for latest Rust 2014-03-31 09:40:21 -07:00
Kevin Butler
cf136e1ff4 Try to read BOOT_TIME from utmpx if /proc/uptime fails. 2014-03-25 17:28:31 +00:00
Kevin Butler
25ee699756 Remove unused import. 2014-03-25 16:16:38 +00:00
Kevin Butler
f3c4657a94 Truncate load averages to 2 decimal places 2014-03-25 16:15:14 +00:00
Kevin Butler
4b857105c9 Fix OSX crash for uptime 2014-03-25 15:59:29 +00:00
José Neder
ef4a5e965d Implement uptime
Move utmp struct from users to common/utmpx.rs
2014-03-18 09:42:44 -03:00