summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-15add a CHANGELOG entry for pipe2Jack O'Connor
2016-09-15make unsafe code more fine-grained in pipe2Jack O'Connor
2016-09-14call pipe2 directly on LinuxJack O'Connor
2016-09-10Auto merge of #425 - fiveop:release_procedure, r=kamalmarhubiHomu
Small fixes to RELEASE_PROCEDURE.md I decided against adding a line for a local test of the commit, because we have the full build in the CI and you might miss something locally anyway.
2016-09-10Auto merge of #424 - fiveop:bump_0.7.1-dev, r=kamalmarhubiHomu
Bump to 0.7.1-pre
2016-09-09Small fixes to RELEASE_PROCEDURE.mdPhilipp Matthias Schaefer
2016-09-09Bump to 0.7.1-prePhilipp Matthias Schaefer
2016-09-10Auto merge of #423 - fiveop:release_0.7.0, r=kamalmarhubiHomu
Release v0.7.0
2016-09-09Release v0.7.0Philipp Matthias Schaefer
2016-09-09Add note to CHANGELOG.md for PR #422.Philipp Matthias Schaefer
2016-09-10Auto merge of #422 - sdroege:msg-cmsg-cloexec, r=posborneHomu
Add MSG_CMSG_CLOEXEC to MsgFlags on Linux Fixes #421.
2016-09-09Add MSG_CMSG_CLOEXEC to MsgFlags on LinuxSebastian Dröge
Fixes #421.
2016-09-09Auto merge of #420 - philippkeller:patch-1, r=fiveopHomu
Update CHANGELOG for pull request 416 As [requested by @fiveop](https://github.com/nix-rust/nix/pull/416#issuecomment-245709257)
2016-09-09described changes done in #416Philipp Keller
2016-09-09Auto merge of #419 - fiveop:libc_version_release, r=posborneHomu
Mention the libc version changes in RELEASE_PROCEDURE.md r? @nix-rust/nix-maintainers
2016-09-08Mention the libc version changes in RELEASE_PROCEDURE.mdPhilipp Matthias Schaefer
2016-09-08Auto merge of #418 - kamalmarhubi:release-procedure, r=posborneHomu
Expand on release procedure
2016-09-07Expand on release procedureKamal Marhubi
2016-09-08Auto merge of #416 - philippkeller:master, r=posborneHomu
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-07fixed indentationPhilipp Keller
2016-09-07resolving all remarks by @posborne, fixed max line length=99, fixed rust ↵Philipp Keller
1.2.0 error in doc-test
2016-09-06rust 1.2.0 doesn't support expect, switched to proper match blockPhilipp Keller
2016-09-06added documentation for getcwd and mkdir, changed test so that it compares ↵Philipp Keller
against std::env::current_dir
2016-09-06fixed the trailing whitespacesPhilipp Keller
2016-09-06made it running with rust 1.2.0: the code for getcwd is now an exact copy of ↵Philipp Keller
the implementation in std
2016-09-05implemented mkdir, extended getcwd test to include long path namesPhilipp Keller
2016-09-03added test for getcwd, still not complete (needs to check also longer ↵Philipp Keller
directory names, need to be created with mkdir first which doesn't exist yet)
2016-09-02implemented getcwd (returning Result<PathBuf>, reconciling all calls to ↵Philipp Keller
expect into proper try handling), needs testing still
2016-09-01Auto merge of #392 - fiveop:less_ffi, r=@fiveopHomu
Replace ffi module by libc functions in mqueue.rs This is almost finished. I still need to check if I introduced any breaking changes by changing signatures. I would want to record this in the change log, however, for that we still need to merge #391. - [x] update change log - [x] run rustfmt on `src/mqueue.rs`
2016-09-01Auto merge of #399 - fiveop:less_ffi_poll, r=posborneHomu
Use libc in poll.rs I'll add a change log commit, once this is reviewed.
2016-08-31Document changes to poll.rs in CHANGELOG.mdPhilipp Matthias Schaefer
2016-08-31Run rustfmt on mqueue.rsPhilipp Matthias Schaefer
2016-08-31Describe changes to mqueue in change logPhilipp Matthias Schaefer
2016-08-31Replace ffi module by libc functions in mqueue.rsPhilipp Matthias Schaefer
2016-08-31Use libc in poll.rsPhilipp Matthias Schaefer
2016-08-30Auto merge of #402 - fiveop:less_ffi_sched, r=@posborneHomu
Replace parts of ffi module by libc functions ind sched.rs Not exporting `CpuMask` anymore, should be the only API change of this PR. Since the type is not used in any other exported signature or type, I think it is fine to no longer export it. r? @kamalmarhubi @posborne
2016-08-29Replace parts of ffi module by libc functions in sched.rsPhilipp Matthias Schaefer
2016-08-28Updated CHANGELOG.md for #405 and #407.Philipp Matthias Schaefer
Closes #408.
2016-08-27Auto merge of #407 - untitaker:fullfsync-fcntl, r=fiveopHomu
Add FcntlArg::F_FULLFSYNC https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html
2016-08-26Add FcntlArg::F_FULLFSYNCMarkus Unterwaditzer
https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsync.2.html
2016-08-26Auto merge of #405 - murarth:clone-fdset, r=fiveopHomu
Implement `Clone` for `FdSet` on Mac/iOS
2016-08-25Implement `Clone` for `FdSet` on Mac/iOSMurarth
2016-08-16Auto merge of #401 - fiveop:fix_warnings, r=posborneHomu
Get rid of a few warnings during compilation of tests
2016-08-15Get rid of a few warnings during compilation of testsPhilipp Matthias Schaefer
2016-08-12Auto merge of #400 - asomers:master, r=posborneHomu
Update CHANGELOG for pull request 397
2016-08-11Auto merge of #397 - fiveop:asomers_master, r=@posborneHomu
Fix nix on FreeBSD (rebased on master)
2016-08-11Auto merge of #398 - posborne:fix-docker-builds, r=fiveopHomu
ci: fix docker container check Newer version of docker no longer have the /.dockerinit file present when the container is executing, so that is no longer an option. When executing in a container, we do know that we will be executing as pid 1 -- this is probably not ever the case on the host system. r? @fiveop
2016-08-10ci: fix docker container checkPaul Osborne
Newer version of docker no longer have the /.dockerinit file present when the container is executing, so that is no longer an option. When executing in a container, we do know that we will be executing as pid 1 -- this is probably not ever the case on the host system. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-08-10Fix nix on FreeBSD amd64Alan Somers
On Linux, the cmsg_len field of struct cmsghdr has type size_t, but it has size socklen_t on POSIX-compliant operating systems. So on POSIX-compliant 64-bit operating systems, struct cmsghdr has padding gaps that aren't present on Linux. Most of the issues fixed by this commit related to those gaps. src/sys/socket/ffi.rs Fix the type of the cmsg_data field so the struct layout will be correct. src/sys/socket/mod.rs In CmsgIterator.next, only return a single file descriptor. sendmsg(2) can only stuff a single file descriptor into each cmsg. In cmsg_align, fix the rounding calculation, and eliminate a division instruction. Add a missing cmsg_align call in ControlMessage.len In ControlMessage.encode_into, add any necessary padding bytes between the cmsghdr and the data. In sendmsg, fix some len<->capacity confusion.
2016-08-10Fix the sockopt_impl matcher rule order.Alan Somers
Rules for generic types were located above rules for specific types, so the rules for specific types never got matched. This caused the sys::socket::sockopt::test::can_get_listen_on_tcp_socket test to fail on FreeBSD. The solution is to put all of the generic rules at the bottom.