Commit Graph

2423 Commits

Author SHA1 Message Date
Tom Parker-Shemilt
0942070c31 Remove hacky Travis workaround 2018-11-26 12:07:34 +00:00
Tom Parker-Shemilt
9a04c39566 Remove non-POSIX loop construct 2018-11-24 19:27:22 +00:00
Tom Parker-Shemilt
b05e05819d Download Docker images first as that seems to work better at least locally 2018-11-24 19:18:51 +00:00
Tom Parker-Shemilt
75071fe11f Merge branch 'master' into strcase-various 2018-11-23 22:35:16 +00:00
Tom Parker-Shemilt
cd6b95db83 Split out windows strcase* work into gnu/msvc files 2018-11-23 22:33:20 +00:00
Tom Parker-Shemilt
d75fc9c34a strcase*: add redox support 2018-11-23 21:26:02 +00:00
Tom Parker-Shemilt
b75803751f strcase*: Add cloudabi support 2018-11-23 21:26:02 +00:00
Tom Parker-Shemilt
46f08b52a9 Pull cfg_if! outside the extern 2018-11-23 21:13:58 +00:00
bors
530f31f6c1 Auto merge of #1141 - gnzlbg:cats, r=gnzlbg
Use crates.io keywords and categories

Closes #651 .
2018-11-23 11:26:18 +00:00
bors
b43f9868bf Auto merge of #1139 - gnzlbg:map_anon, r=gnzlbg
Add alias for MAP_ANONYMOUS to Apple targets.

Closes #1060 .
2018-11-22 19:16:34 +00:00
gnzlbg
7afe55be24 Use crates.io keywords and categories
Closes #651 .
2018-11-22 19:06:40 +01:00
gnzlbg
a5bfa1a044 Add alias for MAP_ANONYMOUS to Apple targets.
Closes #1060 .
2018-11-22 17:48:32 +01:00
Alex Crichton
1eeba38558 Remove unstable libc feature on rustc-dep-of-std
No longer needed and this is done via other means in upstream rustc
2018-11-21 19:25:40 -08:00
Tom Parker-Shemilt
08eaa2c45e Split out strcase* into unix, MSVC and Windows-GNU 2018-11-21 23:55:23 +00:00
Tom Parker-Shemilt
d931cd27ea Merge branch 'master' into strcase-various 2018-11-21 23:55:01 +00:00
bors
03310f8ad6 Auto merge of #1134 - alexcrichton:rustc-test, r=gnzlbg
Prepare for being included via crates.io into std

This commit prepares the `libc` crate to be included directly into the
standard library via crates.io. More details about this can be found on
rust-lang/rust#56092, but the main idea is that this crate now depends
on core/compiler-builtins explicitly (but off-by-default).

The main caveat here is that this activates `no_core` when building as
part of libstd, which means that it needs to explicitly have an `iter`
and `option` module for the expansion of `for` loops to work.
2018-11-21 23:28:21 +00:00
Alex Crichton
91bd079e23 Prepare for being included via crates.io into std
This commit prepares the `libc` crate to be included directly into the
standard library via crates.io. More details about this can be found on
rust-lang/rust#56092, but the main idea is that this crate now depends
on core/compiler-builtins explicitly (but off-by-default).

The main caveat here is that this activates `no_core` when building as
part of libstd, which means that it needs to explicitly have an `iter`
and `option` module for the expansion of `for` loops to work.
2018-11-21 15:27:56 -08:00
bors
5b403753da Auto merge of #1129 - gnzlbg:sgx, r=gnzlbg
Add SGX C types

cc @jethrogb
2018-11-21 22:19:45 +00:00
gnzlbg
5c1a6b8a6d splice the common libc functions and ctypes throughout the library 2018-11-21 20:58:02 +01:00
bors
e85479baa5 Auto merge of #1132 - glandium:master, r=alexcrichton
core::ffi::c_void is available since rustc 1.30
2018-11-21 16:32:29 +00:00
bors
438034c998 Auto merge of #1133 - glandium:musl-mips, r=gnzlbg
Add missing condition for musl mips64

unix::uclibc::mips has both support for mips and mips64, but it's
currently only imported for mips.
2018-11-21 12:16:35 +00:00
Mike Hommey
c97a771f28 Add missing condition for musl mips64
unix::uclibc::mips has both support for mips and mips64, but it's
currently only imported for mips.
2018-11-21 18:13:30 +09:00
Mike Hommey
fdb9726d42 core::ffi::c_void is available since rustc 1.30 2018-11-21 16:43:24 +09:00
Tom Parker-Shemilt
a145cf7431 Fix line-length unix style issue 2018-11-21 00:10:46 +00:00
Tom Parker-Shemilt
b81bb4a776 Fix missing imports for unix module 2018-11-21 00:02:17 +00:00
Tom Parker-Shemilt
9c6714e54d Define _WITH_GETLINE for FreeBSD so we can move getline into general Unix 2018-11-20 23:50:37 +00:00
Tom Parker-Shemilt
9828bd999e Split out getline and strcasestr to supported platforms 2018-11-20 23:43:54 +00:00
bors
4d9a03e391 Auto merge of #1131 - palfrey:appveyor-reqwest, r=gnzlbg
Use Reqwest backend for Appveyor, not Hyper which is deprecated

Since https://github.com/rust-lang-nursery/rustup.rs/pull/1222 Appveyor builds have been complaining, so should stop asking for the Hyper backend
2018-11-20 23:33:51 +00:00
Tom Parker-Shemilt
335841c484 Use Reqwest backend for Appveyor, not Hyper which is deprecated 2018-11-20 23:30:56 +00:00
Tom Parker-Shemilt
7eed4d05a2 Add getline 2018-11-20 23:18:11 +00:00
Tom Parker-Shemilt
1c4e0deda9 Add strcase* 2018-11-20 23:17:58 +00:00
gnzlbg
92172d9161 Add SGX C types. 2018-11-20 23:15:07 +01:00
bors
16f6fefee0 Auto merge of #1126 - gnzlbg:clean_no_libc, r=gnzlbg
Factor out platforms for which libc is empty

This change shouldn't change any functionality. It just separates the platforms for which `libc` is currently empty (only `wasm32-unknown-unknown`), from those for which it isn't. This is a non-functional change.
2018-11-20 10:29:11 +00:00
gnzlbg
d1457314dd Factor out platforms for which libc is empty 2018-11-20 11:19:34 +01:00
bors
a9b3f97d44 Auto merge of #1127 - gnzlbg:fmt, r=gnzlbg
Formatting and shellcheck
2018-11-20 09:25:45 +00:00
gnzlbg
37a0bd3251 Fix shellcheck issues 2018-11-20 10:25:26 +01:00
bors
2921accb6e Auto merge of #1128 - asomers:chflags, r=alexcrichton
Add chflags(2) and friends
2018-11-20 02:20:52 +00:00
Alan Somers
3bc400d7c7 Add chflags(2) and friends 2018-11-19 18:39:53 -07:00
gnzlbg
aca32d997c re-format 2018-11-19 15:24:41 +01:00
bors
4e5ef22258 Auto merge of #1123 - newpavlov:patch-1, r=gnzlbg
Use OR in the license field

According to [The Manifest Format](https://doc.rust-lang.org/cargo/reference/manifest.html):
>Multiple licenses can be separated with a `/`, although that usage is deprecated.  Instead, use a license expression with AND and OR operators to get more explicit semantics.
2018-11-16 12:56:46 +00:00
Artyom Pavlov
eb09cfe4b6
use OR in the license field 2018-11-16 13:56:41 +03:00
bors
5cc006652a Auto merge of #1122 - gnzlbg:unused_macro, r=alexcrichton
the f macro is unused in some targets
2018-11-12 16:46:09 +00:00
gnzlbg
5d3025b3c9
Merge pull request #1121 from smibarber/signalfd-sigsys
Add support for SIGSYS in signalfd
2018-11-10 08:53:18 +01:00
gnzlbg
9b74d9972b the f macro is unused in some targets 2018-11-10 08:52:11 +01:00
Stephen Barber
24752782ef android: restore signalfd fields to c_ulonglong
Android's NDK typedefs __u64 as unsigned long long.
2018-11-07 12:56:03 -08:00
Stephen Barber
60ab3041a1 Add support for SIGSYS in signalfd
Linux 4.18 added support for SIGSYS info in signalfd. Add the new
fields to signalfd_siginfo.

While the kernel has support for these new fields now, no libc has
shipped a release with the new signalfd fields.
2018-11-06 16:51:20 -08:00
bors
9c5e70ae30 Auto merge of #1119 - jakllsch:netbsd-extattr-not-in-libutil, r=alexcrichton
NetBSD: these extattr functions are not in libutil, but libc

 - extattr_namespace_to_string()
 - extattr_string_to_namespace()
2018-11-03 15:03:22 +00:00
bors
2045e8e127 Auto merge of #1118 - smaeul:flock, r=gnzlbg
Add F_RDLCK/F_WRLCK/F_UNLCK to several platforms

These are used by the flock wrapper in rustc_data_structures. The constants were already present in x86_64-linux-gnu and BSD (since 4928bd9869).

Currently the `flock` wrapper in `rustc_data_structures` does not work on several 32-bit musl targets, because they expect the `LARGEFILE64` version of the `F_SETLK`/`F_SETLKW` constants. This PR is a prerequisite to converting that code to use the `libc` types and constants, instead of (inaccurately) duplicating them, since `libc` already provides architecture-specific definitions of the relevant constants.
2018-11-03 10:02:46 +00:00
Jonathan A. Kollasch
56fd32966c NetBSD: these extattr functions are not in libutil, but libc
- extattr_namespace_to_string()
 - extattr_string_to_namespace()
2018-11-02 17:49:14 +00:00
Samuel Holland
1b130d4c34 Add F_RDLCK/F_WRLCK/F_UNLCK to several platforms
These are used by the flock wrapper in rustc_data_structures. The
constants were already present in x86_64-linux-gnu and BSD (since
4928bd9869).
2018-11-01 03:40:59 +00:00