From ec8290acdaea21b16d98f1ef5d4ae8a28ab2109a Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 3 Nov 2004 01:08:41 +0000 Subject: Mutex, semaphore, thread ID, test suite changes - see ChangeLogs --- signal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'signal.c') 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; } } -- cgit v1.2.3