summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-05Merge #625bors[bot]
625: Use libc_bitflags! for BSD in fcntl.rs r=Susurrus
2017-07-05Wrap lines to keep them under 100 charsequal-l2
2017-07-05Unify BSD constsequal-l2
2017-07-05Fix libc is not viable with netbsdequal-l2
2017-07-04Merge #631bors[bot]
631: Allow nix to compile on android r=Susurrus Fixes #313
2017-07-04Make Android a Tier 2 targetroblabla
2017-07-04Allow nix to compile on android targetsroblabla
2017-07-04Allow casting a flag to a type in libc_bitflags!roblabla
This is necessary because certain flags in libc have different types, generally due to a mistake when adding the flags to the libc. See https://github.com/rust-lang/libc/pull/511 for an example of such a discrepency.
2017-07-04Merge pull request #629 from Kixunil/newtypesAlan Somers
Newtypes for uid_t, gid_t and pid_t.
2017-07-04Use libc_bitflags! for BSD in fcntl.rsequal-l2
2017-07-03Merge #640bors[bot]
640: Add iOS as a Tier 3 platform r=Susurrus With this and #639, then we have at least basic testing recurring for all mobile platforms (note that this is more than the `libc` currently tests, so we may have trouble moving the non-x86 targets to Tier2 until that happens).
2017-07-03Merge #645bors[bot]
645: Use single threads for testing r=asomers I actually couldn't find a reference to CARGO_TEST_THREADS in the current cargo codebase, but RUST_TEST_THREADS is definitely correct. This should reduce some spurious failures on some platforms.
2017-07-03Add iOS as a Tier 3 platformBryant Mairs
2017-07-03Use single threads for testingBryant Mairs
I actually couldn't find a reference to CARGO_TEST_THREADS in the current cargo codebase, but RUST_TEST_THREADS is definitely correct. This should reduce some spurious failures on some platforms.
2017-07-03Merge #636bors[bot]
636: Rely on libc for more socket constants r=Susurrus Not all values are upstreamed, but this covers the vast majority of them.
2017-07-02Rely on libc for more socket constantsBryant Mairs
2017-07-02Merge #639bors[bot]
639: Add all Android targets as Tier 3 platforms r=Susurrus cc @ndusart @roblabla
2017-07-02Merge #642bors[bot]
642: Handle short reads in pty tests r=Susurrus Some pty tests would fail intermittently because read(2) occasionally returns less data than requested.
2017-07-02Newtypes for uid_t, gid_t and pid_t.Martin Habovštiak
2017-07-02Merge #633bors[bot]
633: Skip the mount tests on kernel 4.4.0 r=asomers Some versions of that kernel have a known bug with tmpfs in namespaces. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes #610
2017-07-01Skip the mount tests on buggy Linux kernelsAlan Somers
Starting somewhere in 4.4.0 some versions of Linux have a known bug with tmpfs in namespaces. It's unknown exactly which versions are affected (and likely distro-dependent), but easy to detect. When open(2) returns EOVERFLOW, skip the rest of the test. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes #610
2017-07-01Handle short reads in pty testsAlan Somers
Some pty tests would fail intermittently because read(2) occasionally returns less data than requested.
2017-06-30Add all Android targets as Tier 3 platformsBryant Mairs
2017-06-20Merge #599bors[bot]
599: Support powerpc64 r=Susurrus The test_ioctl values are computed using ioctl-test.c
2017-06-20Merge #622bors[bot]
622: Separate OpenBSD and FreeBSD in fcntl.rs r=asomers Those two OSes cannot be together since the following FreeBSD flags aren't available on OpenBSD. - `O_DIRECT` - `O_EXEC` - `O_TTY_INIT`
2017-06-20Merge #620bors[bot]
620: Update bitflags to 0.9 r=asomers
2017-06-20doc: Add powerpc64 as tier 1Luca Barbato
2017-06-19travis: Add ppc64/ppc64leLuca Barbato
2017-06-19Support powerpc64Luca Barbato
The test_ioctl values are computed using ioctl-test.c
2017-06-19Separate OpenBSD and FreeBSD in fcntl.rsequal-l2
2017-06-18Fix BSD errorequal-l2
2017-06-18Update bitflags to 0.9equal-l2
2017-06-15Merge #600bors[bot]
600: Change sched_setaffinity's PID argument to pid_t r=asomers I might be missing something as to why this argument was made `isize`, but there's nothing obvious from the commit history, and other calls that work with thread IDs in this library return `pid_t`, so hopefully this is a nit and not noise.
2017-06-15Change sched_setaffinity's PID argument to pid_tJulian Squires
The officially documented type, and the type in sched.h, for this argument is pid_t.
2017-06-13Merge #614bors[bot]
614: Added ptrace utilities. r=Susurrus Some ptrace functions return structures through the data argument. This commit adds utilities to return data through this mechanism and function specialisations for a few of these functions (getting event messages or the siginfo_t struct). Once the next version of libc is released these utilities will be expanded to include the fpregs and user_regs structs. Due to the need to use unsafe blocks to utilise these ptrace features I feel these are good candidates for inclusion into rust-nix
2017-06-13Added ptrace utilities.Daniel McKenna
Some ptrace functions return structures through the data argument. This commit adds utilities to return data through this mechanism and function specialisations for a few of these functions (getting event messages or the siginfo_t struct). Once the next version of libc is released these utilities will be expanded to include the fpregs and user_regs structs. Ptrace requests that are now satisfied by a more specific public function will return an unsupported operation error. This has involved adding an UnsupportedOperation to the nix::Error enum and removed the mapping from Error to Errno and from Error to std::io::Error.
2017-06-13Merge #456bors[bot]
456: Add openpty r=Susurrus Lemme know if anything needs to be fixed
2017-06-12Add openpty()Kelvin Ly
2017-06-11Merge #590bors[bot]
590: Skip failing tests for Linux/MIPS/PowerPC r=Susurrus These should be issues with QEMU itself and not problems on the actual hardware, but I want to get some upstream tickets filed before merging this. I'm also not sure if this syntax is correct on the `#cfg`, so this is testing that as well.
2017-06-11Merge all Linux platforms togetherBryant Mairs
2017-06-06Synchronize CI with upstream trust configurationBryant Mairs
2017-06-06Remove the default jobBryant Mairs
2017-06-06Fix x86_64 Linux/musl testsBryant Mairs
Seems that pretty much all aio tests fail on x64 musl builds.
2017-06-06Fix i686 Linux/musl buildsBryant Mairs
2017-06-06Switch to two tiers of supported platformsBryant Mairs
2017-06-06Skip failing MIPS testsBryant Mairs
2017-06-06Skip failing tests for Linux/PowerPCBryant Mairs
2017-06-05Merge #618bors[bot]
618: Integrate the FreeBSD BuildBot r=asomers * Gate Bors on the FreeBSD 11 build * Remove the testless FreeBSD build from Travis * Promote x86_64-unknown-freebsd to Tier 1 Fixes #603
2017-06-05Merge #591bors[bot]
591: Add pthread_self r=asomers
2017-06-04Integrate the FreeBSD BuildBotAlan Somers
* Gate Bors on the FreeBSD 11 build * Remove the testless FreeBSD build from Travis * Promote x86_64-unknown-freebsd to Tier 1 Fixes #603