Commit Graph

4350 Commits

Author SHA1 Message Date
bors 6f591dfca5 Auto merge of #2048 - joshtriplett:semverver-locked, r=JohnTitor
ci/semver.sh: Pass --locked when installing semverver

We don't, in general, want our CI to be the testbed for building
semverver with newer versions of its dependencies. Pass --locked to use
the checked-in Cargo.lock instead.

This works around https://github.com/rust-lang/cargo/issues/9101 .
2021-01-28 10:06:56 +00:00
Josh Triplett 783d724a0d ci/semver.sh: Pass --locked when installing semverver
We don't, in general, want our CI to be the testbed for building
semverver with newer versions of its dependencies. Pass --locked to use
the checked-in Cargo.lock instead.

This works around https://github.com/rust-lang/cargo/issues/9101 .
2021-01-28 01:35:27 -08:00
Thiébaud Weksteen 9df0cdf5fe android: add android_set_abort_message
As definied in set_abort_message.h [1]. Update buils.rs to include
Android-specific headers.

[1] https://android.googlesource.com/platform/bionic/+/master/libc/include/android/set_abort_message.h
2021-01-28 10:33:31 +01:00
Yuki Okushi 7da9413423 Replace all mentions about Pipelines with GHA 2021-01-28 18:29:32 +09:00
bors 0dce92d89b Auto merge of #2046 - joshtriplett:fix-static-linking, r=JohnTitor
Remove link directives for libutil on linux-gnu targets

These are all handled in src/unix/mod.rs now, which also addresses the
crt-static case; no linux-gnu target should have any link directives in
any other module.

This fixes static linking with glibc for various architectures.
2021-01-28 09:02:55 +00:00
Josh Triplett 6859d47e78 Remove link directives for libutil on linux-gnu targets
These are all handled in src/unix/mod.rs now, which also addresses the
crt-static case; no linux-gnu target should have any link directives in
any other module.

This fixes static linking with glibc for various architectures.
2021-01-28 00:21:42 -08:00
bors 389026982d Auto merge of #2038 - semarie:bump, r=JohnTitor
Bump to 0.2.83
2021-01-27 21:12:17 +00:00
bors 77180b6db8 Auto merge of #2042 - pfmooney:illumos-portnotify, r=JohnTitor
Add port_notify struct for illumos and Solaris

This adds a missing struct for configuring event ports notifications.  The `libc-test` suite passes on illumos (OmniOSCE) and is assumed to pass on Solaris, given that the interface has been present since Oracle forked from OpenSolaris.
2021-01-27 03:18:36 +00:00
bors 5421f0bde5 Auto merge of #2041 - pfmooney:illumos-timers, r=JohnTitor
Add timer interface for illumos and Solaris

This adds the `timer_*` family of functions present in illumos (and Solaris), along with the associated types.  The `libc-test` suite passes on an illumos (OmniOSCE) machine.  While I do not have resources available to test on Solaris, these interfaces have been stable since Oracle forked.
2021-01-27 02:21:19 +00:00
bors 3e2f350b84 Auto merge of #2039 - Amanieu:aarch64_ilp32, r=JohnTitor
Add support for the ILP32 variant of AArch64

This also fixes mutex initializers on big-endian AArch64.
2021-01-27 01:17:56 +00:00
bors 9b7dd7c8ec Auto merge of #2040 - slp:add_preadv_pwritev, r=JohnTitor
Add preadv and pwritev for macOS

Add declarations for the preadv and pwritev system calls, introduced
in macOS 11.0 (Big Sur).

Signed-off-by: Sergio Lopez <slp@redhat.com>
2021-01-26 23:07:29 +00:00
bors 50adb91fb7 Auto merge of #2005 - operutka:fix-uclibc-dependencies, r=Amanieu
Fix missing dl lib on armv5te-unknown-linux-uclibceabi

I'm unable to link my executable for the Linux uClibc environment because of some missing symbols from the dl lib:
```
/home/operutka/goodcam/goodcam-server/target/armv5te-unknown-linux-uclibceabi/release/deps/goodcam_server-aefb92c403e8cd55.goodcam_server.dzc3futp-cgu.0.rcgu.o: In function `mio::sys::unix::dlsym::fetch::he5e2964820cfd29d':
      goodcam_server.dzc3futp-cgu.0:(.text._ZN3mio3sys4unix5dlsym5fetch17he5e2964820cfd29dE+0x30): undefined reference to `dlsym'
/home/operutka/goodcam/goodcam-server/target/armv5te-unknown-linux-uclibceabi/release/deps/goodcam_server-aefb92c403e8cd55.goodcam_server.dzc3futp-cgu.0.rcgu.o: In function `std::sys::unix::weak::fetch::h5ed4b0fa5792ef5c':
      goodcam_server.dzc3futp-cgu.0:(.text._ZN3std3sys4unix4weak5fetch17h5ed4b0fa5792ef5cE+0x3c): undefined reference to `dlsym'
```

The libc crate is being used at both of these points.

This change fixes the issue for me. I've tested it with two different GCC cross toolchains for armv5te and it seems to be OK.

_Note: I'm building my own std using the unstable build-std Cargo feature._
2021-01-26 21:34:59 +00:00
bors f7a9029c2c Auto merge of #2044 - JohnTitor:fix-ci, r=JohnTitor
Fix CI on `i686-unknown-linux-musl`

I suspect `focal-20210119` breaks the build, uses an older image to fix the `Could not configure 'libc6:i386'` failure.
2021-01-26 20:30:13 +00:00
Yuki Okushi faa0184ad2 Use `libc6-i386` instead of `libc6:i386` 2021-01-27 05:29:04 +09:00
Patrick Mooney 0d61dcb7f3 Add port_notify struct for illumos and Solaris 2021-01-22 16:45:39 +00:00
Patrick Mooney 5675256b80 Add timer interface for illumos and Solaris 2021-01-22 04:21:43 +00:00
Sergio Lopez 81c3e9835d Add preadv and pwritev for macOS
Add declarations for the preadv and pwritev system calls, introduced
in macOS 11.0 (Big Sur).

Signed-off-by: Sergio Lopez <slp@redhat.com>
2021-01-21 16:26:32 +01:00
Amanieu d'Antras dc02daae5b Fix build with rustc-dep-of-std in the latest nightly 2021-01-20 16:53:06 +00:00
Amanieu d'Antras 062a415aed Add support for the ILP32 variant of AArch64
This commit also fixes mutex initializers on big-endian.
2021-01-20 16:40:07 +00:00
Sébastien Marie 0e09138dc2 Bump to 0.2.83 2021-01-18 15:55:29 +00:00
bors 7f11cdb191 Auto merge of #2035 - semarie:openbsd-safesignal, r=JohnTitor
openbsd: make WIFCONTINUED() safe

it seems it was a missed part of #1891

Found it because rustc -nightly started to use `libc::WIFCONTINUED()` recently in a safe context and the build fail to build on OpenBSD.

Fixes #2001
2021-01-18 13:35:07 +00:00
Sébastien Marie cf0793a926 openbsd: make WIFCONTINUED() safe 2021-01-16 17:54:22 +00:00
bors bb8fe9a756 Auto merge of #2028 - IsaacWoods:master, r=JohnTitor
Fix error when building rustc with a custom libc

When pulling a custom `libc` into a `rustc` build (with the `rustc-dep-of-std` feature set), the following error occurs:
```
error: unused attribute
  --> /hdd/libc/src/lib.rs:29:1
   |
29 | #![no_std]
   | ^^^^^^^^^^
   |
   = note: `-D unused-attributes` implied by `-D warnings`

error: crate-level attribute should be in the root module
  --> /hdd/libc/src/lib.rs:29:1
   |
29 | #![no_std]
   | ^^^^^^^^^^
```

I think this is because both the `no_std` and `no_core` attributes are specified, although the error message doesn't make this very clear. This PR changes this so `no_std` is only supplied when the `rustc-dep-of-std` feature is not.
2021-01-11 23:11:49 +00:00
bors 9cf7c6a7ca Auto merge of #2030 - tamird:fuchsia-sockcloexec, r=JohnTitor
Correctly define SOCK_CLOEXEC on Fuchsia

https://cs.opensource.google/fuchsia/fuchsia/+/master:zircon/third_party/ulib/musl/include/sys/socket.h;l=60-63;drc=7c5e521391fddb98fd8f6970da7c410899ddf5cf

cc `@cramertj`
2021-01-11 08:00:00 +00:00
bors db03632297 Auto merge of #2031 - JohnTitor:revive-sparc, r=JohnTitor
Re-add the build test for  `sparc-unknown-linux-gnu`

The current nightly uses compiler_builtins 0.1.39 so the issue should be fixed.
2021-01-11 06:55:21 +00:00
Yuki Okushi 8ad14f045f Re-add the build test for `sparc-unknown-linux-gnu` 2021-01-11 15:46:41 +09:00
Tamir Duberstein b24d95891d
Correctly define SOCK_CLOEXEC on Fuchsia
https://cs.opensource.google/fuchsia/fuchsia/+/master:zircon/third_party/ulib/musl/include/sys/socket.h;l=60-63;drc=7c5e521391fddb98fd8f6970da7c410899ddf5cf
2021-01-09 14:20:29 -05:00
Isaac Woods 48c4482b13 Fix conflict between no_std and no_core when building rustc with custom libc 2021-01-09 00:14:14 +00:00
bors 715b50e155 Auto merge of #2027 - JohnTitor:remove-cloudabi-test, r=JohnTitor
Remove CloudABI test function on libc-test

This isn't used anymore.
2021-01-08 08:18:19 +00:00
Yuki Okushi 5c80ca2c1b Remove CloudABI test function on libc-test
This isn't used anymore.
2021-01-08 17:11:26 +09:00
bors e6a2fd528c Auto merge of #2014 - puradox:patch-1, r=JohnTitor
Bump to 0.2.82

Allow developers to start using ip_mreqn in Fuchsia.
2021-01-07 17:03:02 +00:00
bors f00b9a107c Auto merge of #2006 - djarek:linux-can.h, r=JohnTitor
Define basic Linux SocketCAN constants and types

Add definitions from `linux/can.h`, which is a "base" header for remainder of SocketCAN functionality.

CAN bus (ISO-11898) is a communication standard used in automotive, automation and industrial solutions. Linux provides a socket-like interface to access raw CAN and protocols based on CAN, such as ISO-TP(ISO-15765) or SAE-J1939.
2021-01-07 09:19:17 +00:00
Yuki Okushi 66500eeb18 Move structs to `s_no_extra_traits` 2021-01-07 18:10:00 +09:00
Yuki Okushi a39cf0d704 Define some consts on 1.25 ot higher 2021-01-07 16:11:21 +09:00
Yuki Okushi e18dc0366b Skip more items on CI 2021-01-07 14:41:31 +09:00
bors 473a6b58f5 Auto merge of #2022 - JohnTitor:ignore-target, r=JohnTitor
Skip CI for some MIPS targets

This failure (https://github.com/rust-lang/libc/pull/1936#issuecomment-712102905) happens again:  https://github.com/rust-lang/libc/runs/1659882216
2021-01-07 02:54:42 +00:00
Yuki Okushi c345a2aa99 Skip CI for some MIPS targets 2021-01-07 11:53:54 +09:00
Damian Jarek 1581af0304 Define basic Linux SocketCAN constants and types
Add definitions from `linux/can.h`, which is a "base" header for remainder
of SocketCAN functionality.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2021-01-07 09:22:43 +09:00
bors 6deb8a935a Auto merge of #2020 - joshtriplett:ifla, r=JohnTitor
Add more IFLA_ values
2021-01-05 19:40:36 +00:00
Josh Triplett 2076d1cd3f Add more IFLA_ values 2021-01-05 11:39:47 -08:00
bors 2ec333c3b6 Auto merge of #2008 - bsteinb:macos-aarch64-mcontext, r=JohnTitor
Make test suite pass on macOS on aarch64

While working on #2007 I tried to run `cargo test` in `libc-test`, which failed, because the definition of `__darwin_mcontext64` was incomplete (see #1990). This adds definitions for the exception state and the floating point state as well.

`libc-test` still does not pass, because I use the type `[u128; 32]` for the `__v` field of `__darwin_arm_neon_state64` (in C it is `__uint128_t __v[32]`. `ctest2` does not translate `u128` to `__uint128_t` and the generated C code does not compile. Any ideas for working around this?
2021-01-05 11:12:12 +00:00
Benedikt Steinbusch ee84dae71c move declarations of mcontext_t and ucontext_t 2021-01-05 11:23:48 +01:00
bors a98a649bc3 Auto merge of #2019 - kolapapa:mipsel-uclibc, r=JohnTitor
Add EPOLLEXCLUSIVE && EPOLLWAKEUP
2021-01-05 04:00:03 +00:00
bors 9d6d0186e9 Auto merge of #2018 - asomers:aio_no_librt, r=JohnTitor
aio functions do not require librt on FreeBSD

On FreeBSD, the aio_ functions require librt _only_ if they use
SIGEV_THREAD completion notification.  However, due to Rust's originally
poor support for C unions, libc doesn't even expose some of the fields of
struct sigevent that SIGEV_THREAD requires.  Accordingly, there is no
need to link librt to programs using aio via libc.

This change partially reverts 8c23f77704
from PR #1630 .

While I'm here, fix the linkage of lio_listio on DragonflyBSD.  It
_does_ require librt.
2021-01-05 02:58:37 +00:00
kolapapa 46af3376bd Add EPOLLEXCLUSIVE && EPOLLWAKEUP 2021-01-04 14:42:14 +08:00
Alan Somers f40f3068a0 aio functions do not require librt on FreeBSD
On FreeBSD, the aio_ functions require librt _only_ if they use
SIGEV_THREAD completion notification.  However, due to Rust's originally
poor support for C unions, libc doesn't even expose some of the fields of
struct sigevent that SIGEV_THREAD requires.  Accordingly, there is no
need to link librt to programs using aio via libc.

This change partially reverts 8c23f77704
from PR #1630 .

While I'm here, fix the linkage of lio_listio on DragonflyBSD.  It
_does_ require librt.
2021-01-03 11:06:05 -07:00
Benedikt Steinbusch d57347aee3 ignore changed constants in test for now 2021-01-01 03:33:45 +01:00
Benedikt Steinbusch d377b52d73 fix glob symbol name on macOS aarch64 2021-01-01 03:11:34 +01:00
Benedikt Steinbusch ea2bc2c065 add new constants for macOS Big Sur 2021-01-01 02:48:07 +01:00
Benedikt Steinbusch 3fc0015790 fix values of constants on macOS aarch64 2021-01-01 02:46:37 +01:00