Commit graph

2405 commits

Author SHA1 Message Date
gnzlbg 223bdca546 Use crates.io keywords and categories
Closes #651 .
2018-11-26 16:08:58 +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
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
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
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
bors 091669f144 Auto merge of #1117 - jakllsch:netbsd-extattr-signatures, r=gnzlbg
NetBSD: fix extattr_set_* return types
2018-10-31 16:08:51 +00:00
bors b95fa26533 Auto merge of #1115 - asomers:libutil_overlinking, r=alexcrichton
On FreeBSD and Dragonfly, don't unnecessarily link to libutil

Also, alphabetize this section, since I'm merging two sections anyway.

Fixes #1113
2018-10-31 14:21:22 +00:00
bors 9525816b10 Auto merge of #1108 - jakllsch:netbsd-pthread-types, r=alexcrichton
NetBSD: fix pthread types on arm and powerpc
2018-10-31 13:32:31 +00:00
Jonathan A. Kollasch 21258da87e NetBSD: fix extattr_set_* return types 2018-10-31 13:27:02 +00:00
gnzlbg 87ea744b3a
Merge pull request #1116 from rust-lang/dependabot/cargo/ctest-0.2.6
Bump ctest from 0.2.4 to 0.2.6
2018-10-31 08:13:28 +01:00
dependabot[bot] 4f970bfd88
Bump ctest from 0.2.4 to 0.2.6
Bumps [ctest](https://github.com/alexcrichton/ctest) from 0.2.4 to 0.2.6.
- [Release notes](https://github.com/alexcrichton/ctest/releases)
- [Commits](https://github.com/alexcrichton/ctest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-31 05:49:22 +00:00
Alan Somers e2b69a3fc3 On FreeBSD and Dragonfly, don't unnecessarily link to libutil
Also, alphabetize this section, since I'm merging two sections anyway.

Fixes #1113
2018-10-30 16:43:11 -06:00
Jonathan A. Kollasch 7cd5d11494 style: allow target_arch #[cfg()] statements 2018-10-30 22:10:53 +00:00
Jonathan A. Kollasch 2d807eebf4 wrap a long line 2018-10-30 22:09:13 +00:00
bors 8dde98ed58 Auto merge of #1114 - asomers:extattr, r=alexcrichton
Add extattr(2) and extattr(3) definitions for FreeBSD and NetBSD

DragonflyBSD does define 3 of these 14 functions.  But I elected not to
add it to the PR because I can't find any evidence that these syscalls
are used on Dragonfly, even in the base system.  And by themselves,
those three are insufficient for the xattr crate.
2018-10-30 21:40:23 +00:00
Alan Somers 74d5a9833f Disable the aarch64-unknown-linux-musl workaround for #856
This bug was never diagnosed.  Perhaps it's been resolved by a newer
compiler.
Fixes #856
2018-10-30 15:06:01 -06:00
Alan Somers cd35cdaafa syntax fix 2018-10-30 14:04:04 -06:00
Alan Somers a9c204ccbc Include <sys/extattr.h> during CI 2018-10-30 13:48:23 -06:00
Alan Somers 00b93727c5 Add extattr(2) and extattr(3) definitions for FreeBSD and NetBSD
DragonflyBSD does define 3 of these 14 functions.  But I elected not to
add it to the PR because I can't find any evidence that these syscalls
are used on Dragonfly, even in the base system.  And by themselves,
those three are insufficient for the xattr crate.
2018-10-30 13:34:52 -06:00
Jonathan A. Kollasch 7924fcc245 NetBSD: fix previous for targets other than aarch64 2018-10-30 17:49:31 +00:00
Jonathan A. Kollasch 5cca06280e NetBSD: rework recent pthread type corrections to avoid cfg_if! 2018-10-30 13:58:35 +00:00
Jonathan A. Kollasch a81f45e374 whitespace fix for previous 2018-10-30 13:56:08 +00:00
bors 04a13d1b97 Auto merge of #1098 - andrewtj:atj-cmsg-macros, r=alexcrichton
Add CMSG macros for unix/bsd and unix/notbsd

This adds the ["Ancillary Data Object Macros" from RFC 2292](https://tools.ietf.org/html/rfc2292#section-4.3). My C's weak but I think I've translated them faithfully. Tested on macOS and Linux/glibc.
2018-10-29 23:12:06 +00:00