Commit graph

6891 commits

Author SHA1 Message Date
Heather
8aa9a7a5e2 Merge pull request #145 from Arcterus/fixes
du: fix for latest Rust
2014-03-26 05:17:55 +03:00
Arcterus
b55b459e80 du: fix for latest Rust 2014-03-25 18:57:10 -07:00
Arcterus
af5401e952 Merge pull request #144 from Ryman/master
Implement uptime for OSX (probably some other unix too)
2014-03-25 13:15:47 -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
4124ce6679 Silence dead code warnings for Constants 2014-03-25 16:01:56 +00:00
Kevin Butler
4b857105c9 Fix OSX crash for uptime 2014-03-25 15:59:29 +00:00
Arcterus
0192235a1a md5sum: forgot to add license 2014-03-24 23:37:28 -07:00
Arcterus
bf4b67e8d7 Remove uptime from to-do list 2014-03-24 20:01:54 -07:00
Arcterus
1c47132bc2 md5sum: remove unnecessary variable (thanks @huonw) 2014-03-24 19:56:57 -07:00
Heather
2e124cc778 Merge pull request #143 from Arcterus/md5sum
Implement md5sum (closes #47)
2014-03-25 05:22:36 +03:00
Arcterus
df9a296100 Implement md5sum (closes #47) 2014-03-24 16:53:35 -07:00
Heather
ce6b80001f Merge pull request #142 from alan-andrade/master-fix
Fix master by using Vec and adjusting
2014-03-22 13:44:06 +03:00
Alan Andrade
10d7a0cc9c Fix master by using Vec and adjusting 2014-03-22 02:17:27 -07:00
Heather
2e29f4cc79 Merge pull request #138 from dpc/master
Rebase my changes on top of master.
2014-03-19 22:08:35 +03:00
Dawid Ciężarkiewicz
a93023372c Use .unwrap() and &byte for cleaner code.
(cherry picked from commit 0a91290d91)
2014-03-19 11:40:52 -07:00
Dawid Ciężarkiewicz
893ab7c761 Increase buffers for boost in performance.
(cherry picked from commit 4b702bc952)
2014-03-19 11:40:46 -07:00
Dawid Ciężarkiewicz
a42bdea8ac Use Buffered input/output where it makes sense.
(cherry picked from commit c084bb1568)
2014-03-19 11:40:42 -07:00
Dawid Ciężarkiewicz
3ab1865177 Use raw stdin/stdio.
Buffered one is expensive and serves no purpose.

(cherry picked from commit ace707d504)
2014-03-19 11:40:37 -07:00
Dawid Ciężarkiewicz
fb8e502980 Add vim formatting comment.
Because otherwise, I can't do any work. ;)

(cherry picked from commit 05d026d0d0)
2014-03-19 11:40:32 -07:00
Dawid Ciężarkiewicz
49f3f0ea32 Fix compilation for latest rustc.
Some warning are still there.

(cherry picked from commit 5c690b33d6)

Conflicts:
	cp/cp.rs
2014-03-19 11:38:32 -07:00
Heather
d3851a5cf2 Merge pull request #135 from huonw/du
Correctness & code-style in du
2014-03-19 11:34:47 +03:00
Huon Wilson
6072554512 du: make it correct.
Previously, this was handling symlinks wrong (i.e. `du` was following
them, not just looking at them as files). Handling them correctly
requires using `lstat`.

Also, this would abort when reading a file with invalid permissions (or
one that doesn't exist... as a link target of a symlink), rather than
just warning and continuing.

Also, this patch reduces the number of `stat`s done per file to exactly
one (i.e. the minimum).
2014-03-19 18:45:20 +11:00
Huon Wilson
3c1466c4ed du: remove some clones. 2014-03-19 18:12:43 +11:00
Huon Wilson
a4c40503be du: use multi-line strings and print the actual name, not a literal du. 2014-03-19 17:57:35 +11:00
Huon Wilson
4d9c71e541 du: be dryer when extracting the --max-depth arg.
There's no need to repeat the two checks for `from_str` when we can just
do it preemptively.
2014-03-19 17:56:40 +11:00
Heather
dc24cc1776 Merge pull request #133 from jlneder/master
Implement uptime
2014-03-18 19:15:19 +03:00
José Neder
ef4a5e965d Implement uptime
Move utmp struct from users to common/utmpx.rs
2014-03-18 09:42:44 -03:00
José Neder
786b39019b Fix master by removing extra crate,
and using max method for comparing floats
2014-03-18 09:26:42 -03:00
Arcterus
a75e42d4db Merge pull request #130 from alan-andrade/fix_master
Fix master by comparing against slices, not ~
2014-03-13 16:55:34 -07:00
Alan Andrade
1dc2cd3a0f Fix master by comparing against slices, not ~ 2014-03-13 16:12:28 -07:00
Arcterus
a10cb64f7e Merge pull request #128 from Doppp/expand_in_progress
expand in progress
2014-03-08 22:55:07 -08:00
Daryl Yeo
8c2f980130 expand in progress 2014-03-08 22:38:47 -08:00
Arcterus
ce6423cc14 Merge pull request #125 from Heather/master
allow uppercase variables for du
2014-03-05 22:50:26 -08:00
Heather
9b9def6891 allow uppercase variables for du 2014-03-06 10:48:32 +04:00
Arcterus
3356f73c68 Merge pull request #124 from alan-andrade/patch-5
stty in progress
2014-03-01 18:19:21 -08:00
Alan Andrade
278d21d299 stty in progress 2014-03-01 17:21:15 -08:00
Heather
477065b507 Merge pull request #123 from Arcterus/mkdir
mkdir: improve error handling (closes #121)
2014-03-01 09:18:45 +03:00
Arcterus
af60356f79 mkdir: improve error handling (closes #121) 2014-02-28 13:36:58 -08:00
Heather
b8cd414dd7 Merge pull request #122 from Arcterus/paste
Implemented paste
2014-02-28 21:59:31 +03:00
Arcterus
e442cadbaf Remove paste from the to-do list 2014-02-28 10:13:54 -08:00
Arcterus
2a875c0f49 paste: make MUCH faster and fix a couple bugs 2014-02-28 10:11:24 -08:00
Arcterus
fac630d07c Add paste (closes #120) 2014-02-28 09:19:32 -08:00
Heather
b68dd16d56 Merge pull request #119 from Arcterus/tac
tac: fix an issue with --separator
2014-02-28 08:41:08 +03:00
Arcterus
6b6bd77e2e tac: fix an issue with --separator 2014-02-27 21:34:43 -08:00
Heather
c01fc5392a Merge pull request #118 from Arcterus/tac
Implement tac (closes #117)
2014-02-27 23:18:34 +03:00
Arcterus
2d64fd7d50 Remove a couple of programs from the to-do list 2014-02-27 11:05:47 -08:00
Arcterus
c21dcc50dc Implement tac (closes #117) 2014-02-27 10:59:51 -08:00
Heather
c94c04dc90 Merge pull request #115 from Arcterus/master
Fix for latest Rust
2014-02-27 07:09:48 +03:00