Commit Graph

3190 Commits

Author SHA1 Message Date
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
Danilo Bargen f4f8986fed Add ttyname_r 2019-05-19 01:17:17 +02:00
John Baublitz f774975069 Add more neighbour.h constants 2019-05-17 21:36:01 -04:00
John Baublitz 2afc89bfe1 Add NTF_ consts 2019-05-17 21:36:01 -04:00
John Baublitz 8a8b7dc4af Add NUD_ consts 2019-05-17 21:36:01 -04:00
John Baublitz d033dabd7d Add RT_TABLE_ consts 2019-05-17 21:36:01 -04:00
John Baublitz 1aab360f07 RT_SCOPE_ consts 2019-05-17 21:36:00 -04:00
John Baublitz 62ef1b764e RTN_ and RTPROT_ consts 2019-05-17 21:36:00 -04:00
John Baublitz 81c79c5601 Add RTA_ const values 2019-05-17 21:36:00 -04:00
John Baublitz 1aef43fc13 Commit for rtnetlink consts 2019-05-17 21:36:00 -04: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