POSIX_TRACE_ATTR_DESTROY(3)POSIX Programmer's ManualPOSIX_TRACE_ATTR_DESTROY(3)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.


NNAAMMEE
       posix_trace_attr_destroy, posix_trace_attr_init -- destroy and
       initialize the trace stream attributes object (TTRRAACCIINNGG)

SSYYNNOOPPSSIISS
       #include <trace.h>

       int posix_trace_attr_destroy(trace_attr_t *_a_t_t_r);
       int posix_trace_attr_init(trace_attr_t *_a_t_t_r);

DDEESSCCRRIIPPTTIIOONN
       The _p_o_s_i_x___t_r_a_c_e___a_t_t_r___d_e_s_t_r_o_y() function shall destroy an initialized
       trace attributes object.  A destroyed _a_t_t_r attributes object can be
       reinitialized using _p_o_s_i_x___t_r_a_c_e___a_t_t_r___i_n_i_t(); the results of otherwise
       referencing the object after it has been destroyed are undefined.

       The _p_o_s_i_x___t_r_a_c_e___a_t_t_r___i_n_i_t() function shall initialize a trace
       attributes object _a_t_t_r with the default value for all of the individual
       attributes used by a given implementation. The read-only _g_e_n_e_r_a_t_i_o_n_-
       _v_e_r_s_i_o_n and _c_l_o_c_k_-_r_e_s_o_l_u_t_i_o_n attributes of the newly initialized trace
       attributes object shall be set to their appropriate values (see _S_e_c_t_i_o_n
       _2_._1_1_._1_._2, _p_o_s_i_x___t_r_a_c_e___s_t_a_t_u_s___i_n_f_o _S_t_r_u_c_t_u_r_e).

       Results are undefined if _p_o_s_i_x___t_r_a_c_e___a_t_t_r___i_n_i_t() is called specifying
       an already initialized _a_t_t_r attributes object.

       Implementations may add extensions to the trace attributes object
       structure as permitted in the Base Definitions volume of POSIX.1-2008,
       _C_h_a_p_t_e_r _2, _C_o_n_f_o_r_m_a_n_c_e.

       The resulting attributes object (possibly modified by setting
       individual attributes values), when used by _p_o_s_i_x___t_r_a_c_e___c_r_e_a_t_e(),
       defines the attributes of the trace stream created. A single attributes
       object can be used in multiple calls to _p_o_s_i_x___t_r_a_c_e___c_r_e_a_t_e().  After
       one or more trace streams have been created using an attributes object,
       any function affecting that attributes object, including destruction,
       shall not affect any trace stream previously created. An initialized
       attributes object also serves to receive the attributes of an existing
       trace stream or trace log when calling the _p_o_s_i_x___t_r_a_c_e___g_e_t___a_t_t_r()
       function.

RREETTUURRNN VVAALLUUEE
       Upon successful completion, these functions shall return a value of
       zero. Otherwise, they shall return the corresponding error number.

EERRRROORRSS
       The _p_o_s_i_x___t_r_a_c_e___a_t_t_r___d_e_s_t_r_o_y() function may fail if:

       EEIINNVVAALL The value of _a_t_t_r is invalid.

       The _p_o_s_i_x___t_r_a_c_e___a_t_t_r___i_n_i_t() function shall fail if:

       EENNOOMMEEMM Insufficient memory exists to initialize the trace attributes
              object.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

EEXXAAMMPPLLEESS
       None.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       None.

RRAATTIIOONNAALLEE
       None.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       The _p_o_s_i_x___t_r_a_c_e___a_t_t_r___d_e_s_t_r_o_y() and _p_o_s_i_x___t_r_a_c_e___a_t_t_r___i_n_i_t() functions
       may be removed in a future version.

SSEEEE AALLSSOO
       _p_o_s_i_x___t_r_a_c_e___c_r_e_a_t_e(), _p_o_s_i_x___t_r_a_c_e___g_e_t___a_t_t_r(), _u_n_a_m_e()

       The Base Definitions volume of POSIX.1-2008, <<ttrraaccee..hh>>

CCOOPPYYRRIIGGHHTT
       Portions of this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
       -- Portable Operating System Interface (POSIX), The Open Group Base
       Specifications Issue 7, Copyright (C) 2013 by the Institute of
       Electrical and Electronics Engineers, Inc and The Open Group.  (This is
       POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
       event of any discrepancy between this version and the original IEEE and
       The Open Group Standard, the original IEEE and The Open Group Standard
       is the referee document. The original Standard can be obtained online
       at http://www.unix.org/online.html .

       Any typographical or formatting errors that appear in this page are
       most likely to have been introduced during the conversion of the source
       files to man page format. To report such errors, see
       https://www.kernel.org/doc/man-pages/reporting_bugs.html .



IEEE/The Open Group                  2013          POSIX_TRACE_ATTR_DESTROY(3)
