Skip to content

Commit 4bebf9d

Browse files
committed
freebsd add MAP_ALIGNED macro
1 parent 74e81a5 commit 4bebf9d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ MALLOCX_ARENA
702702
MALLOCX_ALIGN
703703
MALLOCX_TCACHE
704704
MALLOCX_ZERO
705+
MAP_ALIGNED
706+
MAP_ALIGNED_SUPER
705707
MAP_COPY
706708
MAP_EXCL
707709
MAP_FILE

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4698,6 +4698,9 @@ f! {
46984698
as ::c_uint
46994699
}
47004700

4701+
pub {const} fn MAP_ALIGNED(a: ::c_int) -> ::c_int {
4702+
a << 24
4703+
}
47014704
pub fn MALLOCX_ALIGN(lg: ::c_uint) -> ::c_int {
47024705
ffsl(lg as ::c_long - 1)
47034706
}

0 commit comments

Comments
 (0)