Skip to content

Commit 7dd7932

Browse files
committed
Auto merge of #2463 - irgstg:basic_nt_consts, r=Amanieu
Adding some NT_* consts from elf.h
2 parents 1045d01 + 9463146 commit 7dd7932

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,23 @@ NFT_USERDATA_MAXLEN
319319
NF_NETDEV_INGRESS
320320
NF_NETDEV_NUMHOOKS
321321
NILFS_SUPER_MAGIC
322+
NT_PRSTATUS
323+
NT_PRFPREG
324+
NT_FPREGSET
325+
NT_PRPSINFO
326+
NT_PRXREG
327+
NT_TASKSTRUCT
328+
NT_PLATFORM
329+
NT_AUXV
330+
NT_GWINDOWS
331+
NT_ASRS
332+
NT_PSTATUS
333+
NT_PSINFO
334+
NT_PRCRED
335+
NT_UTSNAME
336+
NT_LWPSTATUS
337+
NT_LWPSINFO
338+
NT_PRFPXREG
322339
NTF_EXT_LEARNED
323340
NTF_MASTER
324341
NTF_OFFLOADED

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,25 @@ pub const TIOCM_RTS: ::c_int = 0x004;
956956
pub const TIOCM_CD: ::c_int = TIOCM_CAR;
957957
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
958958

959+
// elf.h
960+
pub const NT_PRSTATUS: ::c_int = 1;
961+
pub const NT_PRFPREG: ::c_int = 2;
962+
pub const NT_FPREGSET: ::c_int = 2;
963+
pub const NT_PRPSINFO: ::c_int = 3;
964+
pub const NT_PRXREG: ::c_int = 4;
965+
pub const NT_TASKSTRUCT: ::c_int = 4;
966+
pub const NT_PLATFORM: ::c_int = 5;
967+
pub const NT_AUXV: ::c_int = 6;
968+
pub const NT_GWINDOWS: ::c_int = 7;
969+
pub const NT_ASRS: ::c_int = 8;
970+
pub const NT_PSTATUS: ::c_int = 10;
971+
pub const NT_PSINFO: ::c_int = 13;
972+
pub const NT_PRCRED: ::c_int = 14;
973+
pub const NT_UTSNAME: ::c_int = 15;
974+
pub const NT_LWPSTATUS: ::c_int = 16;
975+
pub const NT_LWPSINFO: ::c_int = 17;
976+
pub const NT_PRFPXREG: ::c_int = 20;
977+
959978
// linux/keyctl.h
960979
pub const KEYCTL_DH_COMPUTE: u32 = 23;
961980
pub const KEYCTL_PKEY_QUERY: u32 = 24;

0 commit comments

Comments
 (0)