Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147906488
D43317.1784750742.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
D43317.1784750742.diff
View Options
diff --git a/lib/libc/gen/getcontext.3 b/lib/libc/gen/getcontext.3
--- a/lib/libc/gen/getcontext.3
+++ b/lib/libc/gen/getcontext.3
@@ -141,9 +141,31 @@
.It Bq Er ENOMEM
No memory was available to allocate for the context or some extended state.
.El
+.Sh BUGS
+.Fn getcontext
+and
+.Fn setcontext
+may not save and restore all the CPU's state.
+The state that is not saved can change between a call to
+.Fn getcontext
+and subsequent
+.Fn setcontext .
+Use
+.Fn getcontextx
+and
+.Fn setcotnextx
+to avoid this problem.
+The same caveat applies for
+.Fn getcontext
+and
+.Fn sigreturn
+though the kernel typically manages the
+.Vt ucontext_t
+when signals are sent to a process.
.Sh SEE ALSO
.Xr sigaction 2 ,
.Xr sigaltstack 2 ,
+.Xr sigreturn 2 ,
.Xr makecontext 3 ,
.Xr ucontext 3
.Sh STANDARDS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 8:05 PM (9 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29230790
Default Alt Text
D43317.1784750742.diff (807 B)
Attached To
Mode
D43317: getcontext/setcontext: Make extra CPU state more explicitly a bug
Attached
Detach File
Event Timeline
Log In to Comment