Commit Graph

2826 Commits

Author SHA1 Message Date
gnzlbg
3231740da4 Bump patch version to 0.2.54 2019-05-02 18:33:25 +02:00
gnzlbg
20dc89c36e Revert PR: 1322 2019-05-02 18:32:52 +02:00
bors
11f30a8837 Auto merge of #1329 - alex:patch-1, r=gnzlbg
Deprecate _pad field on siginfo_t

As discussed in https://github.com/rust-lang/libc/pull/1316
2019-05-02 08:08:46 +00:00
Alex Gaynor
9b43adea00 Oops, move this outside the s! block 2019-05-01 12:17:56 +00:00
Alex Gaynor
53591a693a Implement si_addr 2019-05-01 12:14:42 +00:00
Alex Gaynor
7c2f669af0
Deprecate _pad field on siginfo_t 2019-04-30 22:47:21 -04:00
bors
e2bf06c1fb Auto merge of #1328 - crlf0710:master, r=gnzlbg
Fix getgrgid_r to accept gid_t.

Closes #1320.
2019-04-29 15:31:08 +00:00
Charles Lew
1cf0294e2d Fix getgrgid_r to accept gid_t. 2019-04-29 22:12:41 +08:00
bors
f9818f14f8 Auto merge of #1326 - sunfishcode:bump, r=alexcrichton
Bump to 0.2.53

This adds more WASI support, and in particular adds support for WASI
being a target_os rather than a target_env, which relates to this PR:

https://github.com/rust-lang/rust/pull/60117
2019-04-26 13:28:44 +00:00
Dan Gohman
6ec8c23e5e Bump to 0.2.53
This adds more WASI support, and in particular adds support for WASI
being a target_os rather than a target_env, which relates to this PR:

https://github.com/rust-lang/rust/pull/60117
2019-04-26 00:21:50 -07:00
bors
0ec9af989c Auto merge of #1325 - sunfishcode:wasi-more-libc, r=alexcrichton
Add more WASI libc bindings

This picks up #1321, adding more WASI libc bindings, adding several more fixes. In particular, `cargo test --all` including libc-test now builds successfully.
2019-04-25 06:04:19 +00:00
Dan Gohman
13ddc16e06 Remove utsname and uname for now too. 2019-04-24 11:28:45 -07:00
Dan Gohman
599c0f76dd Remove fd_set, select, and pselect entirely for now.
fd_set isn't automatically copyable. While it will be possible to fix
that, for now just remove these so that they don't block other changes.
2019-04-24 08:09:15 -07:00
Dan Gohman
7ba5e34754 Remove the definition of ULONG_SIZE which is no longer needed. 2019-04-24 06:16:28 -07:00
Dan Gohman
4d0e84b8be Use the WASI layout for fd_set. 2019-04-24 05:40:34 -07:00
Dan Gohman
edd541e67f Remove FD_SET and related functions for now. 2019-04-23 23:10:38 -07:00
Dan Gohman
8a5b230c14 Update to the latest wasi-sysroot.
This contains several fixes, including the FD_ISSET signature change
that the previous patch in this PR needs.
2019-04-23 21:01:39 -07:00
Dan Gohman
ef7ae73239 Fix dirent to match WASI libc's definition.
dirent contains a flexible array member, so don't test its sizeof, don't
allow it to be copied, and don't represent it with an artificial size.
2019-04-23 15:03:23 -07:00
Dan Gohman
a625c69544 Make FD_ISSET's argument a pointer to const, to match the libc declaration. 2019-04-23 15:03:23 -07:00
Dan Gohman
6b524b36c8 Don't make opaque types like FILE and DIR copyable.
Also, locale_t is a typedef for a pointer to an opaque struct, so
represent it that way explicitly.
2019-04-23 15:03:23 -07:00
Dan Gohman
49c0dc98d0 Don't add "struct" to "DIR" or "fd_set". 2019-04-23 15:03:23 -07:00
Dan Gohman
30ed9835ed Recognize WASI as either a target_env or a target_os.
Rustc is changing it to be target_os; for now, recognize both.
2019-04-23 15:03:23 -07:00
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