1POSIX_TRACE_ATTR_DESTROY(3P)POSIX Programmer's ManuaPlOSIX_TRACE_ATTR_DESTROY(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 posix_trace_attr_destroy, posix_trace_attr_init — destroy and initial‐
14 ize the trace stream attributes object (TRACING)
15
17 #include <trace.h>
18
19 int posix_trace_attr_destroy(trace_attr_t *attr);
20 int posix_trace_attr_init(trace_attr_t *attr);
21
23 The posix_trace_attr_destroy() function shall destroy an initialized
24 trace attributes object. A destroyed attr attributes object can be
25 reinitialized using posix_trace_attr_init(); the results of otherwise
26 referencing the object after it has been destroyed are undefined.
27
28 The posix_trace_attr_init() function shall initialize a trace
29 attributes object attr with the default value for all of the individual
30 attributes used by a given implementation. The read-only generation-
31 version and clock-resolution attributes of the newly initialized trace
32 attributes object shall be set to their appropriate values (see Section
33 2.11.1.2, posix_trace_status_info Structure).
34
35 Results are undefined if posix_trace_attr_init() is called specifying
36 an already initialized attr attributes object.
37
38 Implementations may add extensions to the trace attributes object
39 structure as permitted in the Base Definitions volume of POSIX.1‐2008,
40 Chapter 2, Conformance.
41
42 The resulting attributes object (possibly modified by setting individ‐
43 ual attributes values), when used by posix_trace_create(), defines the
44 attributes of the trace stream created. A single attributes object can
45 be used in multiple calls to posix_trace_create(). After one or more
46 trace streams have been created using an attributes object, any func‐
47 tion affecting that attributes object, including destruction, shall not
48 affect any trace stream previously created. An initialized attributes
49 object also serves to receive the attributes of an existing trace
50 stream or trace log when calling the posix_trace_get_attr() function.
51
53 Upon successful completion, these functions shall return a value of
54 zero. Otherwise, they shall return the corresponding error number.
55
57 The posix_trace_attr_destroy() function may fail if:
58
59 EINVAL The value of attr is invalid.
60
61 The posix_trace_attr_init() function shall fail if:
62
63 ENOMEM Insufficient memory exists to initialize the trace attributes
64 object.
65
66 The following sections are informative.
67
69 None.
70
72 None.
73
75 None.
76
78 The posix_trace_attr_destroy() and posix_trace_attr_init() functions
79 may be removed in a future version.
80
82 posix_trace_create(), posix_trace_get_attr(), uname()
83
84 The Base Definitions volume of POSIX.1‐2008, <trace.h>
85
87 Portions of this text are reprinted and reproduced in electronic form
88 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
89 -- Portable Operating System Interface (POSIX), The Open Group Base
90 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
91 cal and Electronics Engineers, Inc and The Open Group. (This is
92 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
93 event of any discrepancy between this version and the original IEEE and
94 The Open Group Standard, the original IEEE and The Open Group Standard
95 is the referee document. The original Standard can be obtained online
96 at http://www.unix.org/online.html .
97
98 Any typographical or formatting errors that appear in this page are
99 most likely to have been introduced during the conversion of the source
100 files to man page format. To report such errors, see https://www.ker‐
101 nel.org/doc/man-pages/reporting_bugs.html .
102
103
104
105IEEE/The Open Group 2013 POSIX_TRACE_ATTR_DESTROY(3P)