Michael Gehring
22743f04ae
Remove use of raw bare pointers (*T -> *const T)
2014-07-01 02:17:35 +02:00
Vsevolod Velichko
c7e93c009e
realpath implementation
2014-06-29 23:57:54 +04:00
Arcterus
1f6935a682
common: import Mac-specific things in one statement
2014-06-19 00:53:24 -07:00
Michael Gehring
eb6c56eead
c_types: remove unused import on linux
2014-06-19 09:39:19 +02:00
Oly Mi
b44f47d7f7
Merge pull request #268 from Arcterus/id-group-mac-fix
...
Fix id and groups for Macs. Also add dependency information.
2014-06-19 11:23:44 +04:00
Arcterus
afe56a95e9
common: make libc reference in util look for the libc in util
2014-06-18 20:19:50 -07:00
Arcterus
7866f967ef
common: fix for Linux
2014-06-18 17:24:56 -07:00
Arcterus
ce3b45b503
common: make get_group_list work for all users on Macs
2014-06-18 17:21:17 -07:00
Arcterus
b26b874829
common: remove extra cast
2014-06-17 20:51:59 -07:00
Arcterus
cf2d7a3bb7
Fix id and groups for Macs. Also make every util depend on common
2014-06-17 20:47:29 -07:00
Michael Gehring
c80fdc1a73
c_types: make get_groups/get_group_list public
2014-06-17 14:32:31 +02:00
Michael Gehring
d66679ccf8
c_types: rework group()
...
Fixes #236
2014-06-17 12:31:56 +02:00
Vsevolod Velichko
fcd05aca8d
Use gid_t instead of uid_t for groups
2014-06-17 02:07:16 +04:00
Vsevolod Velichko
6efcc02c39
Common function to get user group info
2014-06-17 02:05:36 +04:00
Arcterus
9f78e46484
Merge pull request #254 from ebfe/groups
...
c_types: handle errors from getgroups()/getgrouplist()
2014-06-16 13:54:44 -07:00
Michael Gehring
d22be16932
c_types: handle errors from getgroups()/getgrouplist()
2014-06-16 22:24:09 +02:00
Michael Gehring
b39cf18418
c_types: use libc::{uid_t,gid_t} where appropriate
2014-06-16 21:04:56 +02:00
Michael Gehring
66c364c75d
c_types: fix c_group (struct group) memory layout
2014-06-16 20:05:51 +02:00
Michael Gehring
0956ab8804
c_types: fix c_passwd (struct passwd) memory layout on linux
2014-06-15 20:18:30 +02:00
Brian Anderson
4731928558
Fix typo
2014-06-11 21:48:38 -07:00
Brian Anderson
8fbfe24176
Make show_error! not set the exit code. #211
2014-06-11 21:48:38 -07:00
Brian Anderson
962a6bbf2f
Get test suite passing again by tweaking error handling in mkdir
...
Replace `show_error!` with Result<(), int> and `display_error!`
2014-06-11 21:48:38 -07:00
Michael Gehring
1bf7569084
StrBuf was renamed to String
2014-05-25 11:20:52 +02:00
Michael Gehring
577e4baef9
Update for getopts changes
2014-05-17 12:32:14 +02:00
Arcterus
4e8703e04f
Fix everything but md5sum (blocked on rust-crypto) for latest Rust
2014-04-25 22:03:08 -07: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
Maciej Dziardziel
8f4d9ea42e
implement kill
2014-04-03 16:30:39 +00:00
joaoxsouls
677caaaec0
implement uname
2014-04-03 01:18:39 +01: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
4124ce6679
Silence dead code warnings for Constants
2014-03-25 16:01:56 +00:00
Arcterus
df9a296100
Implement md5sum ( closes #47 )
2014-03-24 16:53:35 -07:00
Alan Andrade
10d7a0cc9c
Fix master by using Vec and adjusting
2014-03-22 02:17:27 -07:00
José Neder
ef4a5e965d
Implement uptime
...
Move utmp struct from users to common/utmpx.rs
2014-03-18 09:42:44 -03:00
Arcterus
c21dcc50dc
Implement tac ( closes #117 )
2014-02-27 10:59:51 -08:00
Arcterus
8cf617d08f
Fix for latest Rust
2014-02-26 19:35:50 -08:00
Alan Andrade
8127d8b43d
id and groups share functions
2014-02-25 23:42:37 -08:00
Alan Andrade
b6018f38e8
whoami and id use c_types
2014-02-23 22:51:29 -08:00
Alan Andrade
de21ff4c2f
Move util.rs to common
2014-02-23 22:50:34 -08:00