File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,21 @@ bitflags! {
40
40
/// `PROT_GROWSDOWN`
41
41
#[ cfg( linux_kernel) ]
42
42
const GROWSDOWN = bitcast!( c:: PROT_GROWSDOWN ) ;
43
+ /// `PROT_SEM`
44
+ #[ cfg( linux_kernel) ]
45
+ const SEM = linux_raw_sys:: general:: PROT_SEM ;
46
+ /// `PROT_BTI`
47
+ #[ cfg( all( linux_kernel, target_arch = "aarch64" ) ) ]
48
+ const BTI = linux_raw_sys:: general:: PROT_BTI ;
49
+ /// `PROT_MTE`
50
+ #[ cfg( all( linux_kernel, target_arch = "aarch64" ) ) ]
51
+ const MTE = linux_raw_sys:: general:: PROT_MTE ;
52
+ /// `PROT_SAO`
53
+ #[ cfg( all( linux_kernel, any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
54
+ const SAO = linux_raw_sys:: general:: PROT_SAO ;
55
+ /// `PROT_ADI`
56
+ #[ cfg( all( linux_kernel, any( target_arch = "sparc" , target_arch = "sparc64" ) ) ) ]
57
+ const ADI = linux_raw_sys:: general:: PROT_ADI ;
43
58
}
44
59
}
45
60
Original file line number Diff line number Diff line change @@ -38,6 +38,20 @@ bitflags! {
38
38
const GROWSUP = linux_raw_sys:: general:: PROT_GROWSUP ;
39
39
/// `PROT_GROWSDOWN`
40
40
const GROWSDOWN = linux_raw_sys:: general:: PROT_GROWSDOWN ;
41
+ /// `PROT_SEM`
42
+ const SEM = linux_raw_sys:: general:: PROT_SEM ;
43
+ /// `PROT_BTI`
44
+ #[ cfg( target_arch = "aarch64" ) ]
45
+ const BTI = linux_raw_sys:: general:: PROT_BTI ;
46
+ /// `PROT_MTE`
47
+ #[ cfg( target_arch = "aarch64" ) ]
48
+ const MTE = linux_raw_sys:: general:: PROT_MTE ;
49
+ /// `PROT_SAO`
50
+ #[ cfg( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ]
51
+ const SAO = linux_raw_sys:: general:: PROT_SAO ;
52
+ /// `PROT_ADI`
53
+ #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ]
54
+ const ADI = linux_raw_sys:: general:: PROT_ADI ;
41
55
}
42
56
}
43
57
You can’t perform that action at this time.
0 commit comments