Sébastien Marie
a1fb747270
openbsd: add KERN_CPUSTATS and increment KERN_MAXID
2018-11-27 19:23:11 +01:00
Sébastien Marie
969b650d1b
openbsd: unbreak: TCP_* flags
2018-11-27 19:20:07 +01:00
bors
596ba58eea
Auto merge of #1146 - mwanner:musl-pthread-affinity, r=alexcrichton
...
Add a couple pthread function definitions and get_sched for musl.
I missed `pthread_setaffinity_np` for the musl variant, so I added a few missing function declarations for musl.
2018-11-27 18:05:57 +00:00
Sébastien Marie
81a0e2cdf0
openbsd: unbreak: chflags family
2018-11-27 18:03:21 +01:00
bors
914e50a607
Auto merge of #1151 - Fensteer:Add-TCP-constants, r=gnzlbg
...
Add some TCP constants
Add some TCP constants according to the sources : https://github.com/freebsd/freebsd/blob/master/sys/netinet/tcp.h#L164
2018-11-27 15:25:08 +00:00
Fensteer
32a7d173c6
Add some TCP constants
2018-11-27 14:22:05 +01:00
gnzlbg
9acd5ea4cc
Remove unreachable fuchsia branches
2018-11-27 11:02:56 +01:00
bors
50719a33bd
Auto merge of #1105 - gz:fix-timestamping, r=gnzlbg
...
Added SOF_TIMESTAMPING, fix too narrow scoping for SO_TIMESTAMPING.
Fixes issues raised in #1104 and #1103 .
2018-11-27 09:55:53 +00:00
Gerd Zellweger
01feb166a2
Update sparc64 value for SO_TIMESTAMPING.
...
Signed-off-by: Gerd Zellweger <gzellweger@vmware.com>
2018-11-26 18:27:13 -08:00
bors
aee584c3c0
Auto merge of #1130 - palfrey:strcase-various, r=alexcrichton
...
Add various strcase* functions and getline
Adds
* `strcasestr`
* `strcasecmp`
* `strncasecmp`
* `getline`
I *think* they're semi-universal, but shall see what CI pops up...
2018-11-27 01:51:49 +00:00
bors
d4b45f51ea
Auto merge of #1152 - palfrey:retry-curl, r=alexcrichton
...
Retry all curl operations
As the docker pulls from #1148 appear mostly fixed, but we're seeing occasional curl timeouts still (e.g. https://travis-ci.org/rust-lang/libc/jobs/459715534 , https://travis-ci.org/rust-lang/libc/jobs/459611627 ), so this should improve things at least a bit.
2018-11-26 22:20:01 +00:00
Tom Parker-Shemilt
b46b6e2e72
Retry all curl operations
2018-11-26 21:34:43 +00:00
bors
5058225922
Auto merge of #1149 - palfrey:travis-xenial, r=alexcrichton
...
Upgrade Travis to using Xenial environment
One part "lets use the latest things", to several parts "might this fix #1148 "
2018-11-26 20:49:45 +00:00
Markus Wanner
268a282bef
Add a couple pthread function definitions and get_sched for musl.
2018-11-26 16:08:58 +01:00
gnzlbg
223bdca546
Use crates.io keywords and categories
...
Closes #651 .
2018-11-26 16:08:58 +01:00
Tom Parker-Shemilt
0942070c31
Remove hacky Travis workaround
2018-11-26 12:07:34 +00:00
dependabot[bot]
157bb12a92
Bump ctest from 0.2.6 to 0.2.7
...
Bumps [ctest](https://github.com/alexcrichton/ctest ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/alexcrichton/ctest/releases )
- [Commits](https://github.com/alexcrichton/ctest/commits/0.2.7 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 06:20:46 +00:00
Tom Parker-Shemilt
e73f064a9b
Upgrade Travis to using Xenial environment
2018-11-24 19:53:40 +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
Gerd Zellweger
9e626828b3
Remove some SOF_TIMESTAMPING_ options not supported with musl.
2018-11-21 17:03:34 -08:00
Gerd Zellweger
2f83a7a511
Added missing net_tstamp.h header to tests.
...
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
2018-11-21 17:03:34 -08:00
Gerd Zellweger
1f038a5d6d
Break long line to make style check pass.
...
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
2018-11-21 17:03:34 -08:00
Gerd Zellweger
52b2015e83
Add SOF_TIMESTAMPING_* from linux/net_tstamp.h.
2018-11-21 17:03:34 -08:00
Gerd Zellweger
f68d06e2ed
Move SO_TIMESTAMPING and SCM_TIMESTAMPING.
...
This used to be defined multiple times in different (but not all)
architectures. Moving it to general linux module since it's an
architecture independent feature.
2018-11-21 17:03:34 -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