Skip to content

Commit 2e8a5e6

Browse files
committed
Auto merge of #2349 - devnexen:netbsd_auxv_types, r=Amanieu
netbsd add auxiliary vector query ids.
2 parents 74adc7f + 1f06fa7 commit 2e8a5e6

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ fn test_netbsd(target: &str) {
956956
"signal.h",
957957
"string.h",
958958
"sys/endian.h",
959+
"sys/exec_elf.h",
959960
"sys/extattr.h",
960961
"sys/file.h",
961962
"sys/ioctl.h",

libc-test/semver/netbsd-x86_64.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Aux64Info
12
PT_GETFPREGS
23
PT_GETREGS
34
PT_SETFPREGS

libc-test/semver/netbsd.txt

+29
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,40 @@ ATF_COM
5858
ATF_PERM
5959
ATF_PUBL
6060
ATF_USETRAILERS
61+
AT_BASE
62+
AT_DCACHEBSIZE
6163
AT_EACCESS
64+
AT_EGID
65+
AT_ENTRY
66+
AT_EUID
67+
AT_EXECFD
6268
AT_FDCWD
69+
AT_FLAGS
70+
AT_ICACHEBSIZE
71+
AT_IGNORE
72+
AT_NULL
73+
AT_PAGESZ
74+
AT_PHDR
75+
AT_PHENT
76+
AT_PHNUM
6377
AT_REMOVEDIR
78+
AT_RGID
79+
AT_RUID
80+
AT_SUN_CPU
81+
AT_SUN_EMUL_ENTRY
82+
AT_SUN_EMUL_EXECFD
83+
AT_SUN_EXECNAME
84+
AT_SUN_HWCAP
85+
AT_SUN_IFLUSH
86+
AT_SUN_LDELF
87+
AT_SUN_LDNAME
88+
AT_SUN_LDSHDR
89+
AT_SUN_LPGSIZE
90+
AT_SUN_PLATFORM
91+
AT_STACKBASE
6492
AT_SYMLINK_FOLLOW
6593
AT_SYMLINK_NOFOLLOW
94+
AT_UCACHEBSIZE
6695
B14400
6796
B28800
6897
B460800

src/unix/bsd/netbsdlike/netbsd/mod.rs

+30
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,36 @@ pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x200;
10391039
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400;
10401040
pub const AT_REMOVEDIR: ::c_int = 0x800;
10411041

1042+
pub const AT_NULL: ::c_int = 0;
1043+
pub const AT_IGNORE: ::c_int = 1;
1044+
pub const AT_EXECFD: ::c_int = 2;
1045+
pub const AT_PHDR: ::c_int = 3;
1046+
pub const AT_PHENT: ::c_int = 4;
1047+
pub const AT_PHNUM: ::c_int = 5;
1048+
pub const AT_PAGESZ: ::c_int = 6;
1049+
pub const AT_BASE: ::c_int = 7;
1050+
pub const AT_FLAGS: ::c_int = 8;
1051+
pub const AT_ENTRY: ::c_int = 9;
1052+
pub const AT_DCACHEBSIZE: ::c_int = 10;
1053+
pub const AT_ICACHEBSIZE: ::c_int = 11;
1054+
pub const AT_UCACHEBSIZE: ::c_int = 12;
1055+
pub const AT_STACKBASE: ::c_int = 13;
1056+
pub const AT_EUID: ::c_int = 2000;
1057+
pub const AT_RUID: ::c_int = 2001;
1058+
pub const AT_EGID: ::c_int = 2002;
1059+
pub const AT_RGID: ::c_int = 2003;
1060+
pub const AT_SUN_LDELF: ::c_int = 2004;
1061+
pub const AT_SUN_LDSHDR: ::c_int = 2005;
1062+
pub const AT_SUN_LDNAME: ::c_int = 2006;
1063+
pub const AT_SUN_LDPGSIZE: ::c_int = 2007;
1064+
pub const AT_SUN_PLATFORM: ::c_int = 2008;
1065+
pub const AT_SUN_HWCAP: ::c_int = 2009;
1066+
pub const AT_SUN_IFLUSH: ::c_int = 2010;
1067+
pub const AT_SUN_CPU: ::c_int = 2011;
1068+
pub const AT_SUN_EMUL_ENTRY: ::c_int = 2012;
1069+
pub const AT_SUN_EMUL_EXECFD: ::c_int = 2013;
1070+
pub const AT_SUN_EXECNAME: ::c_int = 2014;
1071+
10421072
pub const EXTATTR_NAMESPACE_USER: ::c_int = 1;
10431073
pub const EXTATTR_NAMESPACE_SYSTEM: ::c_int = 2;
10441074

0 commit comments

Comments
 (0)