Skip to content

[0.2] Backports - #5588

Merged
tgross35 merged 7 commits into
rust-lang:libc-0.2from
tgross35:backport-alturas
Oct 1, 2026
Merged

tgross35 merged 7 commits into
rust-lang:libc-0.2from
tgross35:backport-alturas

Conversation

xtqqczze and others added 7 commits October 1, 2026 23:19
The upstream issue has been resolved.

This reverts commit 8824255.

(backport <rust-lang#5582>)
(cherry picked from commit 4c2c5f7)
[ already had `#[exhaustive]` on 0.2, just make the comment match -
  Trevor ]

(backport <rust-lang#5582>)
(cherry picked from commit 6e921ea)
These flags are passed to `posix_spawnattr_setflags`, which takes a
`short` in newlib's `spawn.h` and is already bound with `c_short` here.
Every other platform uses `c_short` for them. Linux was changed in
rust-lang#3629, and Cygwin support was added after that with
`c_int`.

The values are unchanged.

Link: https://github.com/cygwin/cygwin/blob/6fde14c0e24aa7e6dd73ba96b8ec60962261e2d5/newlib/libc/include/spawn.h#L42-L47
Link: https://github.com/cygwin/cygwin/blob/6fde14c0e24aa7e6dd73ba96b8ec60962261e2d5/newlib/libc/include/spawn.h#L92-L93
Link: https://github.com/cygwin/cygwin/blob/6fde14c0e24aa7e6dd73ba96b8ec60962261e2d5/newlib/libc/include/spawn.h#L105

(backport <rust-lang#5572>)
(cherry picked from commit 8cc9013)
On Linux these recently gained a new field, which is technically
breaking. Smooth this over a bit by switching to `s2` to get `Default`
implemented.

(backport <rust-lang#5583>)
(cherry picked from commit 40422af)
`INHERIT_ZERO` is a FreeBSD addition to `minherit(2)` (2017) that
DragonFly has never picked up. It is absent from DragonFly's
`<sys/mman.h>` on current master and on the 6.0, 6.2 and 6.4 releases.

Move it next to the other FreeBSD-only `<sys/mman.h>` constants and drop
it from the DragonFly semver baseline.

Link: https://github.com/freebsd/freebsd-src/blob/a68d11d310dd5100a18f187c1108df6703315989/sys/sys/mman.h#L42-L45
Link: https://github.com/DragonFlyBSD/DragonFlyBSD/blob/d1f4fb943c73e2b61ddabff6aa48ce7551db72f4/sys/sys/mman.h#L58-L60
Link: freebsd/freebsd-src@78d7964

(backport <rust-lang#5587>)
(cherry picked from commit e08cc43)
@rustbot

rustbot commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • Pull requests are usually filed against the main branch for this repo, but this one is against libc-0.2. Please double check that you specified the right target!

@tgross35
tgross35 enabled auto-merge October 1, 2026 23:20
@tgross35
tgross35 added this pull request to the merge queue Oct 1, 2026
Merged via the queue into rust-lang:libc-0.2 with commit 6dbf3a2 Oct 1, 2026
58 checks passed
@tgross35
tgross35 deleted the backport-alturas branch October 2, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants