summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-11-03 01:08:41 +0000
committerrpj <rpj>2004-11-03 01:08:41 +0000
commitec8290acdaea21b16d98f1ef5d4ae8a28ab2109a (patch)
tree0bd3750ec1cc12594b6cfe69473e393da6ec101b /signal.c
parentcccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff)
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/signal.c b/signal.c
index a7c3ef0..21747f6 100644
--- a/signal.c
+++ b/signal.c
@@ -101,7 +101,7 @@ pthread_sigmask (int how, sigset_t const *set, sigset_t * oset)
{
pthread_t thread = pthread_self ();
- if (thread == NULL)
+ if (thread.p == NULL)
{
return ENOENT;
}
@@ -126,7 +126,7 @@ pthread_sigmask (int how, sigset_t const *set, sigset_t * oset)
/* Copy the old mask before modifying it. */
if (oset != NULL)
{
- memcpy (oset, &(thread->sigmask), sizeof (sigset_t));
+ memcpy (oset, &(thread.p->sigmask), sizeof (sigset_t));
}
if (set != NULL)
@@ -137,7 +137,7 @@ pthread_sigmask (int how, sigset_t const *set, sigset_t * oset)
the size of a long integer. */
unsigned long *src = (unsigned long const *) set;
- unsigned long *dest = (unsigned long *) &(thread->sigmask);
+ unsigned long *dest = (unsigned long *) &(thread.p->sigmask);
switch (how)
{
@@ -156,7 +156,7 @@ pthread_sigmask (int how, sigset_t const *set, sigset_t * oset)
}
case SIG_SETMASK:
/* Replace the whole sigmask. */
- memcpy (&(thread->sigmask), set, sizeof (sigset_t));
+ memcpy (&(thread.p->sigmask), set, sizeof (sigset_t));
break;
}
}