aboutsummaryrefslogtreecommitdiffstats
path: root/man-pages-posix-2003/man3p/posix_trace_attr_getname.3p
blob: dde0b402f4008d6c2b142c9d8b680722f29b9067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 
.TH "POSIX_TRACE_ATTR_GETCLOCKRES" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" posix_trace_attr_getclockres 
.SH PROLOG
This manual page is part of the POSIX Programmer's Manual.
The Linux implementation of this interface may differ (consult
the corresponding Linux manual page for details of Linux behavior),
or the interface may not be implemented on Linux.
.SH NAME
posix_trace_attr_getclockres, posix_trace_attr_getcreatetime, posix_trace_attr_getgenversion,
posix_trace_attr_getname,
posix_trace_attr_setname \- retrieve and set information about a trace
stream (\fBTRACING\fP)
.SH SYNOPSIS
.LP
\fB#include <time.h>
.br
#include <trace.h>
.br
.sp
int posix_trace_attr_getclockres(const trace_attr_t *\fP\fIattr\fP\fB,
.br
\ \ \ \ \ \  struct timespec *\fP\fIresolution\fP\fB);
.br
int posix_trace_attr_getcreatetime(const trace_attr_t *\fP\fIattr\fP\fB,
.br
\ \ \ \ \ \  struct timespec *\fP\fIcreatetime\fP\fB);
.br
.sp
.sp
#include <trace.h>
.br
int posix_trace_attr_getgenversion(const trace_attr_t *\fP\fIattr\fP\fB,
.br
\ \ \ \ \ \  char *\fP\fIgenversion\fP\fB);
.br
int posix_trace_attr_getname(const trace_attr_t *\fP\fIattr\fP\fB,
.br
\ \ \ \ \ \  char *\fP\fItracename\fP\fB);
.br
int posix_trace_attr_setname(trace_attr_t *\fP\fIattr\fP\fB,
.br
\ \ \ \ \ \  const char *\fP\fItracename\fP\fB); \fP
\fB
.br
\fP
.SH DESCRIPTION
.LP
The \fIposix_trace_attr_getclockres\fP() function shall copy the clock
resolution of the clock used to generate timestamps from
the \fIclock-resolution\fP attribute of the attributes object pointed
to by the \fIattr\fP argument into the structure pointed to
by the \fIresolution\fP argument.
.LP
The \fIposix_trace_attr_getcreatetime\fP() function shall copy the
trace stream creation time from the \fIcreation-time\fP
attribute of the attributes object pointed to by the \fIattr\fP argument
into the structure pointed to by the \fIcreatetime\fP
argument. The \fIcreation-time\fP attribute shall represent the time
of creation of the trace stream.
.LP
The \fIposix_trace_attr_getgenversion\fP() function shall copy the
string containing version information from the
\fIgeneration-version\fP attribute of the attributes object pointed
to by the \fIattr\fP argument into the string pointed to by
the \fIgenversion\fP argument. The \fIgenversion\fP argument shall
be the address of a character array which can store at least
{TRACE_NAME_MAX} characters.
.LP
The \fIposix_trace_attr_getname\fP() function shall copy the string
containing the trace name from the \fItrace-name\fP
attribute of the attributes object pointed to by the \fIattr\fP argument
into the string pointed to by the \fItracename\fP
argument. The \fItracename\fP argument shall be the address of a character
array which can store at least {TRACE_NAME_MAX}
characters.
.LP
The \fIposix_trace_attr_setname\fP() function shall set the name in
the \fItrace-name\fP attribute of the attributes object
pointed to by the \fIattr\fP argument, using the trace name string
supplied by the \fItracename\fP argument. If the supplied
string contains more than {TRACE_NAME_MAX} characters, the name copied
into the \fItrace-name\fP attribute may be truncated to one
less than the length of {TRACE_NAME_MAX} characters. The default value
is a null string.
.SH RETURN VALUE
.LP
Upon successful completion, these functions shall return a value of
zero. Otherwise, they shall return the corresponding error
number.
.LP
If successful, the \fIposix_trace_attr_getclockres\fP() function stores
the \fIclock-resolution\fP attribute value in the
object pointed to by \fIresolution\fP. Otherwise, the content of this
object is unspecified.
.LP
If successful, the \fIposix_trace_attr_getcreatetime\fP() function
stores the trace stream creation time in the object pointed
to by \fIcreatetime\fP. Otherwise, the content of this object is unspecified.
.LP
If successful, the \fIposix_trace_attr_getgenversion\fP() function
stores the trace version information in the string pointed
to by \fIgenversion\fP. Otherwise, the content of this string is unspecified.
.LP
If successful, the \fIposix_trace_attr_getname\fP() function stores
the trace name in the string pointed to by
\fItracename\fP. Otherwise, the content of this string is unspecified.
.SH ERRORS
.LP
The \fIposix_trace_attr_getclockres\fP(), \fIposix_trace_attr_getcreatetime\fP(),
\fIposix_trace_attr_getgenversion\fP(), and
\fIposix_trace_attr_getname\fP() functions may fail if:
.TP 7
.B EINVAL
The value specified by one of the arguments is invalid.
.sp
.LP
\fIThe following sections are informative.\fP
.SH EXAMPLES
.LP
None.
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
\fIposix_trace_attr_init\fP(), \fIposix_trace_create\fP(), \fIposix_trace_get_attr\fP()
,
\fIuname\fP(), the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
\fI<time.h>\fP, \fI<trace.h>\fP
.SH COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. 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.opengroup.org/unix/online.html .