'\" te .\" All Rights Reserved Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved .TH td_thr_tsd 3C_DB "20 Oct 1998" "SunOS 5.11" "Threads Debugging Library Functions" .SH NAME td_thr_tsd \- get a thread's thread-specific data for libc_db library of interfaces .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... -lc_db [ \fIlibrary\fR... ] #include #include \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); .fi .SH DESCRIPTION .sp .LP The \fBtd_thr_tsd()\fR function returns in \fI*data_pp\fR the thread-specific data pointer for the thread identified by \fIth_p\fR and the thread-specific data key \fIkey\fR. This is the same value that the thread \fIth_p\fR would obtain if it called \fBthr_getspecific\fR(3C). .sp .LP To find all the thread-specific data keys in use in a given target process, call \fBtd_ta_tsd_iter\fR(3C_DB). .SH RETURN VALUES .sp .ne 2 .mk .na \fB\fBTD_OK\fR\fR .ad .RS 12n .rt The call completed successfully. .RE .sp .ne 2 .mk .na \fB\fBTD_BADTH\fR\fR .ad .RS 12n .rt An invalid thread handle was passed in. .RE .sp .ne 2 .mk .na \fB\fBTD_DBERR\fR\fR .ad .RS 12n .rt A call to one of the imported interface routines failed. .RE .sp .ne 2 .mk .na \fB\fBTD_ERR\fR\fR .ad .RS 12n .rt A \fBlibc_db\fR internal error occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for description of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ MT-LevelSafe .TE .SH SEE ALSO .sp .LP \fBlibc_db\fR(3LIB), \fBtd_ta_tsd_iter\fR(3C_DB), \fBthr_getspecific\fR(3C), \fBattributes\fR(5)