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

Add _PC_MIN_HOLE_SIZE for use with pathconf #2349

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

asomers
Copy link
Member

@asomers asomers commented Apr 1, 2024

What does this PR do

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

CHANGELOG.md Outdated Show resolved Hide resolved
/// be aligned to this same value. A special value of 1 is returned if the
/// file system does not specify the minimum hole size but still reports
/// holes.
MIN_HOLE_SIZE = libc::_PC_MIN_HOLE_SIZE,
Copy link
Member

Choose a reason for hiding this comment

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

Seems that this is also supported by macOS, though this constant hasn't been added to libc. Anyway, let's merge this PR first:)

https://keith.github.io/xcode-man-pages/pathconf.2.html#_PC_MIN_HOLE_SIZE

@SteveLauC SteveLauC added this pull request to the merge queue Apr 2, 2024
Merged via the queue into nix-rust:master with commit 1ed24e6 Apr 2, 2024
33 checks passed
@asomers asomers deleted the _PC_MIN_HOLE_SIZE branch April 2, 2024 02:56
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.

2 participants