|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Basic Library Functions Oracle Solaris 11.1 Information Library|
- get the base address of a thread's local storage (TLS) block
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));
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 call completed successfully.
The base argument was NULL, or a libc_db internal error occurred.
An invalid internal process handle was passed in.
There is a null external process handle associated with this internal process handle.
A call to one of the imported interface routines failed.
There is no TLS in this module or moduleid is invalid.
The module's TLS has not yet been allocated by the thread.
See attributes(5) for descriptions of the following attributes: