Commit Graph

411 Commits

Author SHA1 Message Date
BaoshanPang d1a37cbcd6 Support vxWorks in libc-test 2019-10-11 09:47:45 -07:00
gnzlbg 9b97095acc Skip max_align_t in FreeBSD10 2019-09-21 14:45:07 +02:00
bors 58b2706e75 Auto merge of #1518 - gnzlbg:freebsd10support, r=gnzlbg
Add FreeBSD10 support

This adds libc-test support for Freebsd10 and a CI build job that tests
FreeBSD10 with LIBC_CI only.

cc @asomers this is a follow up to #1491 .
2019-09-21 09:34:21 +00:00
gnzlbg 974f550e1c Implement max_align_t 2019-09-20 17:17:22 +02:00
gnzlbg e7bcb7aff2 Re-enable all roundtrip tests 2019-09-19 16:20:33 +02:00
gnzlbg 3843c7dba1 Add FreeBSD10 support
This adds libc-test support for Freebsd10 and a CI build job that tests
FreeBSD10 with LIBC_CI only.
2019-09-16 20:50:55 +02:00
Sébastien Marie 3b7be3c193 adapt ioctl() BPF for OpenBSD 2019-08-18 10:19:49 +02:00
bors 245b0f891b Auto merge of #1440 - pizzamig:invert-freebsd12, r=gnzlbg
Add support for FreeBSD CURRENT (aka freebsd13)

Using the last FreeBSD-CURRENT (development snapshot) the libc build, but tests fail.
This patch detects and supports FreeBSD CURRENT as freebsd13, and reworks the conditional compilation to use the `freebsd11` attribute instead of `not(freebsd12)`
For now, freebsd13 is reusing all freebsd12 definitions, except for `ELAST`
While here, add a new `errno`introduced in freebsd13
2019-08-10 16:38:46 +00:00
bors a2b48d16f7 Auto merge of #1456 - semarie:openbsd-roundtrip, r=gnzlbg
skip roundtrip on few structs on OpenBSD

skip roundtrip on some structs on OpenBSD. it is mostly the same than other targets: dirent, utsname, utmp.
2019-08-09 12:50:55 +00:00
Luca Pizzamiglio 154e58dd12 Fix format 2019-08-09 13:54:21 +02:00
gnzlbg e63e7d4180 Formatting 2019-08-05 10:24:36 +02:00
Sébastien Marie 04c7f1166c skip roundtrip on few struct on OpenBSD 2019-08-05 09:14:42 +02:00
Luca Pizzamiglio 64bc745405 Properly define freebsd11 attribute 2019-07-28 23:00:53 +02:00
Luca Pizzamiglio 4a74f1e0df Add support for FreeBSD CURRENT (aka freebsd13)
Currently, libc supports and detects freebsd11 and freebsd13
Unknown versions, like freebsd13, is treated as freebsd11.
This patch solve the issues, detecting freebsd13 and treating it like
freebsd12.
Inverting the logic not(freebsd12) -> freebsd11 where possible
2019-07-28 23:00:53 +02:00
gnzlbg 6ca5bfaea1 Setup Azure Pipelines 2019-07-27 13:25:22 +02:00
bors 789c38144e Auto merge of #1423 - Susurrus:issue_665, r=gnzlbg
Remove AF_MAX, PF_MAX, NET_MAXID constants

These constants have already been deprecated for a few releases with
a deprecation notice, so they can finally be removed.

Closes rust-lang/libc#665
2019-07-06 16:47:40 +00:00
gnzlbg b2dcd5c76a Fix x86_64 musl 2019-07-05 18:24:16 +02:00
gnzlbg 7fa6534858 Fix FreeBSD and Appveyor 2019-07-05 18:13:03 +02:00
gnzlbg 3fd4dd7ea3 Silence roundtrip errors 2019-07-05 18:13:03 +02:00
gnzlbg b81a234913 Silence roundtrip in linux 2019-07-05 18:13:03 +02:00
Bryant Mairs 215f095601 Remove AF_MAX, PF_MAX, NET_MAXID constants
These constants have already been deprecated for a few releases with
a deprecation notice, so they can finally be removed.

Closes rust-lang/libc#665
2019-07-05 07:39:00 -07:00
gnzlbg 5e3866ad56 Update ctest version 2019-07-03 13:00:03 +02:00
Adam C. Foltzer 339fe22653
add fixmes for the ucontext_t shadow stack field 2019-06-27 09:32:52 -07:00
Adam C. Foltzer 886bb3f2f8
filter out the struct test rather than removing the header 2019-06-26 16:56:53 -07:00
Adam C. Foltzer dba4138305
remove newer `__ssp` field from `ucontext_t` for earlier glib compat
Per discussion in #1410, this is necessary to avoid struct size mismatches between Rust and C on
systems with glibc < 2.28.
2019-06-26 15:52:56 -07:00
Stefano Garzarella 4825678dee libc-test: include "linux/vm_sockets.h" to test VSOCK
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2019-06-05 11:44:42 +02:00
gnzlbg bf1ab2b6a1 CI sparc64 glibc version does not have statx 2019-05-29 14:57:56 +02:00
bors c9fbd00633 Auto merge of #1372 - tklauser:f-seal-future-write, r=gnzlbg
Add F_SEAL_FUTURE_WRITE on Linux/Android

This was added in Linux 5.1 and will only show up in the next glibc
release, thus skip in tests.
2019-05-28 17:18:53 +00:00
Tobias Klauser 73643694b3 Add F_SEAL_FUTURE_WRITE on Linux/Android
This was added in Linux 5.1 and will only show up in the next glibc
release, thus skip in tests.
2019-05-28 16:33:01 +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 0bc18a5dc9 [breaking change] sendmmsg/recvmmsg have incorrect signature c_int vs c_uint on emscripten 2019-05-28 16:01:26 +02:00
gnzlbg 5ede8aab94 Enable disabled tests 2019-05-28 16:01:26 +02:00
gnzlbg 1a3d1525da [breaking change] sendmmsg/recvmmsg flag argument is an unsigned integer on MUSL 2019-05-28 10:09:43 +02: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
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 4ac26afa83 Deprecate `use_std` cargo feature: use `std` instead .
Related to #657 .
2019-05-24 13:22:03 +02: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 ccad8b426c Fix musl build jobs 2019-05-23 19:09:39 +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 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 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
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