]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/sigprocmask.c
Update.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sigprocmask.c
index 63889a61dd61077386078fbca96c1a7cc91a162b..476f46a8e63dd1f5c5fb58395ef6b91fbe341d36 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,8 +25,8 @@ extern int __syscall_rt_sigprocmask (int, const sigset_t *, sigset_t *,
                                     size_t);
 
 /* The variable is shared between all wrappers around signal handling
-   functions which have RT equivalents.  It is defined in sigaction.c.  */
-extern int __libc_have_rt_sigs;
+   functions which have RT equivalents.  */
+int __libc_missing_rt_sigs;
 
 
 /* Get and/or change the set of blocked signals.  */
@@ -37,7 +37,7 @@ __sigprocmask (how, set, oset)
      sigset_t *oset;
 {
   /* First try the RT signals.  */
-  if (__libc_have_rt_sigs)
+  if (!__libc_missing_rt_sigs)
     {
       /* XXX The size argument hopefully will have to be changed to the
         real size of the user-level sigset_t.  */
@@ -46,7 +46,7 @@ __sigprocmask (how, set, oset)
       if (result >= 0 || errno != ENOSYS)
        return result;
 
-      __libc_have_rt_sigs = 0;
+      __libc_missing_rt_sigs = 1;
     }
 
   return __syscall_sigprocmask (how, set, oset);