Skip to content

Commit

Permalink
Add posix_fallocate on DragonFly
Browse files Browse the repository at this point in the history
  • Loading branch information
rtzoeller committed Dec 27, 2021
1 parent a392647 commit c8809b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1581](https://github.com/nix-rust/nix/pull/1581))
- Added `sched_setaffinity` and `sched_getaffinity` on DragonFly.
(#[1537](https://github.com/nix-rust/nix/pull/1537))
- Added `posix_fallocate` on DragonFly.
(#[TODO](https://github.com/nix-rust/nix/pull/TODO))
- Added the `SO_TIMESTAMPING` support
(#[1547](https://github.com/nix-rust/nix/pull/1547))

Expand Down
1 change: 1 addition & 0 deletions src/fcntl.rs
Expand Up @@ -749,6 +749,7 @@ mod posix_fadvise {
#[cfg(any(
target_os = "linux",
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "fuchsia",
any(target_os = "wasi", target_env = "wasi"),
Expand Down
1 change: 1 addition & 0 deletions test/test_fcntl.rs
Expand Up @@ -488,6 +488,7 @@ mod test_posix_fadvise {

#[cfg(any(target_os = "linux",
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "fuchsia",
any(target_os = "wasi", target_env = "wasi"),
Expand Down

0 comments on commit c8809b4

Please sign in to comment.