Skip to content

Commit 1eeccb9

Browse files
committed
Add posix_fallocate on DragonFly
1 parent a392647 commit 1eeccb9

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1919
(#[1581](https://github.com/nix-rust/nix/pull/1581))
2020
- Added `sched_setaffinity` and `sched_getaffinity` on DragonFly.
2121
(#[1537](https://github.com/nix-rust/nix/pull/1537))
22+
- Added `posix_fallocate` on DragonFly.
23+
(#[1621](https://github.com/nix-rust/nix/pull/1621))
2224
- Added the `SO_TIMESTAMPING` support
2325
(#[1547](https://github.com/nix-rust/nix/pull/1547))
2426

src/fcntl.rs

+1
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ mod posix_fadvise {
749749
#[cfg(any(
750750
target_os = "linux",
751751
target_os = "android",
752+
target_os = "dragonfly",
752753
target_os = "emscripten",
753754
target_os = "fuchsia",
754755
any(target_os = "wasi", target_env = "wasi"),

test/test_fcntl.rs

+1
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ mod test_posix_fadvise {
488488

489489
#[cfg(any(target_os = "linux",
490490
target_os = "android",
491+
target_os = "dragonfly",
491492
target_os = "emscripten",
492493
target_os = "fuchsia",
493494
any(target_os = "wasi", target_env = "wasi"),

0 commit comments

Comments
 (0)