mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Replace use of ucontext with ucontext_t.
PiperOrigin-RevId: 239026571 Change-Id: Ifd01674855094f3abad497776f418023452033a1
This commit is contained in:
committed by
Shentubot
parent
cea1dd7d21
commit
88d791c259
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user