about summary refs log tree commit diff
path: root/linuxthreads/signals.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-29 18:41:02 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-29 18:41:02 +0000
commitddbf7fef451eeb417ea28ca114f8f12c58dd5ca8 (patch)
tree4dbe0d974d84993dd580f97744121ae965ca4e2e /linuxthreads/signals.c
parentef5742267ce858e059ee27033014c24f009bb326 (diff)
downloadglibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.gz
glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.xz
glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.zip
Update.
1998-07-29  Mark Kettenis  <kettenis@phys.uva.nl>

	* sysdeps/mach/hurd/dl-sysdep.c (__lseek): New function.
	(__getpid): New function.
	(abort): New function.

	* nis/nis_cache2_xdr.c: Removed.
Diffstat (limited to 'linuxthreads/signals.c')
-rw-r--r--linuxthreads/signals.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c
index 4a83b14d83..ac752d145a 100644
--- a/linuxthreads/signals.c
+++ b/linuxthreads/signals.c
@@ -26,18 +26,18 @@ int pthread_sigmask(int how, const sigset_t * newmask, sigset_t * oldmask)
 
   if (newmask != NULL) {
     mask = *newmask;
-    /* Don't allow PTHREAD_SIG_RESTART to be unmasked.
-       Don't allow PTHREAD_SIG_CANCEL to be masked. */
+    /* Don't allow __pthread_sig_restart to be unmasked.
+       Don't allow __pthread_sig_cancel to be masked. */
     switch(how) {
     case SIG_SETMASK:
-      sigaddset(&mask, PTHREAD_SIG_RESTART);
-      sigdelset(&mask, PTHREAD_SIG_CANCEL);
+      sigaddset(&mask, __pthread_sig_restart);
+      sigdelset(&mask, __pthread_sig_cancel);
       break;
     case SIG_BLOCK:
-      sigdelset(&mask, PTHREAD_SIG_CANCEL);
+      sigdelset(&mask, __pthread_sig_cancel);
       break;
     case SIG_UNBLOCK:
-      sigdelset(&mask, PTHREAD_SIG_RESTART);
+      sigdelset(&mask, __pthread_sig_restart);
       break;
     }
     newmask = &mask;
@@ -94,7 +94,7 @@ int sigaction(int sig, const struct sigaction * act,
 {
   struct sigaction newact;
 
-  if (sig == PTHREAD_SIG_RESTART || sig == PTHREAD_SIG_CANCEL)
+  if (sig == __pthread_sig_restart || sig == __pthread_sig_cancel)
     return EINVAL;
   newact = *act;
   if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL)
@@ -116,9 +116,9 @@ int sigwait(const sigset_t * set, int * sig)
   /* Get ready to block all signals except those in set
      and the cancellation signal */
   sigfillset(&mask);
-  sigdelset(&mask, PTHREAD_SIG_CANCEL);
+  sigdelset(&mask, __pthread_sig_cancel);
   for (s = 1; s <= NSIG; s++) {
-    if (sigismember(set, s) && s != PTHREAD_SIG_CANCEL)
+    if (sigismember(set, s) && s != __pthread_sig_cancel)
       sigdelset(&mask, s);
   }
   /* Test for cancellation */