Commit Graph

2980 Commits

Author SHA1 Message Date
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
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