if (ps_pglobal_lookup (ta->ph, "libpthread.so.0", "__pthread_handles_num",
if (ps_pglobal_lookup (ta->ph, LIBPTHREAD_SO, "__pthread_handles_num",
td_ta_get_nthreads (const td_thragent_t *ta, int *np){  psaddr_t addr;  LOG (__FUNCTION__);  /* Access the variable `__pthread_handles_num'.  */  if (ps_pglobal_lookup (ta->ph, "libpthread.so.0", "__pthread_handles_num",		         &addr) != PS_OK)     return TD_ERR;	/* XXX Other error value?  */  if (ps_pdread (ta->ph, addr, np, sizeof (int)) != PS_OK)     return TD_ERR;	/* XXX Other error value?  */  return TD_OK;}