File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1724,6 +1724,7 @@ fn test_freebsd(target: &str) {
1724
1724
"stdio.h" ,
1725
1725
"stdlib.h" ,
1726
1726
"string.h" ,
1727
+ "sys/capsicum.h" ,
1727
1728
"sys/cpuset.h" ,
1728
1729
"sys/event.h" ,
1729
1730
"sys/extattr.h" ,
Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ s! {
131
131
#[ cfg( target_pointer_width = "32" ) ]
132
132
__bits: [ :: c_long; 8 ] ,
133
133
}
134
+
135
+ pub struct cap_rights_t {
136
+ cr_rights: [ u64 ; 2 ] ,
137
+ }
134
138
}
135
139
136
140
s_no_extra_traits ! {
@@ -1583,6 +1587,19 @@ extern "C" {
1583
1587
setsize : :: size_t ,
1584
1588
mask : * const cpuset_t ,
1585
1589
) -> :: c_int ;
1590
+ pub fn cap_enter ( ) -> :: c_int ;
1591
+ pub fn cap_getmode ( modep : * mut :: c_uint ) -> :: c_int ;
1592
+ pub fn __cap_rights_init ( version : :: c_int , rights : * mut cap_rights_t , ...)
1593
+ -> * mut cap_rights_t ;
1594
+ pub fn __cap_rights_set ( rights : * mut cap_rights_t , ...) -> * mut cap_rights_t ;
1595
+ pub fn __cap_rights_clear ( rights : * mut cap_rights_t , ...) -> * mut cap_rights_t ;
1596
+ pub fn __cap_rights_is_set ( rights : * const cap_rights_t , ...) -> bool ;
1597
+ pub fn cap_rights_is_valid ( rights : * const cap_rights_t ) -> bool ;
1598
+ pub fn cap_rights_limit ( fd : :: c_int , rights : * const cap_rights_t ) -> :: c_int ;
1599
+ pub fn cap_rights_merge ( dst : * mut cap_rights_t , src : * const cap_rights_t ) -> * mut cap_rights_t ;
1600
+ pub fn cap_rights_remove ( dst : * mut cap_rights_t , src : * const cap_rights_t )
1601
+ -> * mut cap_rights_t ;
1602
+ pub fn cap_rights_contains ( big : * const cap_rights_t , little : * const cap_rights_t ) -> bool ;
1586
1603
}
1587
1604
1588
1605
#[ link( name = "util" ) ]
You can’t perform that action at this time.
0 commit comments