Skip to content

Commit

Permalink
sys::mman: enables MAP_STACK flag for netbsd too. (#2526)
Browse files Browse the repository at this point in the history
* sys::mman: enables MAP_STACK flag for netbsd too.

Same status as Linux, a no-op, but in the future can be useful
for architectures which need this feature.

* changelog entry
  • Loading branch information
devnexen authored Oct 23, 2024
1 parent b91bf39 commit 70f8fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/2526.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `MapFlags::MAP_STACK` in `sys::man` for netbsd
2 changes: 1 addition & 1 deletion src/sys/mman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ libc_bitflags! {
#[cfg(any(freebsdlike, netbsdlike))]
MAP_HASSEMAPHORE;
/// Region grows down, like a stack.
#[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))]
#[cfg(any(linux_android, freebsdlike, netbsdlike))]
MAP_STACK;
/// Do not write through the page caches, write directly to the file. Used for Direct Access (DAX) enabled file systems.
// Available on Linux glibc and musl, MIPS* target excluded.
Expand Down

0 comments on commit 70f8fe0

Please sign in to comment.