Commit Graph

2998 Commits

Author SHA1 Message Date
gnzlbg
0af34e1276 Re-enable wasm32-unknown-emscripten on CI 2019-05-28 16:21:18 +02:00
gnzlbg
484f39e1ba Document SIGUNUSED deprecation on Android 2019-05-28 16:21:18 +02:00
gnzlbg
8e26ab4964 Minor nitpicks 2019-05-28 16:21:18 +02:00
gnzlbg
cf0bd36e78 Update values of some emscripten constants 2019-05-28 16:21:18 +02:00
gnzlbg
fdd66318ff [breaking change] remove constants that are unavailable in emscripten 2019-05-28 16:21:18 +02:00
gnzlbg
0bc18a5dc9 [breaking change] sendmmsg/recvmmsg have incorrect signature c_int vs c_uint on emscripten 2019-05-28 16:01:26 +02:00
gnzlbg
05caeabe91 [breaking change] sockaddr_nl is not available on emscripten 2019-05-28 16:01:26 +02:00
gnzlbg
5ede8aab94 Enable disabled tests 2019-05-28 16:01:26 +02:00
gnzlbg
516f3efcc9 update emscripten 2019-05-28 16:01:26 +02:00
bors
48193e89b6 Auto merge of #1365 - gnzlbg:cleanup_linux, r=gnzlbg
[breaking change] Cleanup linux and update MUSL

* Update MUSL kernel headers to 4.4.2 (non-breaking)
* [breaking] `MADV_SOFT_OFFLINE` is not defined on MIPS
* [breaking] `sendmmsg`/`recvmmsg` take an `unsigned int` flag on MUSL
* [breaking] `pthread_t` is a pointer on MUSL
* `rlimit` resources should use a type alias on GNU (non-breaking)
* Deprecate `SIGNUNUSED` (should use SIGSYS instead)
2019-05-28 12:45:23 +00:00
gnzlbg
1a3d1525da [breaking change] sendmmsg/recvmmsg flag argument is an unsigned integer on MUSL 2019-05-28 10:09:43 +02:00
bors
8e2e498a45 Auto merge of #1371 - Susurrus:mq_attr, r=gnzlbg
Manually implement extra traits for `mq_attr` and `sockaddr_nl`

Avoid including padding fields in extra trait implementations as these fields aren't guaranteed to be 0 or some other sensible value.

Closes #1302
2019-05-27 20:35:06 +00:00
gnzlbg
2543b7c8ed bump kernel headers to 4.4.2-2 2019-05-27 22:23:02 +02:00
gnzlbg
1cbc523e50 [breaking change] MADV_SOFT_OFFLINE is undefined on MIPS 2019-05-27 22:23:02 +02:00
gnzlbg
8f403e5ac2 Update MUSL Linux kernel headers and re-enable Linux tests 2019-05-27 22:23:02 +02:00
bors
4e9c49e4d6 Auto merge of #1370 - alesharik:master, r=gnzlbg
Fix SA_* constants for `sigaction` in Android
2019-05-27 19:14:42 +00:00
Bryant Mairs
0b34501879 Ignore padding for sockaddr_nl struct
`nl_pad` field does not contain any actual data, so using it for
comparison or hashing doesn't make sense. Instead manually implement
extra traits ignoring this field.
2019-05-27 08:45:28 -07:00
Bryant Mairs
7d235af8c5 Ignore padding for mq_attr
The `pad` or `__reserved`  fields are not always 0 on some platforms,
so when used in the `PartialEq` implementation being used, fails some
comparisons. This commit manually implements the extra traits to
correct this behavior.
2019-05-27 08:37:48 -07:00
alesharikReserv@yandex.ru
45c84a07ab Fix SA_* constants for sigaction in Android 2019-05-27 11:12:36 +03:00
gnzlbg
1059e0bd85
Merge pull request #1346 from gnzlbg/simplify_freebsd
Clean up libc-test/build.rs for FreeBSD and enable testing FreeBSD12 on CI
2019-05-26 18:56:03 +02:00
bors
15855d6f10 Auto merge of #1364 - gnzlbg:deprecate_mach, r=gnzlbg
Deprecate mach APIs: users should use the `mach` crate instead.

See #981, the mach APIs have breaking changes from MacOSX SDK release to release, and that's pretty much what the users are seeing here. We are currently not exposing that many `mach` APIs in `libc`, so this PR deprecates them, forwarding users to use the `mach` crate instead, which provides the mach user-space APIs, is tested against multiple SDK versions, handles removed/deprecated/breaking API changes/etc. Doing all of that in `libc` feels overkill.

Closes #981 .
2019-05-25 20:44:31 +00:00
bors
6d4c60d70b Auto merge of #1358 - pkubaj:patch-1, r=gnzlbg
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-25 19:11:36 +00:00
bors
0f395c6333 Auto merge of #511 - malbarbo:android_sa, r=gnzlbg
Fix android SA_* constants

Trying to crosscompile wait-timeout to armv7-linux-androideabi I found that SA_* had different types in libc, but they have to be the same because they are used in bitwise operations.
2019-05-25 16:55:36 +00:00
bors
ae24e2210f Auto merge of #503 - TethysSvensson:fix-mode, r=gnzlbg
Set the type for S_ISUID, S_ISGID and S_ISVTX correctly
2019-05-25 15:49:13 +00:00
bors
c6306c1327 Auto merge of #1367 - gnzlbg:disable_sparc, r=gnzlbg
Temporarily disable some solaris targets
2019-05-25 12:19:21 +00:00
gnzlbg
06561d98f4 Temporarily disable x86_64-sun-solaris 2019-05-25 14:18:25 +02:00
gnzlbg
c5a53155f7 Temporarily disable sparcv9-sun-solaris 2019-05-25 13:04:24 +02:00
pkubaj
49271b7a7e
Move aarch64 and powerpc64 targets for FreeBSD
Move to LINUX_NO_CORE_TARGETS per gznlbg's suggestion.
2019-05-25 00:41:35 +02:00
bors
c4b609a77a Auto merge of #1360 - jbaublitz:nl_consts_pr-2, r=gnzlbg
Add final rtnetlink constants

This is a follow up to the PR #1351 which is for issue #1059 as it was closed before I realized there's one last set of netlink constants needed for use with rtnetlink. I'm marking this as WIP until I've verified everything's good with CI and that I've included all necessary constants. I'll remove WIP once it's passing CI and it's ready for review.
2019-05-24 21:14:09 +00:00
bors
3c9376db22 Auto merge of #1366 - Susurrus:iff_constants, r=gnzlbg
Change datatype for some IFF_ constants

These were originally added as c_short types, but all other IFF_ constants
are c_int. This commit changes them to match all the other constants for
consistency.

Closes #915
2019-05-24 20:08:33 +00:00
pkubaj
8c2e02dc0d
Move aarch64 and powerpc64 targets for FreeBSD
Move to RUST_NIGHTLY_LINUX_TARGETS per gznlbg's suggestion.
2019-05-24 21:12:20 +02:00
gnzlbg
7437d0a6f1 Add a FreeBSD 12 build job and test FreeBSD12 APIs
This commits adds a second FreeBSD 12 build job,
and splits the implementation of the FreeBSD module
into two modules, one for FreeBSD 11, and one for FreeBSD 12.

The FreeBSD 11 module is compiled always by default, and is
mostly forward compatible with FreeBSD 12 systems.

The FreeBSD 12 module is only built for now in libc's CI,
and uses FreeBSD 12 data types and APIs, linking to symbols
that are only available in FreeBSD 12.

Basically, when LIBC_CI env variable is defined, and the host
system is a FreeBSD 12 system, then the FreeBSD 12 module is
automatically built and tested. Conditional compilation is done
using a `cfg(freebsd12)` flag.

This commit also re-enables many tests, and documents why
some remain disabled.
2019-05-24 20:04:17 +02:00
gnzlbg
5653a6014f Add a nightly FreeBSD Cirrus-CI task 2019-05-24 19:32:28 +02:00
bors
b722d8c691 Auto merge of #1361 - gnzlbg:std_feature, r=gnzlbg
Deprecate `use_std` cargo feature: use `std` instead .

Related to #657 .
2019-05-24 15:45:55 +00:00
Bryant Mairs
3408a6a53b Change datatype for some IFF_ constants
These were originally added as c_short types, but all other IFF_ constants
are c_int. This commit changes them to match all the other constants for
consistency.
2019-05-24 08:23:21 -07:00
John Baublitz
dfb119de26 Fix CI errors by moving non-musl netlink constants to linux/other/mod.rs 2019-05-24 09:27:50 -04:00
bors
218ceba6ba Auto merge of #1363 - gnzlbg:fix_locale_t, r=gnzlbg
Fix locale_t in unix and fuchsia.

Closes #1055.
2019-05-24 13:08:59 +00:00
gnzlbg
5e2b0d88d4 Fix locale_t in unix and fuchsia.
Closes #1055.
2019-05-24 14:15:58 +02:00
bors
9ff0a740bd Auto merge of #1362 - gnzlbg:cmsg, r=gnzlbg
Run CMSG tests on s390x

Closes #1240.
2019-05-24 12:14:05 +00:00
gnzlbg
70c9a98c1c Run CMSG tests on s390x
Closes #1240.
2019-05-24 14:13:43 +02:00
gnzlbg
09454fa723 Deprecate mach APIs: users should use the mach crate instead.
Closes #981 .
2019-05-24 14:10:13 +02:00
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