gnzlbg
ccad8b426c
Fix musl build jobs
2019-05-23 19:09:39 +02:00
gnzlbg
cc13d7506e
Fix Android build jobs: not allowed to fail anymore
2019-05-23 16:33:41 +02:00
gnzlbg
c37623116d
Add i686-linux-android build job
2019-05-23 16:32:32 +02:00
gnzlbg
7f8b946cc2
Document what is wrong with sighandler_t
2019-05-23 16:31:05 +02:00
gnzlbg
3efe23b1c0
Enable more tests on Android
2019-05-23 16:30:51 +02:00
gnzlbg
1c5a36c488
[breaking change] remove getdtablesize - removed in Android API 21
2019-05-23 16:30:51 +02:00
gnzlbg
30c853f59f
[breaking change] remove __progname
2019-05-23 16:30:51 +02:00
gnzlbg
8c70f498f2
Enable more tests (some related to issue 1272) on Android
2019-05-23 16:30:36 +02:00
gnzlbg
d52732581a
Test strerror_r on Android and Linux
2019-05-23 16:29:28 +02:00
gnzlbg
46c60fb726
[breaking change] personality takes a c_uint instead of c_ulong on Android
2019-05-23 16:29:28 +02:00
gnzlbg
7d5e632d36
[breaking change] set/getpriority who argument is of type id_t on Android
2019-05-23 16:29:28 +02:00
gnzlbg
ebe64f1e25
[breaking change] recvfrom takes a mut pointer on Android
2019-05-23 16:29:28 +02:00
gnzlbg
918d371af0
[breaking change] mprotect takes a mut pointer on Android
2019-05-23 16:29:28 +02:00
gnzlbg
5016f87a18
[breaking change] msync takes a mut pointer on Android
2019-05-23 16:29:28 +02:00
gnzlbg
8b02725e34
[breaking change] madvise takes a mut pointer on Android
2019-05-23 16:29:28 +02:00
gnzlbg
61c9de80b4
[breaking change] pthread_key_t is signed on Android
2019-05-23 16:29:28 +02:00
gnzlbg
003c04d952
[breaking change] fix types of stat/stat64 structs, atime/mtime/ctime fields on Android
2019-05-23 16:29:28 +02:00
gnzlbg
4774fc1c9f
Deprecate ENOATTR on Linux and Android
2019-05-23 16:29:28 +02:00
gnzlbg
eea0102308
Enable more tests on Android
2019-05-23 16:29:08 +02:00
gnzlbg
91ea0b21a3
[breaking change] sigaction.sa_flags changed from c_ulong to c_int on 32-bit Android
2019-05-23 16:25:49 +02:00
gnzlbg
841b3eb016
[breaking change] sigaction.sa_flags changed signedness on x86_64-android
2019-05-23 16:25:49 +02:00
gnzlbg
a59ea44ceb
[breaking change] __sched_cpucount changed pointer mutability on x86_64-android
2019-05-23 16:25:49 +02:00
gnzlbg
e42b1edbdd
Update FILENAME_MAX, L_tmpnam, MS_*, SYS_ and NFT* Android constants
...
Non-existent constants like SYS_syscalls have been removed
2019-05-23 16:25:49 +02:00
gnzlbg
eb0794a5d8
Update Android SDK, NDK (r19c), and API versions (arm:24,x86:28)
...
* Update Android NDK to version r19c
* Update Android API versions to:
* API 24 on arm and aarch64 targets
* API 28 on x86 and x86_64 targets
* Unified headers were removed in NDK 16
* Refactor the NDK and SDK installation scripts
* OpenJDK version 8 must be kept: it appears that
the Android tools do not work with more modern OpenJDK
versions.
2019-05-23 16:18:43 +02:00
bors
f3a7aade28
Auto merge of #1355 - gnzlbg:openbsdlike, r=gnzlbg
...
Refactor OpenBSD-like module into OpenBSD
The only OpenBSD-like OS that we support after bitrig's removal is OpenBSD itself.
cc @semarie
2019-05-22 13:48:46 +00:00
gnzlbg
7b45788a01
Refactor OpenBSD-like module into OpenBSD
2019-05-22 14:20:13 +02:00
bors
50f4b671cf
Auto merge of #1354 - gnzlbg:gettimeofday, r=gnzlbg
...
[breaking change] gettimeofday 2nd argument incorrect in some targets
The second argument of `gettimeofday` was a `*mut c_void` on all targets,
but that type is incorrect in the following targets, where it should be
a `*mut timezone` instead:
On these other targets it appears that the signature of gettimeofday was incorrect (it takes a time-zone pointer instead of a void pointer):
*linux+gnu: http://man7.org/linux/man-pages/man2/gettimeofday.2.html
*freebsd: https://www.freebsd.org/cgi/man.cgi?query=gettimeofday&apropos=0&sektion=2&manpath=FreeBSD+11.2-stable&arch=default&format=html
*openbsd: https://man.openbsd.org/gettimeofday.2
*android: https://github.com/ricardoquesada/android-ndk/blob/master/usr/include/sys/time.h
*dragonfly: https://www.dragonflybsd.org/cgi/web-man?command=gettimeofday§ion=2
This commit corrects the type on these targets, which is a breaking change. Due
to how this API is commonly used (e.g. passing `ptr::null_mut` to the second
argument), breakage should be minimal or non-existent (AFAICT only `time`, `libstd`, and `parking_lot` use this API, and they all should compile after this change). Users wanting to support both versions can just write `ptr as *mut _` instead.
Closes #1338 .
---
On these targets, the signature of `gettimeofday` was correct (the second argument is a `void*`):
* macosx: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/gettimeofday.2.html
* linux+musl: http://git.musl-libc.org/cgit/musl/tree/include/sys/time.h#n11
* linux+newlib: 99fc6c1674/newlib/libc/include/sys/time.h (74)
* netbsd: http://netbsd.gw.com/cgi-bin/man-cgi?gettimeofday+2.i386+NetBSD-8.0
* newlib: https://github.com/devkitPro/newlib/blob/devkitA64/newlib/libc/include/sys/time.h#L370
* solaris/illumos: https://illumos.org/man/3C/gettimeofday
* emscripten: https://chromium.googlesource.com/external/github.com/kripken/emscripten/+/1.35.20/system/include/libc/sys/time.h#11
cc @alexcrichton
2019-05-22 09:54:52 +00:00
gnzlbg
759c837611
[breaking change] incorrect API of gettimeofday
...
The second argument of `gettimeofday` was a `*mut c_void` on all targets,
but that type is incorrect in the following targets, where it should be
a `*mut timezone` instead:
On these other targets it appears that the signature of gettimeofday was incorrect (it takes a time-zone pointer instead of a void pointer):
linux+gnu: http://man7.org/linux/man-pages/man2/gettimeofday.2.html
freebsd: https://www.freebsd.org/cgi/man.cgi?query=gettimeofday&apropos=0&sektion=2&manpath=FreeBSD+11.2-stable&arch=default&format=html
openbsd: https://man.openbsd.org/gettimeofday.2
android: https://github.com/ricardoquesada/android-ndk/blob/master/usr/include/sys/time.h
dragonfly: https://www.dragonflybsd.org/cgi/web-man?command=gettimeofday§ion=2
This commit corrects the type on these targets, which is a breaking change. Due
to how this API is commonly used (e.g. passing `ptr::null_mut` to the second
argument), breakage should be minimal. Users wanting to support both versions
can just write `ptr as *mut _` instead.
Closes #1338 .
2019-05-22 10:39:06 +02:00
bors
bf85aa6dfc
Auto merge of #1340 - ibabushkin:mmap_flags, r=gnzlbg
...
Added MAP_FIXED_NOREPLACE and MAP_SHARED_VALIDATE consts.
This addresses #1339 and #1315 . I believe the location of the constants is correct as-is, as both flags are linux-specific additions. Let me know if I missed anything.
2019-05-21 18:53:49 +00:00
bors
0b52da1c71
Auto merge of #1353 - sameo:topic/musl-seek, r=gnzlbg
...
linux/musl: Add SEEK_HOLE and SEEK_DATA constants
They are defined since Linux 3.1 but not in musl yet.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-05-21 16:52:26 +00:00
Inokentiy Babushkin
63e3932d54
Disabled MAP_SHARED_VALIDATE and MAP_FIXED_NOREPLACE on musl for now.
...
Because we cannot yet bring a more recent musl to the mips and mipsel
architectures, we disable support for these constant until a cascading
update with rust-lang/rust has been done.
2019-05-21 13:50:25 +02:00
Inokentiy Babushkin
6a97d64e02
Revert "An attempt to use upstream musl on mips."
...
This reverts commit 1a1b170a02
.
2019-05-21 13:37:31 +02:00
Inokentiy Babushkin
3835253fc8
Revert "Fixed a typo in mips docker file."
...
This reverts commit 7b171fb15a
.
2019-05-21 13:37:19 +02:00
Samuel Ortiz
5c31597f8f
linux/musl: Add SEEK_HOLE and SEEK_DATA constants
...
They are defined since Linux 3.1 but not in musl yet.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2019-05-21 13:03:33 +02:00
Inokentiy Babushkin
7b171fb15a
Fixed a typo in mips docker file.
2019-05-20 16:55:08 +02:00
Inokentiy Babushkin
1a1b170a02
An attempt to use upstream musl on mips.
2019-05-19 16:53:59 +02:00
Inokentiy Babushkin
9f1db17852
Updated most musl versions in CI docker setup.
2019-05-19 14:12:33 +02:00
bors
caf17a0641
Auto merge of #1345 - jackpot51:patch-1, r=gnzlbg
...
Bump version to 0.2.55
This will bring in support for redox as part of the unix target_family, thus allowing https://github.com/rust-lang/rust/pull/60547 to move forward
2019-05-16 23:19:04 +00:00
bors
6bc42d40e5
Auto merge of #1342 - sunfishcode:master, r=gnzlbg
...
Update to the latest wasi-sysroot.
- Rename `wasm32-unknown-wasi` to `wasm32-wasi`.
- `__wasilibc_rmfileat` was renamed to `__wasilibc_unlinkat`
- Add bindings for a few more functions and typedefs.
2019-05-16 21:51:36 +00:00
bors
6e3c6752f6
Auto merge of #1336 - faern:add-futex-consts, r=gnzlbg
...
Add futex constants
Adding some Futex constants. To be used in `parking_lot`. See https://github.com/faern/parking_lot/pull/1/files#r283110797
2019-05-16 20:51:07 +00:00
Linus Färnstrand
72463fc155
Add futex.h to test
2019-05-16 20:40:18 +02:00
Linus Färnstrand
2276fd3940
Add some FUTEX_ constants to Linux+Android
2019-05-16 20:37:10 +02:00
Dan Gohman
215cd1549e
Update to the latest wasi-sysroot.
...
- Rename `wasm32-unknown-wasi` to `wasm32-wasi`.
- `__wasilibc_rmfileat` was renamed to `__wasilibc_unlinkat`
- Add bindings for a few more functions and typedefs.
2019-05-16 06:40:50 -07:00
Jeremy Soller
81dcf4c0ef
Bump version to 0.2.55
2019-05-16 06:53:06 -06:00
bors
8b14a7e95b
Auto merge of #1335 - leo60228:patch-1, r=gnzlbg
...
Improve newlib constants
This is necessary to set socket options on the Nintendo Switch, which uses a socket implementation directly ported from FreeBSD. Reopened from #1334 because I accidentally closed that.
2019-05-16 11:19:32 +00:00
bors
5408b1079c
Auto merge of #1332 - redox-os:redox-unix, r=gnzlbg
...
redox: convert to target_family unix
This is the first step to supporting https://github.com/rust-lang/rust/issues/60139 .
In order to have a smooth transition, there will need to be a change made in rust at the same time, switching Redox over to the unix target family. See https://github.com/rust-lang/rust/pull/60547
2019-05-16 10:03:05 +00:00
bors
4ac8346b74
Auto merge of #1337 - gnzlbg:update_ubuntu, r=gnzlbg
...
Update CI from ubuntu 16.04 (EOL) to 19.04
Closes #1333 .
2019-05-16 09:04:07 +00:00
gnzlbg
8eceb62a3e
Rename _wasi_rmfileat to _wasi_unlinkat
2019-05-16 11:03:45 +02:00
gnzlbg
5a0e37ec37
Add wasm32-wasi to ci/build.sh
2019-05-16 11:03:45 +02:00
gnzlbg
77a4683aa1
Remove bitrig support
...
See https://github.com/rust-lang/rust/pull/60775 .
2019-05-16 11:03:45 +02:00