te
All Rights Reserved Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
TD_BADTH
TD_DBERR
TD_ERR
All Rights Reserved Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
TD_THR_TSD 3C_DB "Oct 20, 1998"
NAME
td_thr_tsd - get a thread's thread-specific data for libc_db library of
interfaces
SYNOPSIS
cc [ flag... ] file... -lc_db [ library... ] #include <proc_service.h> #include <thread_db.h> td_err_e td_thr_tsd(const td_thrhandle_t, const thread_key_t key, void *data_pp);
DESCRIPTION
The td_thr_tsd() function returns in *data_pp the thread-specific data pointer for the thread identified by th_p and the thread-specific data key key. This is the same value that the thread th_p would obtain if it called thr_getspecific(3C).
To find all the thread-specific data keys in use in a given target process, call td_ta_tsd_iter(3C_DB).
RETURN VALUES
TD_OK
The call completed successfully.
An invalid thread handle was passed in.
A call to one of the imported interface routines failed.
A libc_db internal error occurred.
ATTRIBUTES
See attributes(7) for description of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
MT-Level Safe |
SEE ALSO
libc_db(3LIB), td_ta_tsd_iter(3C_DB), thr_getspecific(3C), attributes (7)