/* Iterate over a process's threads.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
break;
}
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
/* Yep, it matches. Call the callback function. */
td_thrhandle_t th;
/* Get thread information.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
? 0 : pds.schedparam.sched_priority);
infop->ti_type = TD_THR_USER;
- if ((pds.cancelhandling & EXITING_BIT) == 0)
+ if ((pds.cancelhandling & EXITING_BITMASK) == 0)
/* XXX For now there is no way to get more information. */
infop->ti_state = TD_THR_ACTIVE;
- else if ((pds.cancelhandling & TERMINATED_BIT) == 0)
+ else if ((pds.cancelhandling & TERMINATED_BITMASK) == 0)
infop->ti_state = TD_THR_ZOMBIE;
else
infop->ti_state = TD_THR_UNKNOWN;
/* Get a thread's floating-point register set.
- 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;
/* If the thread already terminated we return all zeroes. */
- if (cancelhandling & TERMINATED_BIT)
+ if (cancelhandling & TERMINATED_BITMASK)
memset (regset, '\0', sizeof (*regset));
/* Otherwise get the register content through the callback. */
else
/* Get a thread's general register set.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 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;
/* If the thread already terminated we return all zeroes. */
- if (cancelhandling & TERMINATED_BIT)
+ if (cancelhandling & TERMINATED_BITMASK)
memset (gregs, '\0', sizeof (prgregset_t));
/* Otherwise get the register content through the callback. */
else
/* Set a thread's floating-point register set.
- 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;
/* Only set the registers if the thread hasn't yet terminated. */
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
pid_t tid;
/* Set a thread's general register set.
- 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;
/* Only set the registers if the thread hasn't yet terminated. */
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
pid_t tid;