aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/notbsd/linux/other/b32
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-22 20:16:05 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-22 20:16:05 -0800
commit4fcdf2022df38b37365ee5d948005ac08a1f1a83 (patch)
treec204c0959100390dc708ebdd977bf9daddb356de /libc/src/unix/notbsd/linux/other/b32
parent8b2d8818b26e7084cad240c48fd9ce7fc2519012 (diff)
downloadnitrocli-4fcdf2022df38b37365ee5d948005ac08a1f1a83.tar.gz
nitrocli-4fcdf2022df38b37365ee5d948005ac08a1f1a83.tar.bz2
Update libc crate to 0.2.47
This change updates the libc crate to version 0.2.47. Import subrepo libc/:libc at ce1dfcbf81bd74662b5cd02a9214818a0bfbbffa
Diffstat (limited to 'libc/src/unix/notbsd/linux/other/b32')
-rw-r--r--libc/src/unix/notbsd/linux/other/b32/x86.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/libc/src/unix/notbsd/linux/other/b32/x86.rs b/libc/src/unix/notbsd/linux/other/b32/x86.rs
index 1506aca..6c41718 100644
--- a/libc/src/unix/notbsd/linux/other/b32/x86.rs
+++ b/libc/src/unix/notbsd/linux/other/b32/x86.rs
@@ -758,6 +758,27 @@ pub const EFL: ::c_int = 14;
pub const UESP: ::c_int = 15;
pub const SS: ::c_int = 16;
+// offsets in mcontext_t.gregs from sys/ucontext.h
+pub const REG_GS: ::c_int = 0;
+pub const REG_FS: ::c_int = 1;
+pub const REG_ES: ::c_int = 2;
+pub const REG_DS: ::c_int = 3;
+pub const REG_EDI: ::c_int = 4;
+pub const REG_ESI: ::c_int = 5;
+pub const REG_EBP: ::c_int = 6;
+pub const REG_ESP: ::c_int = 7;
+pub const REG_EBX: ::c_int = 8;
+pub const REG_EDX: ::c_int = 9;
+pub const REG_ECX: ::c_int = 10;
+pub const REG_EAX: ::c_int = 11;
+pub const REG_TRAPNO: ::c_int = 12;
+pub const REG_ERR: ::c_int = 13;
+pub const REG_EIP: ::c_int = 14;
+pub const REG_CS: ::c_int = 15;
+pub const REG_EFL: ::c_int = 16;
+pub const REG_UESP: ::c_int = 17;
+pub const REG_SS: ::c_int = 18;
+
extern {
pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;
pub fn setcontext(ucp: *const ucontext_t) -> ::c_int;