2934 Commits

Author SHA1 Message Date
leo60228
6bc0914be2 Fix FIONBIO type 2019-05-09 19:11:04 -04:00
leo60228
5400c6e695 Add more FreeBSD TCP_ constants 2019-05-09 19:10:38 -04:00
leo60228
75df0e19eb Add more FreeBSD IPv6 constants 2019-05-09 19:08:42 -04:00
leo60228
5d91cb3409 Add FIOCLEX 2019-05-09 19:03:12 -04:00
leo60228
e3c95f143b Add IP_ and IPV6_ 2019-05-09 19:02:53 -04:00
leo60228
c8e8ec6f23 Use FreeBSD SO_ constants on newlib
This is necessary to set socket options on the Nintendo Switch, which uses a socket implementation directly ported from FreeBSD.
2019-05-09 18:34:16 -04:00
Jeremy Soller
eb75c48917
Move Redox support into unix module 2019-05-04 09:01:03 -06:00
bors
39ca01c8b3 Auto merge of #1331 - gnzlbg:revert_1322, r=alexcrichton
Revert PR 1322

Reverts PR #1322 .

cc https://github.com/rust-lang/rust/pull/60117
2019-05-02 16:46:11 +00:00
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