File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,7 @@ fn test_solarish(target: &str) {
768
768
"sys/loadavg.h" ,
769
769
"sys/mman.h" ,
770
770
"sys/mount.h" ,
771
+ "sys/priv.h" ,
771
772
"sys/pset.h" ,
772
773
"sys/resource.h" ,
773
774
"sys/socket.h" ,
Original file line number Diff line number Diff line change @@ -2192,6 +2192,15 @@ pub const SCHED_IA: ::c_int = 4;
2192
2192
pub const SCHED_FSS : :: c_int = 5 ;
2193
2193
pub const SCHED_FX : :: c_int = 6 ;
2194
2194
2195
+ // sys/priv.h
2196
+ pub const PRIV_DEBUG : :: c_uint = 0x0001 ;
2197
+ pub const PRIV_AWARE : :: c_uint = 0x0002 ;
2198
+ pub const PRIV_AWARE_INHERIT : :: c_uint = 0x0004 ;
2199
+ pub const __PROC_PROTECT: :: c_uint = 0x0008 ;
2200
+ pub const NET_MAC_AWARE : :: c_uint = 0x0010 ;
2201
+ pub const NET_MAC_AWARE_INHERIT : :: c_uint = 0x0020 ;
2202
+ pub const PRIV_AWARE_RESET : :: c_uint = 0x0040 ;
2203
+
2195
2204
// As per sys/socket.h, header alignment must be 8 bytes on SPARC
2196
2205
// and 4 bytes everywhere else:
2197
2206
#[ cfg( target_arch = "sparc64" ) ]
@@ -2760,6 +2769,9 @@ extern "C" {
2760
2769
2761
2770
pub fn gethostid ( ) -> :: c_long ;
2762
2771
pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
2772
+
2773
+ pub fn getpflags ( flags : :: c_uint ) -> :: c_uint ;
2774
+ pub fn setpflags ( flags : :: c_uint , value : :: c_uint ) -> :: c_int ;
2763
2775
}
2764
2776
2765
2777
mod compat;
You can’t perform that action at this time.
0 commit comments