summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-03-26 20:49:07 -0600
committerAlan Somers <asomers@gmail.com>2021-03-26 20:49:07 -0600
commit51a287b98aecce291651cd7d301d55b6a77d63fe (patch)
tree910c6c4b345d07e26ed6726b2c63a7db900cc474 /src
parentc5357c9e665a583c5839324e5c15e9475d58810b (diff)
downloadrust-libc-51a287b98aecce291651cd7d301d55b6a77d63fe.tar.gz
Add MAP_GUARD on FreeBSD.
It was added in FreeBSD 11.1.
Diffstat (limited to 'src')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index 18a38bd533..75189cc761 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -447,6 +447,8 @@ pub const NI_NUMERICSCOPE: ::c_int = 0x00000020;
pub const Q_GETQUOTA: ::c_int = 0x700;
pub const Q_SETQUOTA: ::c_int = 0x800;
+pub const MAP_GUARD: ::c_int = 0x00002000;
+
pub const POSIX_FADV_NORMAL: ::c_int = 0;
pub const POSIX_FADV_RANDOM: ::c_int = 1;
pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2;