Skip to content

Commit a51e247

Browse files
committed
Add XATTR flags
1 parent dafc0ba commit a51e247

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,13 @@ pub const P_ALL: idtype_t = 0;
15161516
pub const P_PID: idtype_t = 1;
15171517
pub const P_PGID: idtype_t = 2;
15181518

1519+
pub const XATTR_NOFOLLOW: ::c_int = 0x0001;
1520+
pub const XATTR_CREATE: ::c_int = 0x0002;
1521+
pub const XATTR_REPLACE: ::c_int = 0x0004;
1522+
pub const XATTR_NOSECURITY: ::c_int = 0x0008;
1523+
pub const XATTR_NODEFAULT: ::c_int = 0x0010;
1524+
pub const XATTR_SHOWCOMPRESSION: ::c_int = 0x0020;
1525+
15191526
f! {
15201527
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
15211528
status >> 8

src/unix/notbsd/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ pub const PR_CAP_AMBIENT_RAISE: ::c_int = 2;
697697
pub const PR_CAP_AMBIENT_LOWER: ::c_int = 3;
698698
pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4;
699699

700+
pub const XATTR_CREATE: ::c_int = 0x1;
701+
pub const XATTR_REPLACE: ::c_int = 0x2;
702+
700703
f! {
701704
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
702705
for slot in cpuset.bits.iter_mut() {

0 commit comments

Comments
 (0)