Skip to content

Commit 8db1dff

Browse files
committed
move RWF_* flags from gnu/musl to generic linux module
1 parent 5a5e1e5 commit 8db1dff

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -946,18 +946,6 @@ pub const PTRACE_SYSCALL_INFO_SECCOMP: crate::__u8 = 3;
946946
pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4210;
947947
pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4211;
948948

949-
// linux/fs.h
950-
951-
// Flags for preadv2/pwritev2
952-
pub const RWF_HIPRI: c_int = 0x00000001;
953-
pub const RWF_DSYNC: c_int = 0x00000002;
954-
pub const RWF_SYNC: c_int = 0x00000004;
955-
pub const RWF_NOWAIT: c_int = 0x00000008;
956-
pub const RWF_APPEND: c_int = 0x00000010;
957-
pub const RWF_NOAPPEND: c_int = 0x00000020;
958-
pub const RWF_ATOMIC: c_int = 0x00000040;
959-
pub const RWF_DONTCACHE: c_int = 0x00000080;
960-
961949
// linux/rtnetlink.h
962950
pub const TCA_PAD: c_ushort = 9;
963951
pub const TCA_DUMP_INVISIBLE: c_ushort = 10;

src/unix/linux_like/linux/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,6 +2858,18 @@ pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
28582858
pub const IFA_F_MCAUTOJOIN: u32 = 0x400;
28592859
pub const IFA_F_STABLE_PRIVACY: u32 = 0x800;
28602860

2861+
// linux/fs.h
2862+
2863+
// Flags for preadv2/pwritev2
2864+
pub const RWF_HIPRI: c_int = 0x00000001;
2865+
pub const RWF_DSYNC: c_int = 0x00000002;
2866+
pub const RWF_SYNC: c_int = 0x00000004;
2867+
pub const RWF_NOWAIT: c_int = 0x00000008;
2868+
pub const RWF_APPEND: c_int = 0x00000010;
2869+
pub const RWF_NOAPPEND: c_int = 0x00000020;
2870+
pub const RWF_ATOMIC: c_int = 0x00000040;
2871+
pub const RWF_DONTCACHE: c_int = 0x00000080;
2872+
28612873
// linux/if_link.h
28622874
pub const IFLA_UNSPEC: c_ushort = 0;
28632875
pub const IFLA_ADDRESS: c_ushort = 1;

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -768,15 +768,6 @@ pub const PTRACE_PEEKSIGINFO: c_int = 0x4209;
768768
pub const PTRACE_GETSIGMASK: c_uint = 0x420a;
769769
pub const PTRACE_SETSIGMASK: c_uint = 0x420b;
770770

771-
pub const RWF_HIPRI: c_int = 0x00000001;
772-
pub const RWF_DSYNC: c_int = 0x00000002;
773-
pub const RWF_SYNC: c_int = 0x00000004;
774-
pub const RWF_NOWAIT: c_int = 0x00000008;
775-
pub const RWF_APPEND: c_int = 0x00000010;
776-
pub const RWF_NOAPPEND: c_int = 0x00000020;
777-
pub const RWF_ATOMIC: c_int = 0x00000040;
778-
pub const RWF_DONTCACHE: c_int = 0x00000080;
779-
780771
pub const AF_IB: c_int = 27;
781772
pub const AF_MPLS: c_int = 28;
782773
pub const AF_NFC: c_int = 39;

0 commit comments

Comments
 (0)