📄 posix_trace_eventtypelist_rewind.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title>posix_trace_eventtypelist_getnext_id</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="posix_trace_eventtypelist_getnext_id"></a> <a name="tag_03_467"></a> <!-- posix_trace_eventtypelist_getnext_id --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_03_467_01"></a>NAME</h4><blockquote>posix_trace_eventtypelist_getnext_id, posix_trace_eventtypelist_rewind - iterate over a mapping of trace event types(<b>TRACING</b>)</blockquote><h4><a name="tag_03_467_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><code><tt><sup>[<a href="javascript:open_code('TRC')">TRC</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> #include <<a href="../basedefs/trace.h.html">trace.h</a>><br><br> int posix_trace_eventtypelist_getnext_id(trace_id_t</tt> <i>trid</i><tt>,<br> trace_event_id_t *restrict</tt> <i>event</i><tt>, int *restrict</tt><i>unavailable</i><tt>);<br> int posix_trace_eventtypelist_rewind(trace_id_t</tt> <i>trid</i><tt>); <img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div><tt><br></tt></blockquote><h4><a name="tag_03_467_03"></a>DESCRIPTION</h4><blockquote><p>The first time <i>posix_trace_eventtypelist_getnext_id</i>() is called, the function shall return in the variable pointed to by<i>event</i> the first trace event type identifier of the list of trace events of the trace stream identified by the <i>trid</i>argument. Successive calls to <i>posix_trace_eventtypelist_getnext_id</i>() return in the variable pointed to by <i>event</i> thenext trace event type identifier in that same list. Each time a trace event type identifier is successfully written into thevariable pointed to by the <i>event</i> argument, the variable pointed to by the <i>unavailable</i> argument shall be set to zero.When no more trace event type identifiers are available, and so none is returned, the variable pointed to by the <i>unavailable</i>argument shall be set to a value different from zero.</p><p>The <i>posix_trace_eventtypelist_rewind</i>() function shall reset the next trace event type identifier to be read to the firsttrace event type identifier from the list of trace events used in the trace stream identified by <i>trid</i>.</p></blockquote><h4><a name="tag_03_467_04"></a>RETURN VALUE</h4><blockquote><p>Upon successful completion, these functions shall return a value of zero. Otherwise, they shall return the corresponding errornumber.</p><p>The <i>posix_trace_eventtypelist_getnext_id</i>() function stores the trace event type identifier value in the object pointed toby <i>event</i>, if successful.</p></blockquote><h4><a name="tag_03_467_05"></a>ERRORS</h4><blockquote><p>These functions shall fail if:</p><dl compact><dt>[EINVAL]</dt><dd>The <i>trid</i> argument was not a valid trace stream identifier.</dd></dl></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_03_467_06"></a>EXAMPLES</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_03_467_07"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_03_467_08"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_03_467_09"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_03_467_10"></a>SEE ALSO</h4><blockquote><p><a href="posix_trace_event.html"><i>posix_trace_event</i>()</a> , <a href="posix_trace_getnext_event.html"><i>posix_trace_getnext_event</i>()</a> , <a href="posix_trace_trid_eventid_open.html"><i>posix_trace_trid_eventid_open</i>()</a> , the Base Definitions volume ofIEEE Std 1003.1-2001, <a href="../basedefs/trace.h.html"><i><trace.h></i></a></p></blockquote><h4><a name="tag_03_467_11"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 6. Derived from IEEE Std 1003.1q-2000.</p><p>IEEE PASC Interpretations 1003.1 #123 and #129 are applied.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -