'\" te .\" Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved .TH td_ta_map_addr2sync 3C_DB "20 Oct 1998" "SunOS 5.11" "Threads Debugging Library Functions" .SH NAME td_ta_map_addr2sync \- get a synchronization object handle from a synchronization object's address .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... -lc_db [ \fIlibrary\fR... ] #include #include \fB\fR\fBtd_ta_map_addr2sync\fR(\fBconst td_thragent_t *\fR\fIta_p\fR, \fBpsaddr_t\fR \fIaddr\fR, \fBtd_synchandle_t *\fR\fIsh_p\fR); .fi .SH DESCRIPTION .sp .LP The \fBtd_ta_map_addr2sync()\fR function produces the synchronization object handle of type \fBtd_synchandle_t\fR that corresponds to the address of the synchronization object (mutex, semaphore, condition variable, or reader/writer lock). Some effort is made to validate \fIaddr\fR and verify that it does indeed point at a synchronization object. The handle is returned in *\fIsh_p\fR. .SH RETURN VALUES .sp .ne 2 .mk .na \fB\fBTD_OK\fR\fR .ad .RS 13n .rt The call completed successfully. .RE .sp .ne 2 .mk .na \fB\fBTD_BADTA\fR\fR .ad .RS 13n .rt An invalid internal process handle was passed. .RE .sp .ne 2 .mk .na \fB\fBTD_BADPH\fR\fR .ad .RS 13n .rt There is a \fINULL\fR external process handle associated with this internal process handle. .RE .sp .ne 2 .mk .na \fB\fBTD_BADSH\fR\fR .ad .RS 13n .rt The \fIsh_p\fR argument is \fINULL\fR or \fIaddr\fR does not appear to point to a valid synchronization object. .RE .sp .ne 2 .mk .na \fB\fBTD_DBERR\fR \fR .ad .RS 13n .rt A call to one of the imported interface routines failed. .RE .sp .ne 2 .mk .na \fB\fBTD_ERR\fR \fR .ad .RS 13n .rt \fBaddr\fR is \fINULL,\fR or 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), \fBattributes\fR(5)