remove support for 'trademark files'
[unleashed/tickless.git] / share / man / man3c_db / td_thr_tsd.3c_db
blob2bfba666965647f17be8288eb3a5fdd606c146f8
1 '\" te
2 .\"  All Rights Reserved  Copyright (c) 1998, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH TD_THR_TSD 3C_DB "Oct 20, 1998"
7 .SH NAME
8 td_thr_tsd \- get a thread's thread-specific data for libc_db library of
9 interfaces
10 .SH SYNOPSIS
11 .LP
12 .nf
13 cc [ \fIflag\fR... ] \fIfile\fR... -lc_db [ \fIlibrary\fR... ]
14 #include <proc_service.h>
15 #include <thread_db.h>
17 \fBtd_err_e\fR \fBtd_thr_tsd\fR(\fBconst td_thrhandle_t, const thread_key_t\fR \fIkey\fR, \fBvoid\fR \fI*data_pp\fR);
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
23 The \fBtd_thr_tsd()\fR function returns in \fI*data_pp\fR the thread-specific
24 data pointer for the thread identified by \fIth_p\fR and the thread-specific
25 data key \fIkey\fR. This is the same value that the thread \fIth_p\fR would
26 obtain if it called \fBthr_getspecific\fR(3C).
27 .sp
28 .LP
29 To find all the thread-specific data keys in use in a given target process,
30 call \fBtd_ta_tsd_iter\fR(3C_DB).
31 .SH RETURN VALUES
32 .sp
33 .ne 2
34 .na
35 \fB\fBTD_OK\fR\fR
36 .ad
37 .RS 12n
38 The call completed successfully.
39 .RE
41 .sp
42 .ne 2
43 .na
44 \fB\fBTD_BADTH\fR\fR
45 .ad
46 .RS 12n
47 An invalid thread handle was passed in.
48 .RE
50 .sp
51 .ne 2
52 .na
53 \fB\fBTD_DBERR\fR\fR
54 .ad
55 .RS 12n
56 A call to one of the imported interface routines failed.
57 .RE
59 .sp
60 .ne 2
61 .na
62 \fB\fBTD_ERR\fR\fR
63 .ad
64 .RS 12n
65 A \fBlibc_db\fR internal error occurred.
66 .RE
68 .SH ATTRIBUTES
69 .sp
70 .LP
71 See \fBattributes\fR(5) for description of the following attributes:
72 .sp
74 .sp
75 .TS
76 box;
77 c | c
78 l | l .
79 ATTRIBUTE TYPE  ATTRIBUTE VALUE
81 MT-Level        Safe
82 .TE
84 .SH SEE ALSO
85 .sp
86 .LP
87 \fBlibc_db\fR(3LIB), \fBtd_ta_tsd_iter\fR(3C_DB), \fBthr_getspecific\fR(3C),
88 \fBattributes\fR(5)