summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-27unistd: add documentation for setpgidPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27unistd: add docs for getpid/getppidPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27unistd: add better docs for fork()Paul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-27error: add documentation for nix::ErrorPaul Osborne
Signed-off-by: Paul Osborne <paul.osborne@smartthings.com>
2016-10-28Auto merge of #448 - dgreid:setresuid, r=posborneHomu
Add setresuid and setresgid These were both recently added to libc, add wrappers. Signed-off-by: Dylan Reid <dgreid@chromium.org>
2016-10-26Add setresuid and setresgidDylan Reid
These were both recently added to libc, add wrappers. Signed-off-by: Dylan Reid <dgreid@chromium.org> --- Changes since v2: Updated function comments and CHANGELOG Changes since v1: Add function comments, update CHANGELOG
2016-10-25Auto merge of #446 - kamalmarhubi:bind-mount-in-ci, r=posborneHomu
mount: Run test_mount_bind in CI Looks like Travis allows bind mounts in their container infra now.
2016-10-24mount: Run test_mount_bind in CIKamal Marhubi
Looks like Travis allows bind mounts in their container infra now.
2016-10-25Auto merge of #443 - asomers:mkstemp, r=posborneHomu
use tempfile in test_pwrite Use tempfile in test_pwrite so as not to pollute the source directory.
2016-10-25Auto merge of #444 - posborne:rust-1.7-minimum-supported-version, r=kamalmarhubiHomu
ci: drop official support for rustc < 1.7.0 Supporting older versions of rust is causing CI to fail and is a somewhat constant support burden with questionable value. 1.7.0 is the oldest I have seen that people have had a requirement on supporting in recent history. It may make sense to work toward a more official policy on what version of rust we will support in the future. Users of older version of rust are, of course, welcome to use older versions of nix and everything else in the ecosystem. r? @kamalmarhubi @fiveop
2016-10-24cargo: bump version to 0.8.0-prePaul Osborne
Also, changed author from Carl to being more broad (as we have many contributors and maintainers now). This matches what is used for crates in the rust-lang org. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-24ci: drop official support for rustc < 1.7.0Paul Osborne
Supporting older verisons of rust is causing CI to fail and is a somewhat constant support burden with questionable value. 1.7.0 is the oldest I have seen that people have had a requirement on supporting in recent history. It may make sense to work toward a more official policy on what version of rust we will support in the future. Users of older version of rust are, of course, welcome to use older versions of nix and everything else in the ecosystem. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-10-23use tempfile in test_pwrite.Alan Somers
2016-10-22Temporarily allow beta failures till 1.13.0-beta.3 or later is releasedPhilipp Matthias Schaefer
2016-10-20Merge pull request #415 from asomers/evfiltKamal Marhubi
Move kqueue-related definitions from nix to libc
2016-10-13Merge github.com:nix-rust/nix into evfiltAlan Somers
2016-10-12Bring CHANGELOG.md up to datePhilipp Matthias Schaefer
2016-10-02Update CHANGELOG for PR #415Alan Somers
2016-10-02Use libc_bitflags! for EventFlagAlan Somers
Don't use it for FilterFlag, because it triggers recursion limit reached error
2016-10-02Auto merge of #428 - philippkeller:mkstemp, r=fiveopHomu
Add Mkstemp (fixed for rust 1.2) I fixed @antifuchs addition of `mkstmp` in https://github.com/nix-rust/nix/pull/365 by making it compile in Rust 1.2 and adding documentation. A few remarks: - made it working with Rust 1.2 which needed `to_bytes_with_nul()`. I think the implementation is memory safe but would like to have a pair of eyes checking that - replaced Path by PathBuf so it's more in line with getcwd - I didn't move it into another module. If this still the consensus then I would like to do that but in a separate PR (probably moving all stdio methods out) - it's true that unistd doesn't need mkstmp since there is the crate tempdir and tempfile, but I'd love to see this here for completeness
2016-09-28Apparently not all mkstemp implementation require the X at the end (despite ↵Philipp Keller
its documentation\!), checking the failure of a directory now
2016-09-28Add debug_assert ensuring popped byte is nulPhilipp Keller
2016-09-27Remove double copy of array (to_owned() and PathBuf::from), use ↵Philipp Keller
OsString::from_vec on existing path var rather than construct string from pointer
2016-09-27test also that mkstemp fails when there's no X at the endPhilipp Keller
2016-09-27move path outside closure to avoid use after free, restructed for easier ↵Philipp Keller
readability
2016-09-18struct KEvent should wrap an inner libc::kevent structureAlan Somers
2016-09-19Auto merge of #430 - tessel:master, r=posborneHomu
Removes SIGSTKFLT when cross-compiling to MIPS. This is the only failing error when cross compiling to Tessel, which is a MIPS-based architecture. Apparently libc does not have SIGSTKFLT (Term Stack fault on coprocessor) on this system, and indeed it does not have a coprocessor. This commit should preserve the semantics for all other architectures. Potentially this can be inverted in the future if more platforms are added to only *whitelist* ARM, x86, x86_64, but I thought this conditional would suffice.
2016-09-17Removes SIGSTKFLT when cross-compiling to MIPS.Tim Ryan
2016-09-18Auto merge of #429 - Idolf:master, r=fiveopHomu
Fixed a bug where UnixAddr::new_abstract forgot to count the null-byte.
2016-09-18Auto merge of #427 - oconnor663:pipe2, r=fiveopHomu
call pipe2 directly on Linux A first shot at fixing https://github.com/nix-rust/nix/issues/414. This approach keeps the old implementation for platforms other than `notbsd`, because `libc` only exposes `pipe2` in the `notbsd` module. I've tested this by hand on my Linux machine in a couple ways: - Create a toy program that opens a pipe and passes it to `cat`, which hags if `O_CLOEXEC` doesn't get set properly. Confirm that it doesn't hang, but that it does if I pass `0` as the flags to `libc::pipe2`. - Delete the new implementation entirely, and delete the `cfg` guards on the old implementation, and confirm that above is still true. I haven't actually tested a cross compilation build though. Is there a standard way to do that?
2016-09-17Fixed a bug where UnixAddr::new_abstract forgot to count the null-byte.Mathias Svensson
2016-09-17Auto merge of #410 - fiveop:epoll_create1, r=posborneHomu
Add epoll_create1 In order to get @kubo39's PR #384 forward, I cleaned up the commit history a bit and added `EpollEvent` back. Since this module is used by mio, maybe @carllerche could comment on these changes.
2016-09-16fixing build for aarch64-unknown-linux-gnu (which expects the pointer to be ↵Philipp Keller
*mut u8 whereas x86_64 and i686 expect it to be *mut i8)
2016-09-16made it running with rust 1.2, added documentation to mkstempPhilipp Keller
2016-09-15add a GitHub link to the CHANGELOGJack O'Connor
2016-09-15add a CHANGELOG entry for pipe2Jack O'Connor
2016-09-15Rename EpollEventKind to EpollFlags, according to convention.Philipp Matthias Schaefer
2016-09-15Add EpollCrateFlags bitflag type.Philipp Matthias Schaefer
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)