Current File : //usr/share/man/man3c_db/td_init.3c_db
'\" te
.\"  Copyright (c) 1998 Sun Microsystems, Inc.  All Rights Reserved
.TH td_init 3C_DB "19 Oct 1998" "SunOS 5.11" "Threads Debugging Library Functions"
.SH NAME
td_init \- performs initialization for libc_db library of interfaces
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR...  -lc_db [ \fIlibrary\fR... ]
#include <proc_service.h>
#include <thread_db.h>

\fBtd_err_e\fR \fBtd_init\fR();
.fi

.SH DESCRIPTION
.sp
.LP
The \fBtd_init()\fR function is the global initialization function for the \fBlibc_db()\fR library of interfaces. It must be called exactly once by any process using the \fBlibc_db()\fR library before any other \fBlibc_db()\fR function can be called.
.SH RETURN VALUES
.sp
.ne 2
.mk
.na
\fB\fBTD_OK\fR \fR
.ad
.RS 11n
.rt  
The  \fBlibc_db()\fR library of interfaces successfully initialized.
.RE

.sp
.ne 2
.mk
.na
\fB\fBTD_ERR\fR \fR
.ad
.RS 11n
.rt  
Initialization failed.
.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)