Add XATTR flags
This commit is contained in:
parent
fdbfe8fc91
commit
1a06678e30
|
@ -1516,6 +1516,13 @@ pub const P_ALL: idtype_t = 0;
|
|||
pub const P_PID: idtype_t = 1;
|
||||
pub const P_PGID: idtype_t = 2;
|
||||
|
||||
pub const XATTR_NOFOLLOW: ::c_int = 0x0001;
|
||||
pub const XATTR_CREATE: ::c_int = 0x0002;
|
||||
pub const XATTR_REPLACE: ::c_int = 0x0004;
|
||||
pub const XATTR_NOSECURITY: ::c_int = 0x0008;
|
||||
pub const XATTR_NODEFAULT: ::c_int = 0x0010;
|
||||
pub const XATTR_SHOWCOMPRESSION: ::c_int = 0x0020;
|
||||
|
||||
f! {
|
||||
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
|
||||
status >> 8
|
||||
|
|
|
@ -697,6 +697,9 @@ pub const PR_CAP_AMBIENT_RAISE: ::c_int = 2;
|
|||
pub const PR_CAP_AMBIENT_LOWER: ::c_int = 3;
|
||||
pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4;
|
||||
|
||||
pub const XATTR_CREATE: ::c_int = 0x1;
|
||||
pub const XATTR_REPLACE: ::c_int = 0x2;
|
||||
|
||||
f! {
|
||||
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
|
||||
for slot in cpuset.bits.iter_mut() {
|
||||
|
|
Loading…
Reference in New Issue