Commit Graph

2904 Commits

Author SHA1 Message Date
Dan Gohman
3aa0188f1d Add headers for WASI to libc-test/build.rs 2019-04-23 15:03:23 -07:00
Dan Gohman
1168782b3f Define WASI libc errno constants. 2019-04-23 13:26:30 -07:00
Dan Gohman
58ba8129c4 Add more WASI libc bindings. 2019-04-23 13:26:30 -07:00
bors
fa186bb2b4 Auto merge of #1323 - jackpot51:patch-1, r=gnzlbg
Bump to 0.2.52

This will allow the crt-static feature to be utilized correctly on Redox, #1322
2019-04-20 08:07:41 +00:00
bors
dfda3b0d01 Auto merge of #1319 - jasonbking:readdir, r=gnzlbg
This fixes issue #1318 - on Solarish systems __posix_readdir_r is only

defined for 32-bit Solarish targets.  Since rust doesn't currently support 32-bit Solarish targets, the line is both unnecessary and wrong.

As found with the latest fd binary, removing the line fixed the fd build (and fd then works as expected).
2019-04-20 07:11:00 +00:00
Jeremy Soller
7454238394
Bump to 0.2.52 2019-04-19 17:38:03 -06:00
bors
a79c2d4d78 Auto merge of #1322 - redox-os:redox, r=gnzlbg
redox: support crt-static

This reuses the code from musl to add support to Redox for crt-static.

Linking to `m` is also unnecessary as it is included in `c`
2019-04-19 18:45:37 +00:00
Jeremy Soller
319b7b5b4c
Fix style issue 2019-04-19 11:57:52 -06:00
Jeremy Soller
c6ea443892
Support crt-static in Redox 2019-04-19 11:04:48 -06:00
Jason King
e45fa4a217 Put comments in the correct location 2019-04-19 15:35:51 +00:00
Jason King
d79a44f35c Added doc comment w/ links explaining the difference between 32-bit and 64-bit libc for readdir_r 2019-04-19 15:33:24 +00:00
Jason King
1c1e677a90 This fixes issue #1318 - on Solarish systems __posix_readdir_r is only
defined for 32-bit Solarish targets.  Since rust doesn't currently
support 32-bit Solarish targets, the line is both unnecessary and wrong.
2019-04-17 19:12:06 +00:00
bors
0d0163380a Auto merge of #1317 - alex:patch-1, r=gnzlbg
Remove duplicate target from ci/build.sh

I'm almost certain this is not intentional
2019-04-14 20:32:41 +00:00
Alex Gaynor
55189f6aa6
Remove duplicate target from ci/build.sh
I'm almost certain this is not intentional
2019-04-14 15:54:13 -04:00
bors
363ba93ac4 Auto merge of #1314 - alexcrichton:wasi-ci, r=gnzlbg
Add binding for new `__wasilibc_find_relpath` API

This'll be used in libstd upstream, and this also enables wasi on CI!
2019-04-08 16:01:57 +00:00
Alex Crichton
cc0310146e Add binding for new __wasilibc_find_relpath API
Added recently and will be used in libstd!
2019-04-08 07:56:47 -07:00
bors
5b989dbf15 Auto merge of #1313 - keur:master, r=gnzlbg
add login_tty api from libutil
2019-04-07 19:18:08 +00:00
bors
6c0b9ce578 Auto merge of #1312 - gnzlbg:issue_temp, r=gnzlbg
Add an issue template
2019-04-07 13:23:47 +00:00
gnzlbg
6d3c5cb576 Avoid the template showing up in the issues 2019-04-07 14:26:03 +02:00
Kevin Kuehler
83ccc7b8a9
add forkpty to linux 2019-04-07 03:16:19 -07:00
Kevin Kuehler
03481551dd
add login_tty api from libutil 2019-04-05 14:26:08 -07:00
Alex Crichton
3f1e8b9c45 Enable the wasi target on CI
Now that wasi is in nightlies, we can run it on PRs!
2019-04-05 08:03:03 -07:00
gnzlbg
6c809d6bbc Add an issue template 2019-04-02 09:30:14 +02:00
bors
173c5be79b Auto merge of #1309 - alexcrichton:bump, r=gnzlbg
Bump to 0.2.51

Pulls in the new wasi target support!
2019-03-28 18:48:27 +00:00
bors
f682ca677f Auto merge of #1308 - tormol:master, r=gnzlbg
Add mq_getfd_np() on FreeBSD and fix mqd_t on DragonFlyBSD

[`mq_getfd_np()` was added in FreeBSD 11](https://svnweb.freebsd.org/base/stable/11/include/mqueue.h?revision=306905&view=markup). I'm already using it in my [posixmq crate](https://github.com/tormol/posixmq) for mio/kqueue integration, and I've tested it both in virtualbox and on Cirrus-CI.

[`mqd_t` in an `int` on DragonFlyBSD](e7ab884bd4/sys/sys/types.h (L139)) even though it's a pointer on FreeBSD, because [DragonflyBSD's implementation is based on NetBSD](f2df0f7ca6). The definitions for `mq_attr` are already separate and correct.
Does fixing this count as a breaking change? I think the current definition will work in most cases, because IIRC the calling convention means that `mqd_t` is always passed via registers, the upper 32 bits might just contain garbage.
I've *not* tested this change on DragonFlyBSD.

I want to add mq symbols for solarish, but is the CDDL license compatible with Apache-2.0 and MIT?
2019-03-28 16:23:15 +00:00
Alex Crichton
c8d6d546aa Bump to 0.2.51 2019-03-28 06:31:54 -07:00
bors
1b346b82dd Auto merge of #1307 - alexcrichton:wasi-pr, r=gnzlbg
Add intial 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]: https://github.com/rust-lang/rust/pull/59464
2019-03-28 07:42:05 +00:00
Alex Crichton
bce4454566 Touch up style of wasi.rs 2019-03-27 13:29:18 -07:00
Alex Crichton
8662b47b27 Address some PR feedback 2019-03-27 11:21:44 -07:00
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
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
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