Skip to content

Commit a40db1f

Browse files
committed
adding mimmutable from openbsd (7.3)
1 parent 68ad935 commit a40db1f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ fn test_openbsd(target: &str) {
534534
// futex() has volatile arguments, but that doesn't exist in Rust.
535535
"futex" => true,
536536

537+
// Available for openBSD 7.3
538+
"mimmutable" => true,
539+
537540
_ => false,
538541
}
539542
});

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,7 @@ malloc_conceal
10911091
memmem
10921092
memrchr
10931093
mfs_args
1094+
mimmutable
10941095
mincore
10951096
mkdirat
10961097
mkfifoat

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,8 @@ extern "C" {
18881888
timeout: *const ::timespec,
18891889
uaddr2: *mut u32,
18901890
) -> ::c_int;
1891+
1892+
pub fn mimmutable(addr: *mut ::c_void, len: ::size_t) -> ::c_int;
18911893
}
18921894

18931895
#[link(name = "execinfo")]

0 commit comments

Comments
 (0)