2 .\" Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH TD_TA_GET_NTHREADS 3C_DB "Oct 20, 1998"
8 td_ta_get_nthreads \- gets the total number of threads in a process for libc_db
12 cc [ \fIflag\fR... ] \fIfile\fR... -lc_db [ \fIlibrary\fR... ]
13 #include <proc_service.h>
14 #include <thread_db.h>
16 \fBtd_err_e\fR \fBtd_ta_get_nthreads\fR(\fBconst td_thragent_t *\fR\fIta_p\fR, \fBint *\fR\fInthread_p\fR);
22 The \fBtd_ta_get_nthreads()\fR function returns the total number of threads in
23 process \fIta_p\fR, including any system threads. System threads are those
24 created by \fBlibc\fR or \fBlibc_db\fR on its own behalf. The number of threads
25 is written into *\fInthread_p\fR.
33 The call completed successfully.
42 An invalid internal process handle was passed in.
51 There is a \fINULL\fR external process handle associated with this internal
61 A call to one of the imported interface routines failed.
70 The \fInthread_p\fR argument was \fINULL,\fR or a \fBlibc_db\fR internal error
77 See \fBattributes\fR(5) for description of the following attributes:
85 ATTRIBUTE TYPE ATTRIBUTE VALUE
93 \fBlibc_db\fR(3LIB), \fBattributes\fR(5), \fBthreads\fR(5)