diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-03-18 11:31:12 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-03-18 11:32:20 -0700 |
commit | 88d791c259cc2f81b18547ae7f7859c3508cef21 (patch) | |
tree | 900e4da7184458f4e4b54e8bf581ef2a6fe1a9bd | |
parent | cea1dd7d21b976ad5cb145b94be7b1bf879235be (diff) |
Replace use of ucontext with ucontext_t.
PiperOrigin-RevId: 239026571
Change-Id: Ifd01674855094f3abad497776f418023452033a1
-rw-r--r-- | test/syscalls/linux/sigaltstack.cc | 4 | ||||
-rw-r--r-- | test/util/signal_util.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/syscalls/linux/sigaltstack.cc b/test/syscalls/linux/sigaltstack.cc index fa991545c..b1845ac85 100644 --- a/test/syscalls/linux/sigaltstack.cc +++ b/test/syscalls/linux/sigaltstack.cc @@ -143,7 +143,7 @@ void badhandler(int sig, siginfo_t* siginfo, void* arg) { badhandler_recursive_faults--; Fault(); } - FixupFault(reinterpret_cast<ucontext*>(arg)); + FixupFault(reinterpret_cast<ucontext_t*>(arg)); } TEST(SigaltstackTest, WalksOffBottom) { @@ -215,7 +215,7 @@ void setonstack(int sig, siginfo_t* siginfo, void* arg) { stack.ss_size = SIGSTKSZ; setonstack_retval = sigaltstack(&stack, nullptr); setonstack_errno = errno; - FixupFault(reinterpret_cast<ucontext*>(arg)); + FixupFault(reinterpret_cast<ucontext_t*>(arg)); } TEST(SigaltstackTest, SetWhileOnStack) { diff --git a/test/util/signal_util.h b/test/util/signal_util.h index f58f4c6c4..80f1808f6 100644 --- a/test/util/signal_util.h +++ b/test/util/signal_util.h @@ -78,7 +78,7 @@ inline void Fault() { } // FixupFault fixes up a fault generated by fault, above. -inline void FixupFault(ucontext* ctx) { +inline void FixupFault(ucontext_t* ctx) { // Skip the bad instruction above. // // The encoding is 0x48 0xab 0x00. |