From 36f5f133dfacedb03b418f0545e92766f37134da Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 10 Dec 2023 08:50:12 +0000 Subject: [PATCH] openbsd/netbsd MAP_TRYFIXED constant --- libc-test/semver/netbsd.txt | 1 + libc-test/semver/openbsd.txt | 1 + src/unix/bsd/netbsdlike/netbsd/mod.rs | 1 + src/unix/bsd/netbsdlike/openbsd/mod.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index 495b56cc3611a..145f02b441cf1 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -643,6 +643,7 @@ MAP_NORESERVE MAP_REMAPDUP MAP_RENAME MAP_STACK +MAP_TRYFIXED MAP_WIRED MAXFREQ MAXPHASE diff --git a/libc-test/semver/openbsd.txt b/libc-test/semver/openbsd.txt index 7843f6af10c87..5b0064f72e65b 100644 --- a/libc-test/semver/openbsd.txt +++ b/libc-test/semver/openbsd.txt @@ -486,6 +486,7 @@ MAP_NOEXTEND MAP_NORESERVE MAP_RENAME MAP_STACK +MAP_TRYFIXED MCL_CURRENT MCL_FUTURE MDMBUF diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index c057d31212493..43b17e1a7ecf9 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -1701,6 +1701,7 @@ pub const O_DSYNC: ::c_int = 0x10000; pub const MAP_RENAME: ::c_int = 0x20; pub const MAP_NORESERVE: ::c_int = 0x40; pub const MAP_HASSEMAPHORE: ::c_int = 0x200; +pub const MAP_TRYFIXED: ::c_int = 0x400; pub const MAP_WIRED: ::c_int = 0x800; pub const MAP_STACK: ::c_int = 0x2000; // map alignment aliases for MAP_ALIGNED diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index 17dfa6571568f..08c816566166c 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1229,6 +1229,7 @@ pub const O_DSYNC: ::c_int = 128; pub const MAP_RENAME: ::c_int = 0x0000; pub const MAP_NORESERVE: ::c_int = 0x0000; pub const MAP_HASSEMAPHORE: ::c_int = 0x0000; +pub const MAP_TRYFIXED: ::c_int = 0; pub const EIPSEC: ::c_int = 82; pub const ENOMEDIUM: ::c_int = 85;