while (list.next != head)
{
psaddr_t addr = ((psaddr_t) list.next
- - offsetof (struct pthread, header.data.list));
+ - offsetof (struct pthread, list));
int schedpolicy;
if (ps_pdread (ta->ph, &((struct pthread *) addr)->schedpolicy,
}
/* Get the pointer to the next element. */
- if (ps_pdread (ta->ph, &((struct pthread *) addr)->header.data.list,
+ if (ps_pdread (ta->ph, &((struct pthread *) addr)->list,
&list, sizeof (list_t)) != PS_OK)
return TD_ERR; /* XXX Other error value? */
}
/* Get address of thread local variable.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
LOG ("td_thr_tls_get_addr");
/* Get the DTV pointer from the thread descriptor. */
- if (ps_pdread (th->th_ta_p->ph,
- &((struct pthread *) th->th_unique)->header.data.dtvp,
+ if (ps_pdread (th->th_ta_p->ph, &((struct pthread *) th->th_unique)->dtv,
&dtvp, sizeof dtvp) != PS_OK)
return TD_ERR; /* XXX Other error value? */
/* Validate a thread handle.
- Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
return TD_ERR; /* XXX Other error value? */
while (list.next != head)
- if ((psaddr_t) list.next - offsetof (struct pthread, header.data.list)
+ if ((psaddr_t) list.next - offsetof (struct pthread, list)
== th->th_unique)
{
result = TD_OK;