1td_ta_map_addr2sync(3C_TDhBr)eads Debugging Library Functtido_ntsa_map_addr2sync(3C_DB)
2
3
4
6 td_ta_map_addr2sync - get a synchronization object handle from a syn‐
7 chronization object's address
8
10 cc [ flag... ] file... -lc_db [ library... ]
11 #include <proc_service.h>
12 #include <thread_db.h>
13
14 td_ta_map_addr2sync(const td_thragent_t *ta_p, psaddr_t addr, td_synchandle_t *sh_p);
15
16
18 The td_ta_map_addr2sync() function produces the synchronization object
19 handle of type td_synchandle_t that corresponds to the address of the
20 synchronization object (mutex, semaphore, condition variable, or
21 reader/writer lock). Some effort is made to validate addr and verify
22 that it does indeed point at a synchronization object. The handle is
23 returned in *sh_p.
24
26 TD_OK The call completed successfully.
27
28
29 TD_BADTA An invalid internal process handle was passed.
30
31
32 TD_BADPH There is a NULL external process handle associated with
33 this internal process handle.
34
35
36 TD_BADSH The sh_p argument is NULL or addr does not appear to
37 point to a valid synchronization object.
38
39
40 TD_DBERR A call to one of the imported interface routines failed.
41
42
43 TD_ERR addr is NULL, or a libc_db internal error occurred.
44
45
47 See attributes(5) for description of the following attributes:
48
49
50
51
52 ┌─────────────────────────────┬─────────────────────────────┐
53 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │Safe │
56 └─────────────────────────────┴─────────────────────────────┘
57
59 libc_db(3LIB), attributes(5)
60
61
62
63SunOS 5.11 20 Oct 1998 td_ta_map_addr2sync(3C_DB)