Commit Graph

2011 Commits

Author SHA1 Message Date
bors
f150863efc Auto merge of #820 - malbarbo:s390x-test, r=alexcrichton
Run s390x tests on qemu system

qemu in user mode cannot run binaries produced by rustc (it hangs), so we run the tests in a fully virtualized s390x machine using qemu-system-s390x.

Some constants had to be fixed.
2017-10-31 13:50:35 +00:00
Marco A L Barbosa
8fe5875699 Fix O_TMPFILE const for sparc64-unknown-linux-gnu 2017-10-31 10:10:35 -02:00
Marco A L Barbosa
6fa3870e5b Run sparc64-unknown-linux-gnu tests on qemu system 2017-10-31 10:10:35 -02:00
Marco A L Barbosa
a6c709142d Fix some s390x constants 2017-10-31 09:44:58 -02:00
Marco A L Barbosa
cd2e87d575 Run s390x test in qemu system instead of qemu user 2017-10-31 09:44:54 -02:00
bors
4feda87afd Auto merge of #827 - worr:master, r=alexcrichton
Add WCONTINUED const for OpenBSD

Simple addition of `WCONTINUED` for OpenBSD-like systems. Built nix against this modified libc and used it to test.
2017-10-30 14:34:25 +00:00
William Orr
e83f20bc0d Add WCONTINUED const for OpenBSD 2017-10-29 14:34:34 -07:00
bors
68f9959e53 Auto merge of #819 - andrewtj:atj-rel, r=alexcrichton
Bump to 0.2.33

Just bumping the release to make getprotobyname, getprotobynumber and getservbyname available.
2017-10-28 12:47:45 +00:00
Andrew Tunnell-Jones
9ff7111743 Bump to 0.2.33 2017-10-28 05:47:18 -07:00
bors
10ac3df173 Auto merge of #824 - malbarbo:x32-1, r=alexcrichton
Fixes and test for x86_64-unknown-linux-gnux32

This fixes all libc tests and almost all rustc tests (3 libstd tests and one run-pass test fails).

Fixes https://github.com/rust-lang/libc/issues/816https://github.com/rust-lang/libc/issues/816
2017-10-28 04:03:07 +00:00
bors
25fb72e359 Auto merge of #823 - malbarbo:sparc64-test, r=alexcrichton
Add sparc64-unknown-linux-gnu to CI (with disabled tests)

Tests are disabled because qemu segfaults, see https://github.com/rust-lang/libc/issues/822

The builder is still useful to catch some errors.
2017-10-28 03:34:15 +00:00
bors
c6abfc1f70 Auto merge of #821 - malbarbo:mips64el-test, r=alexcrichton
Add mips64el to CI
2017-10-28 03:04:32 +00:00
bors
84d72c659d Auto merge of #818 - malbarbo:powerpc64le-test, r=alexcrichton
Add powerpc64le to CI
2017-10-28 02:34:11 +00:00
bors
93a11fd92b Auto merge of #825 - malbarbo:android-fix-ci, r=alexcrichton
Fix android ci
2017-10-28 02:11:26 +00:00
Alex Crichton
8617317c89 Disable i686-linux-android temporarily 2017-10-27 18:31:05 -07:00
Marco A L Barbosa
a9115d5e4b Fix android ci 2017-10-27 16:46:32 -02:00
Marco A L Barbosa
e63f46a0ce Add issue for linux x32 failing to build 2017-10-27 13:15:32 -02:00
Marco A L Barbosa
d1eabe699a Enable x86_64-unknown-linux-gnux32 on CI 2017-10-27 11:06:40 -02:00
Marco A L Barbosa
0ee3935ed3 Add x86_64-unknown-linux-gnux32 docker image 2017-10-27 11:06:14 -02:00
Marco A L Barbosa
c9aba5f9ad Use ctest from git to allow testing linux x32 2017-10-27 11:01:20 -02:00
Marco A L Barbosa
9a0d37f517 Add sparc64-unknown-linux-gnu to CI (with disabled tests) 2017-10-27 09:09:45 -02:00
Marco A L Barbosa
56b3403fa5 Add mips64el to CI 2017-10-27 08:21:40 -02:00
Marco A L Barbosa
19530c0d97 More fixes for x86_64-unknown-linux-gnux32 2017-10-27 07:16:08 -02:00
Marco A L Barbosa
31309536e9 Add powerpc64le to CI 2017-10-24 19:04:02 -02:00
bors
42b24bf704 Auto merge of #787 - vojtechkral:master, r=alexcrichton
Fix kqueue filter consts type on NetBSD [WAS: Provide EV_SET]

Using BSD kqueue's `kevent` structure is tedious, because some BSD variants define the structure slightly differently. This forces user's code to differentiate between BSD variants and initialize `kevent` accordingly, which is annoying and error-prone.

For an example, refer to [MIO](https://github.com/carllerche/mio/blob/master/src/sys/unix/kqueue.rs#L38).

This is an attempt to fix it - provide a ctor function with the same signature across BSD variants.

Is an `impl` piece for a C structure allowed in libc?

**edit:** I noticed the `kevent` function has a similar problem, maybe I should include a fix for that too...
**edit:** ^ Done
2017-10-24 13:35:10 +00:00
Vojtech Kral
a0e683ef94 Fix kqueue filter consts type on NetBSD 2017-10-24 00:08:22 +02:00
bors
0a528191c8 Auto merge of #815 - ndusart:sys, r=alexcrichton
fix ABI breakage in syscall constants

Fix other platforms impacted by 9029cfb9eb
2017-10-20 14:52:36 +00:00
Nicolas Dusart
b7b316bae8 fix ABI breakage in syscall constants 2017-10-20 10:37:57 +02:00
bors
7e33065ce4 Auto merge of #812 - malbarbo:x32, r=alexcrichton
Initial fixes for linux x32

Tested with a local build of rustc. The main test can be compiled but fails to execute (receives SIGTRAP, which I think in this case indicates memory violation, I will open an issue in the rustc repo).

This PR is important because it fixes the definition of `c_long` and `c_ulong`. Without these fixes, rustc crash with the error:

```
Cannot emit physreg copy instruction
UNREACHABLE executed at /checkout/src/llvm/lib/Target/X86/X86InstrInfo.cpp:5778!
```

Related https://github.com/rust-lang/rust/issues/37976
2017-10-19 16:40:53 +00:00
bors
b06739dda9 Auto merge of #813 - ndusart:syscall-android, r=alexcrichton
SYS_* constants are of type long in Android

The SYS_* constants should be `c_long` as `syscall` expect a `c_long` as first argument and in Android headers, there is no sign that these constants should be `unsigned long`.

So the compilation targeting ARM Android fails for dependent crates using `syscall`.
2017-10-19 16:21:29 +00:00
bors
07088d2a0e Auto merge of #810 - oherrala:pthread_cancel, r=alexcrichton
Introduce pthread_cancel() for terminating threads

pthread_cancel() is safer way to terminate thread than pthread_kill().

This function can be found from ISO/IEC 9945-1:1996 (“POSIX.1”) and first introduced into Single Unix Specification version 2 on 1997.
2017-10-19 15:06:41 +00:00
bors
2172bb4bab Auto merge of #802 - Mic92:setfsuid, r=alexcrichton
add setfsgid/setfsuid on Linux
2017-10-19 14:37:21 +00:00
bors
9a9f71e73e Auto merge of #711 - Susurrus:termios2, r=alexcrichton
Add BOTHER & termios2 to Android & Linux

This should be the same for both the struct and the constant across all Linux/Android platforms, but we'll see!
2017-10-19 14:17:57 +00:00
Joerg Thalheim
3406fe94fa provide setfsgid/setfsuid also on android 2017-10-19 11:00:43 +01:00
Nicolas Dusart
4b240a6b86 SYS_* constants are of type long in Android 2017-10-19 11:11:21 +02:00
Ossi Herrala
f024fe7dd3 Trying to fix for i686-apple
Error was "bad pthread_cancel function pointer: rust: 8362822 (0x7f9b46) != c 8358779 (0x7f8b7b)"
2017-10-19 11:00:37 +03:00
Bryant Mairs
6d55c2496d Add termios2 for Android & Linux
Note that termios2 doesn't exist on powerpc(64), termios
is used instead.
2017-10-18 21:14:43 -07:00
Bryant Mairs
12cfa1ef46 Add BOTHER to Android & Linux 2017-10-18 20:57:34 -07:00
Marco A L Barbosa
a5bd4b5668 Fix style 2017-10-18 21:20:18 -02:00
Marco A L Barbosa
1ff3817887 Move down c_long and c_ulong of linux/other/b64 to accommodate x32 2017-10-18 21:08:51 -02:00
Marco A L Barbosa
1994be3183 Linux x32 does not have some SYS_ constants 2017-10-18 21:08:51 -02:00
Marco A L Barbosa
343b7c15be Linux x32 does not support sysctl 2017-10-18 21:08:51 -02:00
Marco A L Barbosa
c3408c10e3 Fix utmpx.ut_session for linux x32 2017-10-18 21:07:36 -02:00
Marco A L Barbosa
bbc2cfa096 Fix timespec, stat, stat64 for linux x32 2017-10-18 21:07:36 -02:00
Marco A L Barbosa
477425435a Fix mq_attr for linux x32 2017-10-18 21:07:36 -02:00
Marco A L Barbosa
968bce4ed4 Fix c_long, c_ulong and sysinfo for linux x32 2017-10-18 21:07:36 -02:00
bors
2ca5bc5275 Auto merge of #811 - alexcrichton:syscalls, r=alexcrichton
Add more Linux-based syscall tables

* Add syscall tables to most remaining arches in `src/unix/notbsd`
* Add aarch64/arm musl to CI
* Update dependencies
2017-10-18 22:25:57 +00:00
Alex Crichton
9029cfb9eb Add more Linux-based syscall tables
* Add syscall tables to most remaining arches in `src/unix/notbsd`
* Add aarch64/arm musl to CI
* Update dependencies
2017-10-18 15:17:00 -07:00
Ossi Herrala
fcc8237add Introduce pthread_cancel() for terminating threads
pthread_cancel() is safer way to terminate thread than pthread_kill().

This function can be found from ISO/IEC 9945-1:1996 (“POSIX.1”) and
first introduced into Single Unix Specification version 2 on 1997.
2017-10-18 15:53:10 +03:00
bors
84da91cebe Auto merge of #809 - djg:freebsd_sol_local, r=alexcrichton
Local peer credential support for FreeBSD.

FreeBSD uses SOL_SOCKET/LOCAL_PEERCRED instead of SOL_SOCKET/SO_PEERCRED parameters to getsocktopt to retrieve the credentials of a socket's peer.

(Documented in man 4 unix)
2017-10-18 00:24:02 +00:00