Skip to content

Conversation

@LorrensP-2158466
Copy link
Contributor

@LorrensP-2158466 LorrensP-2158466 commented Sep 16, 2025

Fixes #4587.

Modifies the previously named linux_solarish_readdir64 (now readdir64) to also work on freebsd.

@rustbot
Copy link
Collaborator

rustbot commented Sep 16, 2025

Thank you for contributing to Miri!
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Sep 16, 2025
Copy link
Member

@RalfJung RalfJung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Could you please also rebase and remove the freebsd exception in tests/pass/shims/fs.rs so that this gets tested again?

View changes since this review

if !matches!(&*this.tcx.sess.target.os, "linux" | "solaris" | "illumos") {
if !matches!(
&*this.tcx.sess.target.os,
"linux" | "solaris" | "illumos" | "macos" | "freebsd"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why "macos"? I don't think std uses this on macos. That means we have no tests, and we shouldn't add this without tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs for macos and freebsd are the same for this operation, so I thought to also support it for macos. I'll remove it!

@RalfJung
Copy link
Member

I have also pushed a commit to further simplify that entry / entry_place business; please make sure to pull that.

@rustbot
Copy link
Collaborator

rustbot commented Sep 17, 2025

This PR was rebased onto a different master 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.

@LorrensP-2158466 LorrensP-2158466 changed the title support readdir on FreeBSD and MacOS support readdir on FreeBSD Sep 17, 2025
@RalfJung
Copy link
Member

Thanks :)

@RalfJung RalfJung added this pull request to the merge queue Sep 17, 2025
Merged via the queue into rust-lang:master with commit 2958f06 Sep 17, 2025
12 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

read_dir broken on FreeBSD

3 participants