Commit Graph

2727 Commits

Author SHA1 Message Date
Mateusz Mikuła
481a521178 Upgrade bunch of EOL docker images to Ubuntu 18.04 2019-03-03 18:43:25 +01:00
bors
804e8d128e Auto merge of #1287 - red75prime:pr-uclibc-mips32-align, r=gnzlbg
Fix typo in `sem_t` alignment for mips32-uclibc
2019-02-28 14:40:11 +00:00
red75prime
d17870a8e7 Fix typo in sem_t alignment 2019-02-28 18:00:33 +05:00
bors
b905aef340 Auto merge of #1281 - semarie:openbsd-test, r=gnzlbg
cleanup libc-test for OpenBSD

here a cleanup for libc-test for OpenBSD

Some elements (compat for old and now unsupported OpenBSD versions) could be removed, but I think it is better to address them after this PR is merged.

the testsuite for OpenBSD still pass with it (well, with #1280)

r? @gnzlbg
2019-02-24 17:27:39 +00:00
bors
841dbe36a5 Auto merge of #1280 - semarie:openbsd-glob_t, r=gnzlbg
openbsd: glob_t recently changed to conform posix (use size_t)

on openbsd, upcoming stable version have changed glob_t definition to follow posix definition (using `size_t` instead of `int` on some fields)

the change preserves bitrig definition

r? @gnzlbg
2019-02-24 15:57:22 +00:00
Sébastien Marie
91748de469 cleanup libc-test for OpenBSD 2019-02-24 15:47:06 +01:00
bors
7abe407e54 Auto merge of #1279 - gnzlbg:cleanup_redox_cloudabi, r=gnzlbg
Clean up Redox, CloudABI, DragonflyBSD, and NetBSD in libc-test/build.rs
2019-02-24 14:32:42 +00:00
gnzlbg
722b3e5337 Formatting 2019-02-24 15:14:02 +01:00
gnzlbg
70e0c4e877 Cleanup DragonflyBSD in libc-test/build.rs 2019-02-24 15:13:47 +01:00
gnzlbg
87f10ab9ee Cleanup NetBSD logic in libc-test/build.rs 2019-02-24 15:02:08 +01:00
gnzlbg
09afebe655 Clean up Redox, Solaris, and CloudABI 2019-02-24 14:38:01 +01:00
Sébastien Marie
568d40f0eb glob_t recently changed to conform posix (use size_t) 2019-02-24 14:24:46 +01:00
bors
66f00d2ebb Auto merge of #1271 - Susurrus:more_debug_impls, r=gnzlbg
Implement more extra_traits

Finishing the implementation of rust-lang/rust#57715 now that all platforms are tested in CI. I plan to expand this CI to all platforms that need this treatment (solarish, empscripten, freebsd, and netbsd), but thought I'd get the part I've already started running in CI since I can't test this changes locally.
2019-02-24 13:19:56 +00:00
bors
2ea72069e2 Auto merge of #1275 - gnzlbg:win_clean, r=gnzlbg
Cleanup Windows libc-test build.rs
2019-02-24 12:15:55 +00:00
gnzlbg
0980cf593a Cleanup Windows libc-test build.rs 2019-02-24 13:11:14 +01:00
bors
a5c20d6451 Auto merge of #1278 - ischeinkman:master, r=gnzlbg
Newlib fixes.
2019-02-24 09:05:48 +00:00
ischeinkman
372ae7953f Removed repeated IPPROTO constants. 2019-02-23 15:59:20 -08:00
Bryant Mairs
d795b07841 Add extra traits for solarish datatypes 2019-02-23 15:03:52 -08:00
Bryant Mairs
b39a762579 Add extra traits for NetBSD 2019-02-23 15:03:52 -08:00
Bryant Mairs
c3ddeaeed3 Add extra traits for freebsd datatypes 2019-02-23 15:03:52 -08:00
Bryant Mairs
6061ec3e9c Add extra traits for not_bsds 2019-02-23 15:03:52 -08:00
Bryant Mairs
9af1e00b11 Add extra traits for emscripten datatypes 2019-02-23 15:03:52 -08:00
Bryant Mairs
ed23af16ca Add extra traits for dragonfly datatypes 2019-02-23 15:03:52 -08:00
ischeinkman
f64ee03115 Removed newlib struct duplicates. 2019-02-23 14:49:30 -08:00
Bryant Mairs
7dc2999574 Add extra traits for apple datatypes 2019-02-23 07:41:47 -08:00
Bryant Mairs
7597520dae Add extra traits for haiku datatypes 2019-02-22 20:15:38 -08:00
Bryant Mairs
35280a05f3 Add extra traits for fuchsia datatypes 2019-02-22 20:15:38 -08:00
bors
68701e7e67 Auto merge of #1274 - gnzlbg:clean_libctest_apple, r=gnzlbg
Clean libc-test for apple targets

This cleans up the build.rs of `libc-test` for apple targets.

I wanted to update the docker containers of some targets so that we can start testing newer currently-skipped APIs properly, but it is impossible to figure out which headers and APIs are skipped for each target, which has to change if we update the glibc version in one Linux container but not the other (updating them all at once is just madness).

This PR separates the testing of apple targets into its own self-contained function. This allows seeing exactly which headers are included, and which items are skipped. A lot of work will be required to separate the testing of all major platforms and make the script reasonable.

During the clean up, I discovered that, at least for apple targets, deprecated but not removed APIs are not tested. I re-enabled testing for those, and fixed `daemon`, which was not properly linking its symbol. I also added the `#[deprecated]` attribute to the `#[deprecated]` APIs of the apple targets. The attribute is available since Rust 1.9.0 and the min. Rust version we support is Rust 1.13.0.

Many other APIs are also currently not tested "because they are weird" which I interpret as "the test failed for an unknown reason", as a consequence:

* the signatures of execv, execve, and execvp are incorrect (see https://github.com/rust-lang/libc/issues/1272)

* the `sig_t` type is called `sighandler_t` in libc for some reason: https://github.com/rust-lang/libc/issues/1273

This probably explains why some other things, like the `sa_handler`/`sa_sigaction` fields of `sigaction` were skipped. The field is actually a union, which can be either a `sig_t` for the `sa_handler` field, or some other type for the `sa_sigaction` field, but because the distinction was not made, the field was not checked.

The latest ctest version can check volatile pointers, so a couple of skipped tests are now tested using this feature.
2019-02-22 18:18:25 +00:00
gnzlbg
f5cbdbc2b9 Clean libc-test for apple targets
This cleans up the build.rs of `libc-test` for apple targets.

I wanted to update the docker containers of some targets so that we can start
testing newer currently-skipped APIs properly, but it is impossible to figure
out which headers and APIs are skipped for each target.

This PR separates the testing of apple targets into its own self-contained
function. This allows seeing exactly which headers are included, and which items
are skipped. A lot of work will be required to separate the testing of all major
platforms and make the script reasonable.

During the clean up, I discovered that, at least for apple targets, deprecated
but not removed APIs are not tested. I re-enabled testing for those, and fixed
`daemon`, which was not properly linking its symbol. I also added the
`#[deprecated]` attribute to the `#[deprecated]` APIs of the apple targets. The
attribute is available since Rust 1.9.0 and the min. Rust version we support is
Rust 1.13.0.

Many other APIs are also currently not tested "because they are weird" which I
interpret as "the test failed for an unknown reason", as a consequence:

* the signatures of execv, execve, and execvp are incorrect (see
  https://github.com/rust-lang/libc/issues/1272)

* the `sig_t` type is called `sighandler_t` in libc for some reason:
  https://github.com/rust-lang/libc/issues/1273

This probably explains why some other things, like the
`sa_handler`/`sa_sigaction` fields of `sigaction` were skipped. The field is
actually a union, which can be either a `sig_t` for the `sa_handler` field, or
some other type for the `sa_sigaction` field, but because the distinction was
not made, the field was not checked.

The latest ctest version can check volatile pointers, so a couple of skipped
tests are now tested using this feature.
2019-02-22 19:18:02 +01:00
Bryant Mairs
a12c38332e Unify PartialEq and Hash implementation 2019-02-22 07:24:57 -08:00
bors
400372d7b9 Auto merge of #1270 - gnzlbg:no_extern_std, r=gnzlbg
Do not import the std library with use_std
2019-02-22 11:15:38 +00:00
bors
8c571e0ce9 Auto merge of #1269 - gnzlbg:fix_cp_pub, r=gnzlbg
Unnecessary pub use when private module use is available

Addresses part of #1266
2019-02-22 09:38:16 +00:00
gnzlbg
61aeeda955 Do not import the std library with use_std 2019-02-22 00:03:45 +01:00
gnzlbg
8eb506620c Unnecessary pub use when private module use is available 2019-02-21 23:51:15 +01:00
bors
fecc1fd607 Auto merge of #1268 - alexcrichton:fix-features, r=gnzlbg
Fix build of `rustc-dep-of-std` feature

Enusre that `no_core` is turned on, and while here update the `no_std`
header to be unconditionally applied.

Closes #1267
2019-02-21 20:52:11 +00:00
Alex Crichton
5049a97111 Fix build of rustc-dep-of-std feature
Enusre that `no_core` is turned on, and while here update the `no_std`
header to be unconditionally applied.

Closes #1267
2019-02-21 10:57:44 -08:00
bors
577fdc86b2 Auto merge of #1248 - Ralith:flowinfo, r=gnzlbg
Expose IPV6_FLOWINFO* on Linux
2019-02-21 09:21:11 +00:00
gnzlbg
dda85056bf Fix broken links in README 2019-02-21 10:18:06 +01:00
gnzlbg
cd49efc997 Fix typo in README; do not generate .nojekyll file in gh-pages branch 2019-02-21 08:46:25 +01:00
bors
5cefa3a2c3 Auto merge of #1263 - gnzlbg:no_core_build, r=gnzlbg
Test that targets without a shipping libcore / libstd build properly

This PR tests that `libc` builds on targets that currently don't ship a `libcore`/`libstd` by cross-compiling to them from Linux and MacOSX using `Xargo`.

This fixes the build on DragonflyBSD (superseeds #1237), Haiku, bitrig, and OpenBSD (superseeds #1259).

cc @asomers @strangelittlemonkey @semarie
2019-02-20 23:05:11 +00:00
gnzlbg
a25a42be76 Speed up documentation build by using cargo when possible 2019-02-20 18:42:34 +01:00
gnzlbg
575fdc8c0d Do not try to build documentation for apple targets from Linux 2019-02-20 17:57:01 +01:00
gnzlbg
7017701b21 Re-enable target-specific docs 2019-02-20 15:27:57 +01:00
gnzlbg
863d703910 Retry downloading artifacts to prevent spurious failures due to network issues 2019-02-20 13:01:00 +01:00
gnzlbg
5f9be7eebe Remove the CMSG_ APIs from bitrig 2019-02-20 11:22:43 +01:00
gnzlbg
7da4f477d0 cross-compile to the gnu windows targets on nightly with libstd 2019-02-20 11:21:38 +01:00
gnzlbg
6a6dd26447 Only fetch std component when there is something to fetch 2019-02-20 11:21:38 +01:00
gnzlbg
e3914cf31a Make the build script fail faster 2019-02-20 11:21:38 +01:00
gnzlbg
9bdc5122da The armv7r targets are not available on nightly 2019-02-20 11:21:38 +01:00
gnzlbg
34dd2da3f9 Run xargo only on Linux 2019-02-20 11:21:38 +01:00