summaryrefslogtreecommitdiffstats
path: root/man3/getcontext.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/getcontext.3')
-rw-r--r--man3/getcontext.318
1 files changed, 11 insertions, 7 deletions
diff --git a/man3/getcontext.3 b/man3/getcontext.3
index 754f425ec..217f34ed1 100644
--- a/man3/getcontext.3
+++ b/man3/getcontext.3
@@ -22,7 +22,7 @@
.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH GETCONTEXT 3 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH GETCONTEXT 3 2020-12-21 "Linux" "Linux Programmer's Manual"
.SH NAME
getcontext, setcontext \- get or set the user context
.SH SYNOPSIS
@@ -95,22 +95,25 @@ that includes the calling thread's machine registers.
The function
.BR getcontext ()
initializes the structure
-pointed at by
+pointed to by
.I ucp
to the currently active context.
.PP
The function
.BR setcontext ()
restores the user context
-pointed at by
+pointed to by
.IR ucp .
A successful call does not return.
The context should have been obtained by a call of
.BR getcontext (),
or
.BR makecontext (3),
-or passed as third argument to a signal
-handler.
+or received as the third argument to a signal
+handler (see the discussion of the
+.BR SA_SIGINFO
+flag in
+.BR sigaction (2)).
.PP
If the context was obtained by a call of
.BR getcontext (),
@@ -203,9 +206,10 @@ instead.
.BR sigprocmask (2),
.BR longjmp (3),
.BR makecontext (3),
-.BR sigsetjmp (3)
+.BR sigsetjmp (3),
+.BR signal (7)
.SH COLOPHON
-This page is part of release 5.09 of the Linux
+This page is part of release 5.10 of the Linux
.I man-pages
project.
A description of the project,