summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-01Return both the fd and the created pathAndreas Fuchs
2016-05-01Remove dependency on Result::expectAndreas Fuchs
2016-05-01Add mkstemp(3)Andreas Fuchs
2016-04-24Auto merge of #357 - arcnmx:exec-void, r=@posborneHomu
Use Void in exec return type Indicates that these methods cannot return successfully. This does introduce a new dependency; an empty enum could be used instead but then you would lose the convenience `unreachable` methods exposed by the `void` crate, and standardizing on one type, etc...
2016-04-24Auto merge of #354 - brianp:fcntl-libc, r=kamalmarhubiHomu
fcntl: Use bindings from libc instead of our own **Un-finished** and looking for help. As #264 was tagged "mentor, good first bug" Ref #264 I couldn't find `F_GET_SEALS`, or `F_ADD_SEALS` in libc. Is this a case where I should be making a PR over there? I'm not sure where exactly to address it in libc.
2016-04-23Auto merge of #347 - fiveop:sigset_enhancement, r=kamalmarhubiHomu
Add SigSet::union and SigSet::clear.
2016-04-22Add SigSet::extend and SigSet::clear.Philipp Matthias Schaefer
2016-04-21Auto merge of #344 - fiveop:clone_flags, r=kamalmarhubiHomu
Allow to specify signal when calling clone. This is my suggestion on how to fix #343.
2016-04-21Allow to specify signal when calling clone.Philipp Matthias Schaefer
2016-04-20fcntl: Use bindings from libc instead of our ownBrian Pearce
2016-04-20Auto merge of #359 - arcnmx:sflags, r=utkarshkukretiHomu
Add some missing SFlags Also reordered just because I wasn't sure where to insert the new ones.
2016-04-20Last few constantsarcnmx
2016-04-19Use constants from libcarcnmx
2016-04-18Add some missing SFlagsarcnmx
2016-04-18Use Void in exec return typearcnmx
2016-04-18Auto merge of #353 - fiveop:nightly_warning, r=kamalmarhubiHomu
Cast function item to function pointer in order to appease compiler. This is necessary because of compiler changes. For further information look at rust-lang/rust#19925. This solves #346. I know that there are other problems with the affected function. We are thinking about how to best pass the arguments to the function and we don't want to define the ffi's ourselves. However, I would like to get the warning out of our tree as soon as possible. We do not need to wait for our polish.
2016-04-17Auto merge of #356 - brianp:mount-libc, r=posborneHomu
mount: Use bindings from libc instead of our own Ref #264 Changing internal usage of `ffi::mount` and `ffi:umount` to make use of libc.
2016-04-16mount: Use bindings from libc instead of our ownBrian Pearce
2016-04-14Cast function item to function pointer in order to appease compiler.Philipp Matthias Schaefer
This is necessary because of compiler changes. For further information look at rust-lang/rust#19925.
2016-04-14Auto merge of #350 - llogiq:clippy, r=posborneHomu
fixed a few clippy warnings Just a few style nits. Hope it'll be useful anyway :smile:
2016-04-14Auto merge of #351 - kamalmarhubi:sleep, r=posborneHomu
unistd: Add sleep(3)
2016-04-13unistd: Add sleep(3)Kamal Marhubi
2016-04-14fixed a few clippy warningsAndre Bogus
2016-04-07Auto merge of #342 - tillarnold:master, r=utkarshkukretiHomu
Add the repository field to Cargo.toml
2016-04-07Add the repository field to Cargo.tomlTill Arnold
2016-04-03Auto merge of #340 - kamalmarhubi:allow-raw-pointer-derive-warning, r=posborneHomu
Fix raw_pointer_derive warning This commit adds a small build script to detect if we need to `#[allow(raw_pointer_derive)]` and makes the attribute conditional. Refs #337
2016-04-02Fix raw_pointer_derive warningKamal Marhubi
This commit adds a small build script to detect if we need to `#[allow(raw_pointer_derive)]` and makes the attribute conditional. Refs #337
2016-03-31Auto merge of #332 - kamalmarhubi:fork-enum, r=fiveopHomu
unistd: Redesign the enum returned by fork() This changes the name of the enum returned by `fork()` to `ForkResult`, and changes the `Parent` variant to be struct-like. The result can be matched like use nix::unistd::ForkResult::*; match fork().unwrap() { Parent { child } => { ... } Child => { ... } } using the shorthand matching syntax for struct-like enum variants. This is a breaking change.
2016-03-31Auto merge of #335 - kamalmarhubi:sin6-flowinfo-scope-id, r=fiveopHomu
socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_std Fixes #329
2016-03-30unistd: Mark fork() and related methods as #[inline]Kamal Marhubi
2016-03-30unistd: Redesign the enum returned by fork()Kamal Marhubi
This commit changes the name of the enum returned by `fork()` to `ForkResult`, and changes the `Parent` variant to be struct-like. The result can be matched like use nix::unistd::ForkResult::*; match fork().unwrap() { Parent { child } => { ... } Child => { ... } } using the shorthand matching syntax for struct-like enum variants. This is a breaking change.
2016-03-30socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_stdKamal Marhubi
Fixes #329
2016-03-30Auto merge of #336 - kamalmarhubi:pause, r=fiveopHomu
unistd: Add pause(2)
2016-03-30Use pause(2) in test_wait_signalKamal Marhubi
Replace a busy loop with a call to `pause(2)`.
2016-03-30unistd: Add pause(2)Kamal Marhubi
2016-03-29Auto merge of #331 - kamalmarhubi:conventions-whitespace, r=utkarshkukretiHomu
doc: Minor whitespace fix in CONVENTIONS.md
2016-03-28doc: Minor whitespace fix in CONVENTIONS.mdKamal Marhubi
2016-03-29Auto merge of #330 - kubo39:epollexclusive, r=kamalmarhubiHomu
epoll: Add EPOLLEXCLUSIVE flag. EPOLLEXCLUSIVE flag is available in Linux4.5.
2016-03-28epoll: Add EPOLLEXCLUSIVE flag.kubo39
EPOLLEXCLUSIVE flag is available in Linux4.5.
2016-03-22Auto merge of #326 - posborne:fix-arm-and-x86-ci, r=kamalmarhubiHomu
Fix arm and x86 ci See the individual commit message for more detail. ARM is now passing (but we don't run mount tests any more when in the docker container). For x86_64/i686, there were some changes in the posborne/rust-cross stuff.
2016-03-21testing: failing on arm is no longer an allowed failure!Paul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-21testing: specify a few extra environment variablesPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-21testing: use posborne/rust-cross:x86 for x86_64/i686Paul Osborne
Previously, std for x86_64 and i686 was included in the base image. To reduce size, those contents are now in the x86 image instead. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-22Auto merge of #328 - kamalmarhubi:test_mount-getuid, r=posborneHomu
Use getuid(2) from nix instead of libc in test_mount
2016-03-21Use getuid(2) from nix instead of libc in test_mountKamal Marhubi
2016-03-22Auto merge of #327 - kamalmarhubi:allow-test_mount_failure, r=fiveopHomu
mount: Do not treat unshare(2) failure as test failure The mount test runner uses unprivileged user namespaces. Previously, failure from `unshare(2)` to create the user namespace would fail the test. This changes that to simply print an error and exit successfully. Refs https://github.com/nix-rust/nix/pull/326
2016-03-21mount: Do not treat unshare(2) failure as test failureKamal Marhubi
The mount test runner uses unprivileged user namespaces. Previously, failure from `unshare(2)` to create the user namespace would fail the test. This changes that to simply print an error and exit successfully. Refs https://github.com/nix-rust/nix/pull/326
2016-03-19Auto merge of #322 - posborne:travis-mixed-sudo-environment, r=kamalmarhubiHomu
travis: only require sudo on docker/i686 builds Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-17travis: add back testing on all rust versions (for linux)Paul Osborne
We are using containers for a majority of builds again, so perform those builds on more platforms (as travis seems to handle this much better). For OSX, we now testing i686/x86_64 on 1.1.0 as well for added coverage. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-17travis: only require sudo on docker/i686 buildsPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>