diff options
author | David CARLIER <devnexen@gmail.com> | 2022-06-19 15:50:31 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2022-06-19 23:28:45 +0100 |
commit | 25f21514ada27b55bd693b7bbbc4d9865fd7c2c5 (patch) | |
tree | dacf20891242b4845c7d6bdce969462d5c5b2875 /src/unix/bsd/freebsdlike/freebsd | |
parent | 956ea0e50a2e0ed6c97699813c53b58debd42615 (diff) | |
download | rust-libc-25f21514ada27b55bd693b7bbbc4d9865fd7c2c5.tar.gz |
memfd_create additional flags for FreeBSD.
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index a44af09eb6..43686d3f51 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3657,6 +3657,19 @@ pub const CPUCLOCK_WHICH_TID: ::c_int = 1; pub const MFD_CLOEXEC: ::c_uint = 0x00000001; pub const MFD_ALLOW_SEALING: ::c_uint = 0x00000002; pub const MFD_HUGETLB: ::c_uint = 0x00000004; +pub const MFD_HUGE_MASK: ::c_uint = 0xFC000000; +pub const MFD_HUGE_64KB: ::c_uint = 16 << 26; +pub const MFD_HUGE_512KB: ::c_uint = 19 << 26; +pub const MFD_HUGE_1MB: ::c_uint = 20 << 26; +pub const MFD_HUGE_2MB: ::c_uint = 21 << 26; +pub const MFD_HUGE_8MB: ::c_uint = 23 << 26; +pub const MFD_HUGE_16MB: ::c_uint = 24 << 26; +pub const MFD_HUGE_32MB: ::c_uint = 25 << 26; +pub const MFD_HUGE_256MB: ::c_uint = 28 << 26; +pub const MFD_HUGE_512MB: ::c_uint = 29 << 26; +pub const MFD_HUGE_1GB: ::c_uint = 30 << 26; +pub const MFD_HUGE_2GB: ::c_uint = 31 << 26; +pub const MFD_HUGE_16GB: ::c_uint = 34 << 26; pub const SHM_LARGEPAGE_ALLOC_DEFAULT: ::c_int = 0; pub const SHM_LARGEPAGE_ALLOC_NOWAIT: ::c_int = 1; |