Age | Commit message (Collapse) | Author |
|
|
|
Allow failures of 1.7 builds
Libraries we depend on need newer versions of Rust. The current
stable release is 1.13.
This also disables the CI for the platforms/architectures MIPS, ARM
and Android. This cannot be helped as long as the test infrastructure
only runs on 1.7.
|
|
Libraries we depend on need newer versions of Rust. The current
stable release is 1.13.
This also disables the CI for the platforms/architectures MIPS, ARM
and Android. This cannot be helped as long as the test infrastructure
only runs on 1.7.
|
|
Timespec
Make TimeVal an opaque Newtype, and add another Newtype for Timespec.
|
|
Also, fix the TimeSpec::cmp and TimeVal::cmp methods, and fix some
formatting
|
|
Fixed typo in tcsetpgrp
|
|
|
|
|
|
Also, add trait TimeValLike, so some code can be shared between TimeSpec
and TimeVal.
|
|
|
|
By exposing its members, nix allowed users to create denormalized
TimeVals, which don't work with the derived() Eq and Ord methods.
Better to make TimeVal opaque, so it will always be normalized.
|
|
Fix multiple issues with Unix domain sockets
|
|
|
|
test_getsockname used an IPv4 socket and assumed that localhost was
"127.0.0.1". But that assumption doesn't hold on IPv6-only hosts or on
shared-IP FreeBSD jails. Unfortunately, the Rust standard library
doesn't provide a good way to resolve localhost. So change the test to
use a unix-domain socket instead.
|
|
There were multiple errors regarding Unix domain sockets:
* UnixAddr::path assumed that gethostbyname and similar functions would
include the terminating null as part of len. That is not universally
true. In fact, POSIX only guarantees that len will be at least large
enough to store the non-null-terminated path. So it could be larger or
smaller than nix was assuming. Since abstract sockets' paths are not
strings, we can't modify gethostbyname. Instead, I implemented the fix in
UnixAddr::path and UnixAddr::new. I clarified the documentation too.
* SockAddr::as_ffi_pair contained a Linuxism.
* sockaddr_storage_to_addr forgot to adjust sun_len when creating a UnixAddr
|
|
Get rid of version suffix between versions
|
|
Fix intermittency in test_select
Sometimes, on a heavily laden system, select would timeout and the test would
fail. Fix it by removing the timeout.
|
|
Sometimes, on a heavily laden system, select would timeout and the test would
fail. Fix it by lengthening the timeout to 10s.
|
|
|
|
Fail on beta builds again.
Fixes #435
|
|
Fixes #435
|
|
|
|
Change SigFlags into an enum.
Addresses #459.
This is a breaking change.
Should SigFlags be renamed to something more sensible?
|
|
Change KEvent to treat udata as an intptr_t instead of a uintptr_t.
This matches NetBSD's C definitions. Other operating systems define
it as void*, despite not really being a pointer, but none actually
define it as uintptr_t. Better to be right on NetBSD and wrong
everywhere else than wrong everywhere. Plus, it's what mio expects.
Please include this PR in nix 0.8.0
|
|
|
|
Get rid of a few test compilation warnings
Cleans up after 0fa7250b9575a2746519a854d0138c4c8255f109 and 40351db00da6ee8c904f47599ee692a85e3d96ef.
|
|
|
|
Make signal argument to kill optional
Fixes #441
|
|
|
|
Avoid TempDir::into_path(), because it doesn't cleanup on Drop
|
|
|
|
This matches NetBSD's C definitions. Other operating systems define
it as void*, despite not really being a pointer, but none actually
define it as uintptr_t. Better to be right on NetBSD and wrong
everywhere else than wrong everywhere. Plus, it's what mio expects.
|
|
Update CHANGELOD.md to include CLONE_NEWCGROUP
Add note about CLONE_NEWCGROUP from pull request #457 to CHANGELOG.md.
Signed-off-by: Dylan Reid <dgreid@chromium.org>
|
|
Add note about CLONE_NEWCGROUP from pull request #457 to CHANGELOG.md.
Signed-off-by: Dylan Reid <dgreid@chromium.org>
|
|
|
|
|
|
Added tcgetpgrp and tcsetpgrp
I added the tcgetpgrp and tcsetpgrp functions. I'm not sure if I did everything right so please tell me if I need to change anything.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add CLONE_NEWCGROUP
This is a new option to clone added earlier this year. It was already added to rust/libc.
|
|
|
|
Additional documentation additions
This is a second round of doc additions. There are also some funcitonal changes to APIs for getting/setting hostname that need to be reviewed.
r? @nix-rust/nix-maintainers
|
|
These make the language consistent in the 3rd person, fix a few
minor mistakes, and remove some superflous prose.
Signed-off-by: Paul Osborne <osbpau@gmail.com>
|
|
Bump minimum supported version of Rust
Many crates are coalescing around 1.9.0 with the stabilization of `std::panic`,
and it helps remove the build script w/ rustc version parsing for now as well.
|
|
|
|
The script checked for rustc >= 1.6.0, but the minimum supported version for
this crate is now 1.7.0
|