Commit Graph

3029 Commits

Author SHA1 Message Date
Alex Crichton
87def1fb80 Add intiial support for wasm32-unknown-wasi
This target is [being proposed][LINK] int he rust-lang/rust repository
and this is intended to get coupled with that proposal. The definitions
here all match the upstream reference-sysroot definitions and the
functions all match the reference sysroot as well. The linkage here is
described more in detail on the Rust PR itself, but in general it's
similar to musl.

Automatic verification has been implemented in the same manner as other
targets, and it's been used locally to develop this PR and catch errors
in the bindings already written (also to help match the evolving sysroot
of wasi). The verification isn't hooked up to CI yet though because
there is no wasi target distributed via rustup just yet, but once that's
done I'll file a follow-up PR to execute verification on CI.

[LINK]:
2019-03-27 09:24:48 -07:00
Torbjørn Birch Moltu
652b8323d0 Correct mqd_t on DragonFlyBSD 2019-03-27 15:09:57 +01:00
Torbjørn Birch Moltu
75c71f9963 Add mq_getfd_np() for FreeBSD 2019-03-27 15:09:49 +01:00
bors
600f635072 Auto merge of #1306 - gnzlbg:fix_asmjs, r=gnzlbg
Don't fix asmjs and wasm32 build jobs

This doesn't fix the jobs, but at least now libc-test reports no errors, even though they still fail to link.
2019-03-26 10:11:55 +00:00
gnzlbg
8abce839fc Fix build 2019-03-26 08:31:46 +01:00
gnzlbg
c217e2f9be Move inotify to the linux and android sub-modules 2019-03-26 08:31:46 +01:00
gnzlbg
917a20c4e3 Move IPV6_FLOW... constants to the linux and android sub-modules 2019-03-25 20:01:08 +01:00
gnzlbg
0a9511eb21 Move inotify_event to the linux and android sub-modules 2019-03-25 19:43:58 +01:00
bors
e1c9ad190b Auto merge of #1301 - dingelish:master, r=gnzlbg
Add essential target_vendor check for sgx

As discussed in issue [57231](https://github.com/rust-lang/rust/issues/57231), the current `sgx` branch only works for Fortanix's sgx platform. So the `target_vendor` should be checked here.

Signed-off-by: Yu Ding <dingelish@gmail.com>
2019-03-11 08:46:02 +00:00
Yu Ding
21503efac3 Add essential target_vendor check for sgx
Signed-off-by: Yu Ding <dingelish@gmail.com>
2019-03-08 10:42:17 -08:00
bors
920ee0f162 Auto merge of #1299 - leo60228:master, r=gnzlbg
Bump to 0.2.50

I'm using libnx-rs too, and it'd be nice to have #1278 in a release.
2019-03-05 09:58:07 +00:00
leo60228
e2785de85d Bump libc version 2019-03-04 18:03:29 -05:00
Bryant Mairs
8ff57d4d8e Remove termios2 from musl targets
As of musl 1.1.20, termios2 doesn't exist in musl for any target.
2019-03-04 08:53:54 -08:00
Bryant Mairs
8fa7876ce7 Correct datatype for various termios constants 2019-03-04 08:53:54 -08:00
bors
750a7a61b4 Auto merge of #1297 - mati865:docker-images-working, r=gnzlbg
Upgrade bunch of EOL docker images to Ubuntu 18.04

When upgrading other Dockerfiles (not modified in this PR) they fail with different errors:
https://travis-ci.com/mati865/libc/jobs/181623075
https://travis-ci.com/mati865/libc/jobs/181623059
https://travis-ci.com/mati865/libc/jobs/181623067

I think it's because of these 2 commits in glibc:
https://sourceware.org/git/?p=glibc.git;a=commit;h=b05cb613e7ae507680c8d914b3e788eea782c0d6
https://sourceware.org/git/?p=glibc.git;a=commit;h=2dba5ce7b8115d6a2789bf279892263621088e74

I have no idea how to fix them so leaving it for somebody who knows what to do.
2019-03-03 22:18:11 +00:00
bors
83d97c2e5b Auto merge of #1296 - gnzlbg:build_uclib, r=gnzlbg
Check that more targets build
2019-03-03 21:22:24 +00:00
Mathias Svensson
457b0f9902 Set the type for S_ISUID, S_ISGID and S_ISVTX correctly 2019-03-03 20:22:54 +01:00
gnzlbg
183c51bc88 Fix uclibc l4re 2019-03-03 20:00:02 +01:00
gnzlbg
51794419a5 Fix uclibc build errors 2019-03-03 18:44:21 +01:00
gnzlbg
278c56553e Check that more targets build 2019-03-03 18:44:21 +01:00
Mateusz Mikuła
96eb1b234f Bump NFT_*_MAXNAMELEN to 256 for PPC 2019-03-03 18:44:05 +01:00
Mateusz Mikuła
481a521178 Upgrade bunch of EOL docker images to Ubuntu 18.04 2019-03-03 18:43:25 +01:00
bors
8d94e00051 Auto merge of #1292 - hermitcore:master, r=gnzlbg
add HermitCore support even if it doesn't have a UNIX interface

Currently, we redefine the interface between the HermitCore kernel (https://hermitcore.org) and Rust’s standard library. In the future, it will not depend on a POSIX-compatible C library. Consequently, we add the support of HermitCore if the "unix" environment isn’t set. It will be great to integrate this patch because it would simplify our development. The classical interface is still supported and part of the subdirectory "unix".
2019-03-03 16:32:26 +00:00
Stefan Lankes
14353e8101 remove obsolete definition of gid_t and uid_t 2019-03-03 16:24:54 +01:00
bors
234f9a6569 Auto merge of #1293 - humenda:master, r=gnzlbg
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-03 15:18:25 +00:00
Stefan Lankes
5d185569ac remove unused variables 2019-03-03 15:15:06 +01:00
Stefan Lankes
be35992bb5 add missing debug trait for sockaddr_storage 2019-03-03 14:23:37 +01:00
bors
2c278d12a0 Auto merge of #1295 - semarie:openbsd-vm_size_t, r=gnzlbg
vm_size_t does not exist on OpenBSD and Bitrig

unbreak openbsd and bitrig after #1294

r? @gnzlbg
2019-03-03 09:17:24 +00:00
Stefan Lankes
cab10b4790 add missing traits like Debug 2019-03-03 10:02:12 +01:00
Sébastien Marie
887ac11ed0 vm_size_t does not exist on OpenBSD 2019-03-03 06:50:23 +01:00
Stefan Lankes
52bb152444 allowd unused types ggid_t and uuid_t 2019-03-03 01:34:02 +01:00
bors
b166b11c38 Auto merge of #1294 - GuillaumeGomez:vm-size-t, r=gnzlbg
Add vm_size_t
2019-03-03 00:08:19 +00:00
Guillaume Gomez
9f3c8b3063 Add vm_size_t 2019-03-03 01:02:46 +01:00
Stefan Lankes
682b8af286 add target "hermit" to build.sh 2019-03-03 00:39:31 +01:00
Stefan Lankes
585d45a1f3 remove redefinition of c_char and w_char, remove typo 2019-03-02 20:18:52 +01:00
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
Stefan Lankes
6e9536924a Merge remote-tracking branch 'rustlang/master' 2019-03-02 13:33:48 +01:00
Stefan Lankes
92b24f5f63 add HermitCore support even if it doesn't have a UNIX interface 2019-03-02 13:29:16 +01: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