Skip to content

POSIX: change struct stat/stat64 times to timespec#5069

Open
xbjfk wants to merge 15 commits intorust-lang:mainfrom
xbjfk:stat-timespec
Open

POSIX: change struct stat/stat64 times to timespec#5069
xbjfk wants to merge 15 commits intorust-lang:mainfrom
xbjfk:stat-timespec

Conversation

@xbjfk
Copy link
Copy Markdown
Contributor

@xbjfk xbjfk commented Apr 21, 2026

Description

Since this was evidently a problem when doing musl changes,no objections in #4965 and v1 being in alpha, it's time to rip the band aid off and do it.

Of course, there are a couple unsolved questions:

Also, solid and qurt do not have nsec at all. NTO and VxWorks have already migrated.

Sources

In each relevant commit.

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

As discussed in / Fixes: #4965

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 21, 2026

Some changes occurred in a solarish module

cc @jclulow, @pfmooney

Some changes occurred in an Android module

cc @maurer

Some changes occurred in an OpenBSD module

cc @semarie

Some changes occurred in a NetBSD-like module

cc @semarie

@xbjfk
Copy link
Copy Markdown
Contributor Author

xbjfk commented Apr 21, 2026

Hmm, since freebsd11 no longer depends on c_long, the prelude is no longer necessary - but it feels wrong to remove.

xbjfk added 15 commits April 26, 2026 10:33
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 26, 2026

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.

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.

What time fields should struct stat have?

2 participants