Commit Graph

2741 Commits

Author SHA1 Message Date
Sebastian Humenda
3c8a4932a4 fix style issue 2019-03-02 19:47:53 +01:00
Sebastian Humenda
2c18025f88 x86_64-uclibc-l4re: fix syntax error + linter issues
-   fix syntax error in expand_align macro
-   fix errors due to doubly defined symbols / functions for
    x86_64-uclibc
2019-03-02 19:09:17 +01:00
bors
f54a0a1056 Auto merge of #1291 - semarie:openbsd-pthread-stack-min, r=gnzlbg
adjust PTHREAD_STACK_MIN to current value on OpenBSD

adjust `PTHREAD_STACK_MIN` to current value on OpenBSD, and while here, generate the right file in test_openbsd()

I should say that I am a bit disappointed. If I didn't miss anything, the related change for `PTHREAD_STACK_MIN` is near to one year old. And clearly with the name error in `test_openbsd()` something wasn't clean.
2019-03-02 13:20:28 +00:00
Sébastien Marie
917ff60a4b adjust PTHREAD_STACK_MIN to current value on OpenBSD
while here, generate the right file in test_openbsd()
2019-03-02 13:14:17 +01:00
bors
7644a1f7b6 Auto merge of #1290 - gnzlbg:doc_link, r=gnzlbg
Link docs for other platforms in docs.rs
2019-03-02 11:03:03 +00:00
gnzlbg
e67dcdbccb Link docs for other platforms in docs.rs 2019-03-02 11:13:32 +01:00
bors
1236fed394 Auto merge of #1154 - gnzlbg:semverver2, r=gnzlbg
Verify that only non-technical breaking changes are applied to libc

Closes #270 .

cc @alexcrichton so this would be a solution to #270 that uses rust-semverver to check that the API of `libc` contains only non-technical breaking changes.

This is a WIP and uses a fork of `rust-semverver` for now, but I've sent PRs upstream already. This is the only idea I have for solving #270 . `rust-semverver` is not perfect, but it can deal with functions, consts, and simple structs just fine, and that's pretty much everything that libc uses.

cc @ibabushkin

Some other notes:

* we have to compile `rust-semverver` for each toolchain version, and it depends on `cargo` so we have to build ~160 dependencies. Using `cache: cargo` breaks everything.
2019-03-02 10:11:51 +00:00
gnzlbg
d6443f7abe Use semverver upstream 2019-03-01 20:34:22 +01:00
bors
2cd7b3bdea Auto merge of #1288 - red75prime:pr-uclibc-arm, r=gnzlbg
Add arm-uclibc definitions

I used `buildroot-2017.05` to build armv7 cross compiler, `uclibc-1.0.24` and `libc-test`. I've executed `libc-test` on armv7-based SoC, using modified `libc-test` to account for the environment. Modified libc-test is not included in this PR because it is too dependent on cross compilation and execution environment.
2019-03-01 14:17:51 +00:00
red75prime
a06a703f38 Fix style 2019-02-28 20:28:38 +05:00
red75prime
982224f000 Fix formatting 2019-02-28 20:04:38 +05: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
4f9791028a Add arm-uclibc definitions 2019-02-28 18:41:56 +05:00
red75prime
d17870a8e7 Fix typo in sem_t alignment 2019-02-28 18:00:33 +05:00
gnzlbg
7f163f5d54 Allow the Semver jobs to fail 2019-02-26 16:50:59 +01:00
gnzlbg
45c7930318 Test semver for all normal targets 2019-02-26 16:45:06 +01:00
gnzlbg
6fac01b7bf Verify that only non-technical breaking changes are applied to libc
Closes #270 .
2019-02-26 12:03:47 +01: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