Skip to content

Commit 68d73f4

Browse files
SteveLauCtgross35
authored andcommitted
feat: move NT_XXX constants defined in elf.h to linux/mod.rs (#3938)
(backport <#3938>) (cherry picked from commit 4ce03da)
1 parent b80609c commit 68d73f4

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -337,23 +337,6 @@ NFT_USERDATA_MAXLEN
337337
NF_NETDEV_INGRESS
338338
NF_NETDEV_NUMHOOKS
339339
NILFS_SUPER_MAGIC
340-
NT_PRSTATUS
341-
NT_PRFPREG
342-
NT_FPREGSET
343-
NT_PRPSINFO
344-
NT_PRXREG
345-
NT_TASKSTRUCT
346-
NT_PLATFORM
347-
NT_AUXV
348-
NT_GWINDOWS
349-
NT_ASRS
350-
NT_PSTATUS
351-
NT_PSINFO
352-
NT_PRCRED
353-
NT_UTSNAME
354-
NT_LWPSTATUS
355-
NT_LWPSINFO
356-
NT_PRFPXREG
357340
NTF_EXT_LEARNED
358341
NTF_MASTER
359342
NTF_OFFLOADED

libc-test/semver/linux.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3950,3 +3950,20 @@ eventfd_write
39503950
__c_anonymous_ifru_map
39513951
__c_anonymous_ifr_ifru
39523952
__c_anonymous_ifc_ifcu
3953+
NT_PRSTATUS
3954+
NT_PRFPREG
3955+
NT_FPREGSET
3956+
NT_PRPSINFO
3957+
NT_PRXREG
3958+
NT_TASKSTRUCT
3959+
NT_PLATFORM
3960+
NT_AUXV
3961+
NT_GWINDOWS
3962+
NT_ASRS
3963+
NT_PSTATUS
3964+
NT_PSINFO
3965+
NT_PRCRED
3966+
NT_UTSNAME
3967+
NT_LWPSTATUS
3968+
NT_LWPSINFO
3969+
NT_PRFPXREG

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,25 +1103,6 @@ pub const XSK_UNALIGNED_BUF_ADDR_MASK: ::c_ulonglong = (1 << XSK_UNALIGNED_BUF_O
11031103

11041104
pub const XDP_PKT_CONTD: ::__u32 = 1 << 0;
11051105

1106-
// elf.h
1107-
pub const NT_PRSTATUS: ::c_int = 1;
1108-
pub const NT_PRFPREG: ::c_int = 2;
1109-
pub const NT_FPREGSET: ::c_int = 2;
1110-
pub const NT_PRPSINFO: ::c_int = 3;
1111-
pub const NT_PRXREG: ::c_int = 4;
1112-
pub const NT_TASKSTRUCT: ::c_int = 4;
1113-
pub const NT_PLATFORM: ::c_int = 5;
1114-
pub const NT_AUXV: ::c_int = 6;
1115-
pub const NT_GWINDOWS: ::c_int = 7;
1116-
pub const NT_ASRS: ::c_int = 8;
1117-
pub const NT_PSTATUS: ::c_int = 10;
1118-
pub const NT_PSINFO: ::c_int = 13;
1119-
pub const NT_PRCRED: ::c_int = 14;
1120-
pub const NT_UTSNAME: ::c_int = 15;
1121-
pub const NT_LWPSTATUS: ::c_int = 16;
1122-
pub const NT_LWPSINFO: ::c_int = 17;
1123-
pub const NT_PRFPXREG: ::c_int = 20;
1124-
11251106
pub const ELFOSABI_ARM_AEABI: u8 = 64;
11261107

11271108
// linux/sched.h

src/unix/linux_like/linux/mod.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4907,6 +4907,25 @@ pub const SCHED_FLAG_KEEP_PARAMS: ::c_int = 0x10;
49074907
pub const SCHED_FLAG_UTIL_CLAMP_MIN: ::c_int = 0x20;
49084908
pub const SCHED_FLAG_UTIL_CLAMP_MAX: ::c_int = 0x40;
49094909

4910+
// elf.h
4911+
pub const NT_PRSTATUS: ::c_int = 1;
4912+
pub const NT_PRFPREG: ::c_int = 2;
4913+
pub const NT_FPREGSET: ::c_int = 2;
4914+
pub const NT_PRPSINFO: ::c_int = 3;
4915+
pub const NT_PRXREG: ::c_int = 4;
4916+
pub const NT_TASKSTRUCT: ::c_int = 4;
4917+
pub const NT_PLATFORM: ::c_int = 5;
4918+
pub const NT_AUXV: ::c_int = 6;
4919+
pub const NT_GWINDOWS: ::c_int = 7;
4920+
pub const NT_ASRS: ::c_int = 8;
4921+
pub const NT_PSTATUS: ::c_int = 10;
4922+
pub const NT_PSINFO: ::c_int = 13;
4923+
pub const NT_PRCRED: ::c_int = 14;
4924+
pub const NT_UTSNAME: ::c_int = 15;
4925+
pub const NT_LWPSTATUS: ::c_int = 16;
4926+
pub const NT_LWPSINFO: ::c_int = 17;
4927+
pub const NT_PRFPXREG: ::c_int = 20;
4928+
49104929
pub const SCHED_FLAG_KEEP_ALL: ::c_int = SCHED_FLAG_KEEP_POLICY | SCHED_FLAG_KEEP_PARAMS;
49114930

49124931
pub const SCHED_FLAG_UTIL_CLAMP: ::c_int = SCHED_FLAG_UTIL_CLAMP_MIN | SCHED_FLAG_UTIL_CLAMP_MAX;

0 commit comments

Comments
 (0)