Jordy Dickinson
8705d95ae9
Update base64 to latest rust
2014-04-25 13:38:09 -04:00
Arcterus
6ba4a81d5c
Merge pull request #158 from PeteJodo/master
...
Fixed most issues caused by libc being moved from std to it's own crate.
2014-04-08 07:54:48 -07:00
petejodo
e17adf9aa9
Accidentally removed an exclamation for crate_id in echo. Put it back.
2014-04-08 09:37:17 -04:00
petejodo
27ed81322c
Fixed most issues caused by libc being moved from std to it's own crate.
...
I just did a quick pass and fixed a majority of the simple issues but
there are still some problems with the following utils:
id
md5sum
tee
uptime
users
whoami
2014-04-07 18:43:34 -04:00
Arcterus
9764c3220a
Merge pull request #157 from Fiedzia/kill-cleanup
...
kill: pass params directly to show_error macro
2014-04-03 15:14:43 -07:00
Arcterus
85bd2c2aee
Merge pull request #156 from Fiedzia/hostid
...
implement hostid
2014-04-03 15:14:32 -07:00
Maciej Dziardziel
5541e6674b
pass params directly to show_error macro
2014-04-03 22:37:14 +01:00
Maciej Dziardziel
fda88ec9c6
implement hostid
2014-04-03 22:31:46 +01:00
Arcterus
5ddb9d0e3c
Merge pull request #153 from Fiedzia/kill-ng
...
implement kill
2014-04-03 09:58:18 -07:00
Maciej Dziardziel
8f4d9ea42e
implement kill
2014-04-03 16:30:39 +00:00
Arcterus
610da56b68
Merge pull request #152 from joaoxsouls/master
...
update uname: use push_str instead of + for appending
2014-04-02 19:41:16 -07:00
joaoxsouls
4dbe7860d0
update uname: use push_str instead of + for appending
2014-04-03 03:25:58 +01:00
Arcterus
91590b24f7
Merge pull request #150 from joaoxsouls/master
...
implement uname (closes #149 )
2014-04-02 17:21:08 -07:00
joaoxsouls
677caaaec0
implement uname
2014-04-03 01:18:39 +01:00
Jordi Boggiano
8c5419bdcd
Merge pull request #148 from Arcterus/master
...
Update for latest Rust
2014-03-31 19:31:18 +02:00
Arcterus
e898d37736
Update for latest Rust
2014-03-31 09:40:21 -07:00
Heather
7201e29536
Merge pull request #147 from Arcterus/fold
...
Implement fold (closes #146 )
2014-03-27 05:35:17 +03:00
Arcterus
dc29eb5928
Implement fold ( closes #146 )
2014-03-26 18:35:24 -07:00
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