Commit Graph

3110 Commits

Author SHA1 Message Date
gnzlbg
4ac26afa83 Deprecate use_std cargo feature: use std instead .
Related to #657 .
2019-05-24 13:22:03 +02:00
John Baublitz
f9441d4a8f Add final netlink constants referenced as needed for rtnetlink in the documentation 2019-05-23 17:58:23 -04:00
bors
f775bea997 Auto merge of #1344 - gnzlbg:fix_android_bj, r=gnzlbg
Fix Android build jobs
2019-05-23 18:12:55 +00:00
gnzlbg
ea31f5aeb5 Increase retries of Android downloads 2019-05-23 19:10:58 +02:00
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
pkubaj
3335a02019
Add aarch64-unknown-freebsd to CI 2019-05-23 14:12:48 +02:00
pkubaj
8d3175c185
Add powerpc64-unknown-freebsd target
Per https://github.com/rust-lang-nursery/stdsimd/pull/765 add powerpc64-unknown-freebsd to prevent further breakages.
2019-05-23 13:39:27 +02:00
bors
ecb4e97f52 Auto merge of #1357 - semarie:openbsd-pfstatus, r=gnzlbg
openbsd: add KERN_PFSTATUS and update KERN_MAXID

`KERN_PFSTATUS` has been recently added, and so `KERN_MAX` value has changed.
Add it to avoid failure on (local) ci.

While here, I added few blank lines to separated series of constants.
2019-05-23 07:20:17 +00:00
Sébastien Marie
83a947a9d9 openbsd: add KERN_PFSTATUS and update KERN_MAXID 2019-05-23 06:35:19 +02:00
bors
d14bbca96b Auto merge of #1351 - jbaublitz:nl_consts_pr, r=gnzlbg
Netlink constants for use with the route netlink subsystem

Reopening a PR to close #1059. I'll be adding a few more constants but want to make sure CI works on Github first.
2019-05-22 19:30:03 +00:00
John Baublitz
1f997a5215 Fix builds by moving the rest of the current constants to linux/other/mod.rs to avoid breaking musl 2019-05-22 10:23:02 -04: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&section=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&section=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
John Baublitz
40670d5fdd Fix builds by moving some constants to linux/other/mod.rs to avoid breaking musl 2019-05-21 16:29:41 -04: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
John Baublitz
f70a98773c Fix builds by adding trailing commas 2019-05-21 13:18:22 -04: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
John Baublitz
e39ed74cd9 Fix builds by including linux/rtnetlink.h and linux/if_addr.h 2019-05-21 10:14:24 -04: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