Commit Graph

2394 Commits

Author SHA1 Message Date
Tom Parker-Shemilt 9828bd999e Split out getline and strcasestr to supported platforms 2018-11-20 23:43:54 +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
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
bors 4a8304d47e Auto merge of #1111 - gnzlbg:xcode10, r=alexcrichton
update osx builds to xcode10
2018-10-29 22:15:31 +00:00
Alex Crichton 1eb08ed1b4
Merge pull request #1112 from gnzlbg/ios_sim_kill
remove the iOS simulator targets from CI / update ctest
2018-10-29 10:42:33 -07:00
gnzlbg 4182efd167 update osx constants for xcode10 2018-10-29 17:31:00 +01:00
gnzlbg 4a60136aab remove the iOS simulator targets from CI 2018-10-29 17:13:48 +01:00
gnzlbg a379fb3c48 update osx builds to xcode10 2018-10-29 15:28:19 +01:00
Jonathan A. Kollasch 6346e17f3f NetBSD: fix pthread types on arm and powerpc
Also while here: fix powerpc64, mips, and mips64 pthread types.  These
targets are not yet fully/correctly implemented in rust-libc however.
2018-10-28 17:35:15 +00:00
bors 17f7b559cb Auto merge of #1107 - ignatenkobrain:patch-1, r=alexcrichton
exclude CI files from crates.io
2018-10-27 21:42:59 +00:00
Igor Gnatenko 793eeacbe5
exclude CI files from crates.io 2018-10-26 22:48:12 +02:00
bors 72cdbf9095 Auto merge of #1106 - AdelieLinux:master, r=alexcrichton
Finish correcting ioctl(2) interfaces on musl/ppc64

Last commit fixed the function definition but not the constants.  Oops.
2018-10-26 07:49:50 +00:00
A. Wilcox 914eba137b
Finish correcting ioctl(2) interfaces on musl/ppc64
Last commit fixed the function definition but not the constants.  Oops.
2018-10-26 00:33:18 -05:00
bors 87f4acb237 Auto merge of #1099 - gnzlbg:update_ctest, r=alexcrichton
update ctest version
2018-10-20 12:54:43 +00:00