Commit Graph

1524 Commits

Author SHA1 Message Date
Alex Crichton
dfb9579acc Fix build on x86_64-unknown-cloudabi, bump version 2018-12-09 19:32:01 -08:00
Craig M. Brandenburg
6d22f54440 Add support for SysV semaphores on Apple platform 2018-12-08 06:50:19 -07:00
Jon Magnuson
bbed4d4d05 Move SOL_BLUETOOTH to notbsd module 2018-12-08 00:24:42 -06:00
bors
f5fa41603d Auto merge of #1158 - strake:TIMER_ABSTIME, r=gnzlbg
define `TIMER_ABSTIME` on BSD
2018-12-07 08:31:53 +00:00
bors
7ada017b53 Auto merge of #1164 - AdelieLinux:musl-endianness, r=alexcrichton
musl: 64-bit: Ensure proper (c)msghdr layout on big-endian

Discovered while debugging: djg/audioipc-2#52
2018-12-06 23:25:32 +00:00
bors
9a8908c0f5 Auto merge of #1165 - xd009642:gid-funcs, r=gnzlbg
Added setegid function

Adding the `setegid` function to libc. I had a look and this is in Apple, Linux and Fuchsia so I'm hoping it works for all the BSDs etc. But if anything fails in CI I'll change it accordingly.
2018-12-06 16:59:50 +00:00
M Farkas-Dyck
7d65de6b61 not define TIMER_ABSTIME on Apple 2018-12-05 16:04:01 -08:00
Jonathan A. Kollasch
b668e77983 NetBSD: unbreak tests; neither TCP_NOPUSH or TCP_NOOPT yet exist here 2018-12-05 19:09:06 +00:00
xd009642
1604cf5802 Added setegid function 2018-12-05 17:46:50 +00:00
A. Wilcox
06bf363e13
musl: 64-bit: Ensure proper (c)msghdr layout on big-endian
Discovered while debugging: djg/audioipc-2#52
2018-12-05 11:38:05 -06:00
Tobias Klauser
cc22997fd2 Add AF_XDP, PF_XDP and SOL_XDP consts for linux 2018-12-04 21:04:13 +01:00
bors
89faefe20b Auto merge of #1160 - levex:dfly-add-missing-errnos, r=alexcrichton
DragonflyBSD: add ENOMEDIUM and EASYNC

These errno's are defined in <sys/errno.h> on DragonFlyBSD.

Signed-off-by: Levente Kurusa <lkurusa@acm.org>
2018-12-03 11:09:38 +00:00
Levente Kurusa
5a3374a9ed
DragonflyBSD: add ENOMEDIUM and EASYNC
These errno's are defined in <sys/errno.h> on DragonFlyBSD.

Signed-off-by: Levente Kurusa <lkurusa@acm.org>
2018-12-02 19:24:52 +01:00
M Farkas-Dyck
92d502628c define TIMER_ABSTIME on BSD 2018-12-01 16:39:34 -08:00
Bryant Mairs
832828fc4d Add SO_PASSCRED for sparc64 2018-12-01 08:20:02 -08:00
bors
af6e4fd2d2 Auto merge of #1155 - semarie:openbsd-unbreak, r=gnzlbg
Openbsd unbreak

- unbreak openbsd after #1128
- unbreak openbsd after #1151
- while here, add `KERN_CPUSTATS` and increment `KERN_MAXID` for openbsd
2018-11-27 21:15:10 +00:00
bors
8bd330a70f Auto merge of #1153 - gnzlbg:fuchsia2, r=alexcrichton
Remove unreachable fuchsia branches

cc @cramertj

So this should be a non-functional change because these branches are unreachable, but please try to build fuchsia with this change to make sure this doesn't break anything.
2018-11-27 20:35:18 +00:00
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
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
Markus Wanner
268a282bef Add a couple pthread function definitions and get_sched for musl. 2018-11-26 16:08:58 +01: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
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
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
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
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
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
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