xref: /titanic_50/usr/src/man/man3c_db/td_init.3c_db (revision ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab)
te
Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
TD_INIT 3C_DB "Oct 19, 1998"
NAME
td_init - performs initialization for libc_db library of interfaces
SYNOPSIS

cc [ flag... ] file... -lc_db [ library... ]
#include <proc_service.h>
#include <thread_db.h>

td_err_e td_init();
DESCRIPTION

The td_init() function is the global initialization function for the libc_db() library of interfaces. It must be called exactly once by any process using the libc_db() library before any other libc_db() function can be called.

RETURN VALUES
TD_OK

The libc_db() library of interfaces successfully initialized.

TD_ERR

Initialization failed.

ATTRIBUTES

See attributes(5) for description of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT Level Safe
SEE ALSO

libc_db(3LIB), attributes(5)