1POSIX_TRACE_ATTR_DESTROY(P)POSIX Programmer's ManualPOSIX_TRACE_ATTR_DESTROY(P)
2
3
4
6 posix_trace_attr_destroy, posix_trace_attr_init - destroy and initial‐
7 ize the trace stream attributes object (TRACING)
8
10 #include <trace.h>
11
12 int posix_trace_attr_destroy(trace_attr_t *attr);
13 int posix_trace_attr_init(trace_attr_t *attr);
14
15
17 The posix_trace_attr_destroy() function shall destroy an initialized
18 trace attributes object. A destroyed attr attributes object can be
19 reinitialized using posix_trace_attr_init(); the results of otherwise
20 referencing the object after it has been destroyed are undefined.
21
22 The posix_trace_attr_init() function shall initialize a trace
23 attributes object attr with the default value for all of the individual
24 attributes used by a given implementation. The read-only generation-
25 version and clock-resolution attributes of the newly initialized trace
26 attributes object shall be set to their appropriate values (see Trace
27 Stream Attributes ).
28
29 Results are undefined if posix_trace_attr_init() is called specifying
30 an already initialized attr attributes object.
31
32 Implementations may add extensions to the trace attributes object
33 structure as permitted in the Base Definitions volume of
34 IEEE Std 1003.1-2001, Chapter 2, Conformance.
35
36 The resulting attributes object (possibly modified by setting individ‐
37 ual attributes values), when used by posix_trace_create(), defines the
38 attributes of the trace stream created. A single attributes object can
39 be used in multiple calls to posix_trace_create(). After one or more
40 trace streams have been created using an attributes object, any func‐
41 tion affecting that attributes object, including destruction, shall not
42 affect any trace stream previously created. An initialized attributes
43 object also serves to receive the attributes of an existing trace
44 stream or trace log when calling the posix_trace_get_attr() function.
45
47 Upon successful completion, these functions shall return a value of
48 zero. Otherwise, they shall return the corresponding error number.
49
51 The posix_trace_attr_destroy() function may fail if:
52
53 EINVAL The value of attr is invalid.
54
55
56 The posix_trace_attr_init() function shall fail if:
57
58 ENOMEM Insufficient memory exists to initialize the trace attributes
59 object.
60
61
62 The following sections are informative.
63
65 None.
66
68 None.
69
71 None.
72
74 None.
75
77 posix_trace_create() , posix_trace_get_attr() , uname() , the Base Def‐
78 initions volume of IEEE Std 1003.1-2001, <trace.h>
79
81 Portions of this text are reprinted and reproduced in electronic form
82 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
83 -- Portable Operating System Interface (POSIX), The Open Group Base
84 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
85 Electrical and Electronics Engineers, Inc and The Open Group. In the
86 event of any discrepancy between this version and the original IEEE and
87 The Open Group Standard, the original IEEE and The Open Group Standard
88 is the referee document. The original Standard can be obtained online
89 at http://www.opengroup.org/unix/online.html .
90
91
92
93IEEE/The Open Group 2003 POSIX_TRACE_ATTR_DESTROY(P)