nix/test
Homu 3612b35753 Auto merge of #416 - philippkeller:master, r=posborne
add unistd::getcwd and unistd::mkdir

As a (late) followup of [this withdrawn PR](https://github.com/rust-lang/libc/pull/326) I have added getcwd (wrapper around `libc::getcwd`) and mkdir (wrapper around `libc::mkdir`) and added testing.

A few notes:

 - I'm new to rust so I would appreciate some pair of eyes testing the code, plus I'm open for revision of code or general remarks about my coding style
 - I have run the tests both on OSX as on Linux (Ubuntu)
 - I've run `clippy` to see if my code is well formatted, however clippy issues many warnings about the project. I think I didn't add any more warnings
 - the methods in unistd are not documented so I also left out the documentation of `getcwd` and `mkdir`, although I think it'd probably be good to add some documentation, especially some example code how to use the methods
 - the base idea of `getcwd` is [taken from std](https://github.com/rust-lang/rust/blob/1.9.0/src/libstd/sys/unix/os.rs#L95-L119), should I mention that somewhere?
2016-09-08 01:26:43 +09:00
..
sys Auto merge of #332 - kamalmarhubi:fork-enum, r=fiveop 2016-03-31 15:41:38 +09:00
test_fcntl.rs linux: Add splice(2), tee(2), vmsplice(2) 2016-02-14 23:41:57 -05:00
test_mount.rs Get rid of a few warnings during compilation of tests 2016-08-15 21:13:26 +02:00
test_mq.rs Replace ffi module by libc functions in mqueue.rs 2016-08-31 20:18:48 +02:00
test_net.rs Add test for if_nametoindex 2016-01-27 17:18:58 -05:00
test_nix_path.rs Large cleanup, mostly of socket functions 2015-02-25 12:24:43 -08:00
test_poll.rs Use libc in poll.rs 2016-08-31 20:17:55 +02:00
test_sendfile.rs linux: Add sendfile(2) 2016-02-12 21:12:14 -05:00
test_signalfd.rs Get rid of a few warnings during compilation of tests 2016-08-15 21:13:26 +02:00
test_stat.rs update libc to 0.2.2 2016-01-18 21:29:38 -08:00
test_unistd.rs fixed indentation 2016-09-07 08:21:56 +02:00
test.rs linux: Add splice(2), tee(2), vmsplice(2) 2016-02-14 23:41:57 -05:00