td_thr_tlsbase(3C_DB) Threads Debugging Library Functionstd_thr_tlsbase(3C_DB)NAMEtd_thr_tlsbase - get the base address of a thread's local storage (TLS)
block
SYNOPSIS
cc [ flag... ] file... -lc_db [ library... ]
#include <proc_service.h>
#include <thread_db.h>
td_err_e td_thr_tlsbase(const td_thrhandle_t *th_p,ulong_t moduleid,
void psaddr_t *base));
DESCRIPTION
The td_thr_tlsbase() function returns the base address of a threads
local storage block for the object specified by moduleid for the
thread identified by th_p. The base address is written into *base.
The moduleid is typically obtained by the rd_loadobj_iter() function
found in the librtld_db(3LIB) library. See "Scanning Loadable Objects"
in the Linker and Libraries Guide.
RETURN VALUES
TD_OK The call completed successfully.
TD_ERR The base argument was NULL, or a libc_db internal error
occurred.
TD_BADTA An invalid internal process handle was passed in.
TD_BADPH There is a null external process handle associated with
this internal process handle.
TD_DBERR A call to one of the imported interface routines failed.
TD_NOTLS There is no TLS in this module or moduleid is invalid.
TD_TLSDEFER The module's TLS has not yet been allocated by the
thread.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOlibc_db(3LIB), rd_loadobj_iter(3EXT), rtld_db(3EXT), attributes(5)
Linker and Libraries Guide
SunOS 5.10 9 Feb 2012 td_thr_tlsbase(3C_DB)