Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.2] RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 backports #4280

Merged
merged 7 commits into from
Feb 22, 2025

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Feb 22, 2025

linux_time_bits64 will be used to match __USE_TIME_BITS64 in the uapi
headers.

The environment variable RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 can be
used by callers to enable the linux_time_bits64 config.

(backport <rust-lang#4148>)
(cherry picked from commit 5453fe6)
The actual values may be different on 32bit archs with
and without __USE_TIME_BITS64

(backport <rust-lang#4148>)
(cherry picked from commit 616d546)
struct timeval has to be updated at least for glibc with _TIME_BITS=64.

(backport <rust-lang#4148>)
(cherry picked from commit c201302)
@tgross35 tgross35 enabled auto-merge February 22, 2025 21:32
@tgross35 tgross35 closed this Feb 22, 2025
auto-merge was automatically disabled February 22, 2025 21:34

Pull request was closed

@tgross35 tgross35 reopened this Feb 22, 2025
@tgross35 tgross35 enabled auto-merge February 22, 2025 21:34
@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2025

@tgross35: no appropriate reviewer found, use r? to override

Collect the linux_time_bits64 in one place.

(backport <rust-lang#4242>)
(cherry picked from commit 9a861ed)
The _NEW defines are not available in musl and ohos.

(backport <rust-lang#4242>)
(cherry picked from commit b0e6878)
@tgross35 tgross35 changed the title [0.2] Add new cfg linux_time_bits64 corresponding to __USE_TIME_BITS64 [0.2] Add RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 Feb 22, 2025
@tgross35 tgross35 changed the title [0.2] Add RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 [0.2] RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 backports Feb 22, 2025
@tgross35 tgross35 added this pull request to the merge queue Feb 22, 2025
Merged via the queue into rust-lang:libc-0.2 with commit b1d4d35 Feb 22, 2025
44 checks passed
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.

3 participants