From ce9ab41088a38ce82c7eddd69f39aa69fe745674 Mon Sep 17 00:00:00 2001 From: Phantomical Date: Sun, 4 Dec 2022 16:24:20 -0800 Subject: [PATCH] Add AT_SYSINFO_EHDR constant for linux --- libc-test/semver/linux.txt | 1 + src/unix/linux_like/linux/mod.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 68bb3a0524d45..8151187df07a1 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -181,6 +181,7 @@ AT_SECURE AT_SYMLINK_FOLLOW AT_SYMLINK_NOFOLLOW AT_UID +AT_SYSINFO_EHDR B1000000 B1152000 B1500000 diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index f0a0820c3d3fc..f2efca23b60bf 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1583,6 +1583,10 @@ pub const AT_HWCAP2: ::c_ulong = 26; pub const AT_EXECFN: ::c_ulong = 31; +// defined in arch//include/uapi/asm/auxvec.h but has the same value +// wherever it is defined. +pub const AT_SYSINFO_EHDR: ::c_ulong = 33; + pub const GLOB_ERR: ::c_int = 1 << 0; pub const GLOB_MARK: ::c_int = 1 << 1; pub const GLOB_NOSORT: ::c_int = 1 << 2;