Skip to content

Commit 19444fb

Browse files
committed
Merge remote-tracking branch 'origin/main' into alias-lfs64-symbols-on-musl
2 parents eea022d + e2d90cd commit 19444fb

File tree

66 files changed

+1373
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1373
-210
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ task:
1515
task:
1616
name: nightly x86_64-unknown-freebsd-13
1717
freebsd_instance:
18-
image_family: freebsd-13-1
18+
image_family: freebsd-13-2
1919
setup_script:
2020
- pkg install -y libnghttp2 curl
2121
- curl https://sh.rustup.rs -sSf --output rustup.sh
@@ -29,7 +29,7 @@ task:
2929
task:
3030
name: nightly x86_64-unknown-freebsd-14
3131
freebsd_instance:
32-
image_family: freebsd-14-0-snap
32+
image: freebsd-14-0-current-amd64-v20230330
3333
setup_script:
3434
- pkg install -y libnghttp2 curl
3535
- curl https://sh.rustup.rs -sSf --output rustup.sh

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ Thanks for considering submitting a PR!
33
Here's a checklist for things that will be checked during review or continuous integration.
44

55
- \[ ] Edit corresponding file(s) under `libc-test/semver` when you add/remove item(s)
6+
- \[ ] Your PR doesn't contain any *unstable* values like `*LAST` or `*MAX` (see [#3131](https://github.com/rust-lang/libc/issues/3131))
7+
- \[ ] If your PR increments version number, it must not contain any other changes
68
- \[ ] `rustc ci/style.rs && ./style src`
7-
- \[ ] `cd libc-test && cargo test` (This might fail on your env due to environment difference between your env and CI. Ignore failures if you are not sure.)
8-
- \[ ] Your PR that bumps up the crate version doesn't contain any other changes
9+
- \[ ] `cd libc-test && cargo test`
10+
- (this might fail on your env due to environment difference between your env and CI. Ignore failures if you are not sure)
911

1012
Delete this line and everything above before opening your PR.

.github/workflows/bors.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
x86_64-unknown-linux-gnu,
2424
]
2525
steps:
26-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
26+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
2727
with:
2828
github_token: "${{ secrets.GITHUB_TOKEN }}"
2929
- uses: actions/checkout@v3
@@ -46,7 +46,7 @@ jobs:
4646
x86_64-apple-darwin,
4747
]
4848
steps:
49-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
49+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
5050
with:
5151
github_token: "${{ secrets.GITHUB_TOKEN }}"
5252
- uses: actions/checkout@v3
@@ -81,7 +81,7 @@ jobs:
8181
# ARCH: i686
8282
- target: i686-pc-windows-msvc
8383
steps:
84-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
84+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
8585
with:
8686
github_token: "${{ secrets.GITHUB_TOKEN }}"
8787
- uses: actions/checkout@v3
@@ -103,7 +103,7 @@ jobs:
103103
name: Style check
104104
runs-on: ubuntu-22.04
105105
steps:
106-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
106+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
107107
with:
108108
github_token: "${{ secrets.GITHUB_TOKEN }}"
109109
- uses: actions/checkout@v3
@@ -163,7 +163,7 @@ jobs:
163163
# x86_64-unknown-redox,
164164
]
165165
steps:
166-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
166+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
167167
with:
168168
github_token: "${{ secrets.GITHUB_TOKEN }}"
169169
- uses: actions/checkout@v3
@@ -191,7 +191,7 @@ jobs:
191191
armv7-unknown-linux-uclibceabihf
192192
]
193193
steps:
194-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
194+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
195195
with:
196196
github_token: "${{ secrets.GITHUB_TOKEN }}"
197197
- uses: actions/checkout@v3
@@ -210,7 +210,7 @@ jobs:
210210
needs: [docker_linux_tier1, style_check]
211211
runs-on: ubuntu-22.04
212212
steps:
213-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
213+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
214214
with:
215215
github_token: "${{ secrets.GITHUB_TOKEN }}"
216216
- uses: actions/checkout@v3
@@ -244,7 +244,7 @@ jobs:
244244
1.30.0,
245245
]
246246
steps:
247-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
247+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
248248
with:
249249
github_token: "${{ secrets.GITHUB_TOKEN }}"
250250
- uses: actions/checkout@v3
@@ -259,36 +259,32 @@ jobs:
259259

260260
name: Build Channels macOS
261261
needs: macos
262-
# FIXME: Use macOS 11 for now as CI failed with a linker error on macOS 12 image:
263-
# ld: in /.../x86_64-apple-darwin/lib/libstd-a4729905.rlib(rust.metadata.bin),
264-
# archive member 'rust.metadata.bin' with length 2958149 is not mach-o or llvm bitcode file '/.../x86_64-apple-darwin/lib/libstd-a4729905.rlib'
265-
# Possibly related: https://github.com/actions/runner-images/issues/6350
266-
runs-on: macos-11
267262
env:
268263
OS: macos
269264
strategy:
270265
fail-fast: true
271266
max-parallel: 4
272267
matrix:
273-
toolchain: [
274-
stable,
275-
beta,
276-
nightly,
277-
1.13.0,
278-
1.19.0,
279-
1.24.0,
280-
1.25.0,
281-
1.30.0,
282-
]
268+
target:
269+
- { toolchain: stable, os: macos-12 }
270+
- { toolchain: beta, os: macos-12 }
271+
- { toolchain: nightly, os: macos-12 }
272+
# Use macOS 11 for older toolchains as newer Xcode donesn't work well.
273+
- { toolchain: 1.13.0, os: macos-11 }
274+
- { toolchain: 1.19.0, os: macos-11 }
275+
- { toolchain: 1.24.0, os: macos-11 }
276+
- { toolchain: 1.25.0, os: macos-11 }
277+
- { toolchain: 1.30.0, os: macos-11 }
278+
runs-on: ${{ matrix.target.os }}
283279
steps:
284-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
280+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
285281
with:
286282
github_token: "${{ secrets.GITHUB_TOKEN }}"
287283
- uses: actions/checkout@v3
288284
- name: Setup Rust toolchain
289-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
285+
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
290286
- name: Execute build.sh
291-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
287+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
292288

293289
build_channels_windows:
294290
permissions:
@@ -314,7 +310,7 @@ jobs:
314310
run: rustup self update
315311
shell: bash
316312
- name: Execute build.sh
317-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh
313+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
318314
shell: bash
319315

320316
check_cfg:
@@ -325,7 +321,7 @@ jobs:
325321
name: "Check #[cfg]s"
326322
runs-on: ubuntu-22.04
327323
steps:
328-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
324+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
329325
with:
330326
github_token: "${{ secrets.GITHUB_TOKEN }}"
331327
- uses: actions/checkout@v3
@@ -343,7 +339,7 @@ jobs:
343339
runs-on: ubuntu-22.04
344340
needs: docker_linux_tier2
345341
steps:
346-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
342+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
347343
with:
348344
github_token: "${{ secrets.GITHUB_TOKEN }}"
349345
- uses: actions/checkout@v3

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Upload documentation to GitHub Pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
# Sets permissions of `GITHUB_TOKEN` to allow deployment to GitHub Pages
99
permissions:

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, synchronize, reopened]
66
push:
77
branches:
8-
- master
8+
- main
99

1010
permissions:
1111
contents: read # to fetch code (actions/checkout)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libc"
3-
version = "0.2.141"
3+
version = "0.2.144"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ of all the exported APIs match the platform that libc is compiled for.
1414
More detailed information about the design of this library can be found in its
1515
[associated RFC][rfc].
1616

17-
[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1291-promote-libc.md
17+
[rfc]: https://github.com/rust-lang/rfcs/blob/HEAD/text/1291-promote-libc.md
1818

1919
## Usage
2020

@@ -60,10 +60,10 @@ newer Rust features are only available on newer Rust toolchains:
6060

6161
## Platform support
6262

63-
[Platform-specific documentation (master branch)][docs.master].
63+
[Platform-specific documentation (HEAD)][docs.head].
6464

6565
See
66-
[`ci/build.sh`](https://github.com/rust-lang/libc/blob/master/ci/build.sh)
66+
[`ci/build.sh`](https://github.com/rust-lang/libc/blob/HEAD/ci/build.sh)
6767
for the platforms on which `libc` is guaranteed to build for each Rust
6868
toolchain. The test-matrix at [GitHub Actions] and [Cirrus CI] show the
6969
platforms in which `libc` tests are run.
@@ -75,10 +75,10 @@ platforms in which `libc` tests are run.
7575
This project is licensed under either of
7676

7777
* [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
78-
([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/master/LICENSE-APACHE))
78+
([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-APACHE))
7979

8080
* [MIT License](https://opensource.org/licenses/MIT)
81-
([LICENSE-MIT](https://github.com/rust-lang/libc/blob/master/LICENSE-MIT))
81+
([LICENSE-MIT](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-MIT))
8282

8383
at your option.
8484

@@ -87,7 +87,7 @@ at your option.
8787
We welcome all people who want to contribute. Please see the [contributing
8888
instructions] for more information.
8989

90-
[contributing instructions]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md
90+
[contributing instructions]: https://github.com/rust-lang/libc/blob/HEAD/CONTRIBUTING.md
9191

9292
Contributions in any form (issues, pull requests, etc.) to this project
9393
must adhere to Rust's [Code of Conduct].
@@ -107,4 +107,4 @@ dual licensed as above, without any additional terms or conditions.
107107
[Documentation]: https://docs.rs/libc/badge.svg
108108
[docs.rs]: https://docs.rs/libc
109109
[License]: https://img.shields.io/crates/l/libc.svg
110-
[docs.master]: https://rust-lang.github.io/libc/#platform-specific-documentation
110+
[docs.head]: https://rust-lang.github.io/libc/#platform-specific-documentation

ci/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ The remaining architectures look like:
4242
* The BSD builds, currently OpenBSD and FreeBSD, use QEMU to boot up a system
4343
and compile/run tests. More information on that below.
4444

45-
[Actions config]: https://github.com/rust-lang/libc/tree/master/.github/workflows
46-
[Cirrus config]: https://github.com/rust-lang/libc/blob/master/.cirrus.yml
47-
[android-docker]: https://github.com/rust-lang/libc/blob/master/ci/docker/x86_64-linux-android/Dockerfile
45+
[Actions config]: https://github.com/rust-lang/libc/tree/HEAD/.github/workflows
46+
[Cirrus config]: https://github.com/rust-lang/libc/blob/HEAD/.cirrus.yml
47+
[android-docker]: https://github.com/rust-lang/libc/blob/HEAD/ci/docker/x86_64-linux-android/Dockerfile
4848

4949
## QEMU
5050

ci/docker/sparc64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# FIXME: Update to 22.04 once Debian image of sparc64 has a newer glibc.
2-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
32

43
RUN apt-get update && apt-get install -y --no-install-recommends \
54
curl ca-certificates \

ci/linux-s390x.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
mkdir -m 777 /qemu
66
cd /qemu
77

8-
curl --retry 5 -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img
8+
curl --retry 5 -LO https://github.com/qemu/qemu/raw/HEAD/pc-bios/s390-ccw.img
99
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20220914/images/generic/kernel.debian
1010
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20220914/images/generic/initrd.debian
1111

0 commit comments

Comments
 (0)