- 
                Notifications
    You must be signed in to change notification settings 
- Fork 399
          support readdir on FreeBSD
          #4589
        
          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
Conversation
| Thank you for contributing to Miri! | 
There was a problem hiding this 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?
        
          
                src/shims/unix/fs.rs
              
                Outdated
          
        
      | if !matches!(&*this.tcx.sess.target.os, "linux" | "solaris" | "illumos") { | ||
| if !matches!( | ||
| &*this.tcx.sess.target.os, | ||
| "linux" | "solaris" | "illumos" | "macos" | "freebsd" | 
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
| I have also pushed a commit to further simplify that entry / entry_place business; please make sure to pull that. | 
023e746    to
    a113fa4      
    Compare
  
    | 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. | 
readdir on FreeBSD and MacOSreaddir on FreeBSD
      a113fa4    to
    0660d4c      
    Compare
  
    | Thanks :) | 
Fixes #4587.
Modifies the previously named
linux_solarish_readdir64(nowreaddir64) to also work onfreebsd.