We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77a5c7e + 79ff538 commit 7cfde68Copy full SHA for 7cfde68
libc-test/semver/freebsd.txt
@@ -972,6 +972,8 @@ PROC_WX_MAPPINGS_PERMIT
972
PROC_WXMAP_CTL
973
PROC_WXMAP_STATUS
974
PROC_WXORX_ENFORCE
975
+PROT_MAX
976
+PROT_MAX_EXTRACT
977
PTHREAD_CREATE_DETACHED
978
PTHREAD_CREATE_JOINABLE
979
PTHREAD_MUTEX_ADAPTIVE_NP
src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -4857,6 +4857,14 @@ f! {
4857
};
4858
::mem::size_of::<sockcred2>() + ::mem::size_of::<::gid_t>() * ngrps
4859
}
4860
+
4861
+ pub fn PROT_MAX(x: ::c_int) -> ::c_int {
4862
+ x << 16
4863
+ }
4864
4865
+ pub fn PROT_MAX_EXTRACT(x: ::c_int) -> ::c_int {
4866
+ (x >> 16) & (::PROT_READ | ::PROT_WRITE | ::PROT_EXEC)
4867
4868
4869
4870
safe_f! {
0 commit comments