Skip to content

gnu: remove public configuration for file offset bits#5268

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
tgross35:gnu-file-bits
Jul 9, 2026
Merged

gnu: remove public configuration for file offset bits#5268
tgross35 merged 1 commit into
rust-lang:mainfrom
tgross35:gnu-file-bits

Conversation

@tgross35

@tgross35 tgross35 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

It makes sense for us to keep the internal config around for ease of
matching source, but 64-bit off_t with 32-bit time_t is not a
combination we need to support. This is the only option enabled by
toggling _TIME_BITS and _FILE_OFFSET_BITS separately in glibc.

Thus, remove libc_unstable_gnu_file_offset_bits but keep the internal
gnu_file_offset_bits64.

Closes: #5199

@rustbot rustbot added A-CI Area: CI-related items S-waiting-on-review labels Jul 9, 2026
@rustbot

rustbot commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@tgross35
tgross35 force-pushed the gnu-file-bits branch 2 times, most recently from 0540d5d to 3f5ef45 Compare July 9, 2026 17:30
@tgross35 tgross35 changed the title gnu: remove configuration for file offset bits gnu: remove public configuration for file offset bits Jul 9, 2026
It makes sense for us to keep the internal config around for ease of
matching source, but 64-bit off_t with 32-bit time_t is not a
combination we need to support. This is the only option enabled by
toggling _TIME_BITS and _FILE_OFFSET_BITS separately in glibc.

Thus, remove `libc_unstable_gnu_file_offset_bits` but keep the internal
`gnu_file_offset_bits64`.

Closes: rust-lang#5199
@tgross35
tgross35 enabled auto-merge July 9, 2026 17:34
@tgross35
tgross35 added this pull request to the merge queue Jul 9, 2026
Merged via the queue into rust-lang:main with commit 6a08ed3 Jul 9, 2026
57 checks passed
@tgross35
tgross35 deleted the gnu-file-bits branch July 10, 2026 00:37
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Jul 20, 2026
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
It makes sense for us to keep the internal config around for ease of
matching source, but 64-bit off_t with 32-bit time_t is not a
combination we need to support. This is the only option enabled by
toggling _TIME_BITS and _FILE_OFFSET_BITS separately in glibc.

Thus, remove `libc_unstable_gnu_file_offset_bits` but keep the internal
`gnu_file_offset_bits64`.

Closes: rust-lang#5199

(backport <rust-lang#5268>)
(cherry picked from commit 6a08ed3)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
It makes sense for us to keep the internal config around for ease of
matching source, but 64-bit off_t with 32-bit time_t is not a
combination we need to support. This is the only option enabled by
toggling _TIME_BITS and _FILE_OFFSET_BITS separately in glibc.

Thus, remove `libc_unstable_gnu_file_offset_bits` but keep the internal
`gnu_file_offset_bits64`.

Closes: rust-lang#5199

(backport <rust-lang#5268>)
(cherry picked from commit 6a08ed3)
This was referenced Jul 20, 2026
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
It makes sense for us to keep the internal config around for ease of
matching source, but 64-bit off_t with 32-bit time_t is not a
combination we need to support. This is the only option enabled by
toggling _TIME_BITS and _FILE_OFFSET_BITS separately in glibc.

Thus, remove `libc_unstable_gnu_file_offset_bits` but keep the internal
`gnu_file_offset_bits64`.

Closes: rust-lang#5199

(backport <rust-lang#5268>)
(cherry picked from commit 6a08ed3)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: CI-related items stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop external configuration for gnu_file_offset_bits64 / RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS

2 participants