summaryrefslogtreecommitdiff
path: root/linuxthreads_db/td_ta_get_nthreads.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-20 21:05:29 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-20 21:05:29 +0000
commit481b550f585164c7faef0075aa10e34b57959e1e (patch)
tree99a92c9382037502b65acb4e1316be0c441bb03b /linuxthreads_db/td_ta_get_nthreads.c
parentf1e4a4a403f740c153acfc0cd96ecc5aa542e341 (diff)
Update.
* Makefile: Define -D_RPC_THREAD_SAFE_ for cancel.c.
Diffstat (limited to 'linuxthreads_db/td_ta_get_nthreads.c')
-rw-r--r--linuxthreads_db/td_ta_get_nthreads.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/linuxthreads_db/td_ta_get_nthreads.c b/linuxthreads_db/td_ta_get_nthreads.c
index 9396250534..c2c5b10eba 100644
--- a/linuxthreads_db/td_ta_get_nthreads.c
+++ b/linuxthreads_db/td_ta_get_nthreads.c
@@ -1,5 +1,5 @@
/* Get the number of threads in the process.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
@@ -19,7 +19,6 @@
Boston, MA 02111-1307, USA. */
#include "thread_dbP.h"
-#include <gnu/lib-names.h>
td_err_e
td_ta_get_nthreads (const td_thragent_t *ta, int *np)
@@ -33,8 +32,7 @@ td_ta_get_nthreads (const td_thragent_t *ta, int *np)
return TD_BADTA;
/* Access the variable `__pthread_handles_num'. */
- if (ps_pglobal_lookup (ta->ph, LIBPTHREAD_SO, "__pthread_handles_num",
- &addr) != PS_OK)
+ if (td_lookup (ta->ph, PTHREAD_HANDLES_NUM, &addr) != PS_OK)
return TD_ERR; /* XXX Other error value? */
if (ps_pdread (ta->ph, addr, np, sizeof (int)) != PS_OK)