1POSIX_TRACE_EVENTTYPELIST_GEPTONSEIXXT_PIrDo(gPr)amPmOeSrI'Xs_TMRaAnCuEa_lEVENTTYPELIST_GETNEXT_ID(P)
2
3
4

NAME

6       posix_trace_eventtypelist_getnext_id,  posix_trace_eventtypelist_rewind
7       - iterate over a mapping of trace event types (TRACING)
8

SYNOPSIS

10       #include <trace.h>
11
12       int posix_trace_eventtypelist_getnext_id(trace_id_t trid,
13              trace_event_id_t *restrict event, int *restrict unavailable);
14       int posix_trace_eventtypelist_rewind(trace_id_t trid);
15
16

DESCRIPTION

18       The first time posix_trace_eventtypelist_getnext_id()  is  called,  the
19       function  shall  return  in  the variable pointed to by event the first
20       trace event type identifier of the list of trace events  of  the  trace
21       stream   identified   by   the   trid  argument.  Successive  calls  to
22       posix_trace_eventtypelist_getnext_id() return in the  variable  pointed
23       to  by  event  the  next trace event type identifier in that same list.
24       Each time a trace event type identifier is  successfully  written  into
25       the  variable pointed to by the event argument, the variable pointed to
26       by the unavailable argument shall be set to zero.  When no  more  trace
27       event  type  identifiers  are  available,  and so none is returned, the
28       variable pointed to by the unavailable argument shall be set to a value
29       different from zero.
30
31       The  posix_trace_eventtypelist_rewind()  function  shall reset the next
32       trace event type identifier to be read to the first  trace  event  type
33       identifier from the list of trace events used in the trace stream iden‐
34       tified by trid.
35

RETURN VALUE

37       Upon successful completion, these functions shall  return  a  value  of
38       zero. Otherwise, they shall return the corresponding error number.
39
40       The  posix_trace_eventtypelist_getnext_id()  function  stores the trace
41       event type identifier value in the object pointed to by event, if  suc‐
42       cessful.
43

ERRORS

45       These functions shall fail if:
46
47       EINVAL The trid argument was not a valid trace stream identifier.
48
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       None.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       posix_trace_event()        ,        posix_trace_getnext_event()       ,
66       posix_trace_trid_eventid_open()  ,  the  Base  Definitions  volume   of
67       IEEE Std 1003.1-2001, <trace.h>
68
70       Portions  of  this text are reprinted and reproduced in electronic form
71       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
72       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
73       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
74       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
75       event of any discrepancy between this version and the original IEEE and
76       The  Open Group Standard, the original IEEE and The Open Group Standard
77       is the referee document. The original Standard can be  obtained  online
78       at http://www.opengroup.org/unix/online.html .
79
80
81
82IEEE/The Open Group                  200P3OSIX_TRACE_EVENTTYPELIST_GETNEXT_ID(P)
Impressum