📄 ucontext.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><ucontext.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_010_217"> </a>NAME</h4><blockquote>ucontext - user context</blockquote><h4><a name = "tag_000_010_218"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <ucontext.h></code></pre></blockquote><h4><a name = "tag_000_010_219"> </a>DESCRIPTION</h4><blockquote>The<i><ucontext.h></i>header defines the<b>mcontext_t</b>type through<b>typedef</b>.<p>The<i><ucontext.h></i>header defines the<b>ucontext_t</b>type as a structure that includes at least the following members:<pre><code>ucontext_t *uc_link pointer to the context that will be resumed when this context returnssigset_t uc_sigmask the set of signals that are blocked when this context is activestack_t uc_stack the stack used by this contextmcontext_t uc_mcontext a machine-specific representation of the saved context</code></pre><p>The types<b>sigset_t</b>and<b>stack_t</b>are defined as in<i><a href="signal.h.html"><signal.h></a></i>.<p>The following are declared as functions and may also be defined as macros,Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>int <a href="getcontext.html">getcontext</a>(ucontext_t *);int <a href="setcontext.html">setcontext</a>(const ucontext_t *);void <a href="makecontext.html">makecontext</a>(ucontext_t *, (void *)(), int, ...);int <a href="swapcontext.html">swapcontext</a>(ucontext_t *, const ucontext_t *);</code></pre></blockquote><h4><a name = "tag_000_010_220"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_221"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_222"> </a>SEE ALSO</h4><blockquote><i><a href="getcontext.html">getcontext()</a></i>,<i><a href="makecontext.html">makecontext()</a></i>,<i><a href="sigaction.html">sigaction()</a></i>,<i><a href="sigprocmask.html">sigprocmask()</a></i>,<i><a href="sigaltstack.html">sigaltstack()</a></i>,<i><a href="signal.h.html"><signal.h></a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -