Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
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...
|
|
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.
|
|
Add SigSet::union and SigSet::clear.
|
|
|
|
Allow to specify signal when calling clone.
This is my suggestion on how to fix #343.
|
|
|
|
|
|
Add some missing SFlags
Also reordered just because I wasn't sure where to insert the new ones.
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
This is necessary because of compiler changes. For further information
look at rust-lang/rust#19925.
|
|
fixed a few clippy warnings
Just a few style nits. Hope it'll be useful anyway :smile:
|
|
unistd: Add sleep(3)
|
|
|
|
|
|
Add the repository field to Cargo.toml
|
|
|
|
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
|
|
This commit adds a small build script to detect if we need to
`#[allow(raw_pointer_derive)]` and makes the attribute conditional.
Refs #337
|
|
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.
|
|
socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_std
Fixes #329
|
|
|
|
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.
|
|
Fixes #329
|
|
unistd: Add pause(2)
|
|
Replace a busy loop with a call to `pause(2)`.
|
|
|
|
doc: Minor whitespace fix in CONVENTIONS.md
|
|
|
|
epoll: Add EPOLLEXCLUSIVE flag.
EPOLLEXCLUSIVE flag is available in Linux4.5.
|
|
EPOLLEXCLUSIVE flag is available in Linux4.5.
|
|
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.
|
|
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|
|
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|
|
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>
|
|
Use getuid(2) from nix instead of libc in test_mount
|
|
|
|
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
|
|
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
|
|
travis: only require sudo on docker/i686 builds
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|
|
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>
|
|
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|