Browse Source

Correct sigprocmask undefined for sh and remove the useless __sigprocmask weak

Peter S. Mazinger 19 years ago
parent
commit
364360712c
2 changed files with 3 additions and 6 deletions
  1. 0 5
      libc/sysdeps/linux/sh/__longjmp.S
  2. 3 1
      libc/sysdeps/linux/sh/longjmp.c

+ 0 - 5
libc/sysdeps/linux/sh/__longjmp.S

@@ -63,8 +63,3 @@ __longjmp:
 #endif		
 .size __longjmp,.-__longjmp
 libc_hidden_def(__longjmp)
-
-/* sigprocmask is not defined here, why the weak then ?*/
-/* it should rather be libc_hidden_def(sigprocmask) if needed */
-.weak __sigprocmask
-__sigprocmask = sigprocmask

+ 3 - 1
libc/sysdeps/linux/sh/longjmp.c

@@ -24,6 +24,8 @@
 #include <setjmp.h>
 #include <signal.h>
 
+libc_hidden_proto(sigprocmask)
+
 extern int __longjmp(char *env, int val);
 libc_hidden_proto(__longjmp)
 
@@ -34,7 +36,7 @@ void __libc_siglongjmp (sigjmp_buf env, int val)
 {
   if (env[0].__mask_was_saved)
     /* Restore the saved signal mask.  */
-    (void) __sigprocmask (SIG_SETMASK, &env[0].__saved_mask,
+    (void) sigprocmask (SIG_SETMASK, &env[0].__saved_mask,
 			  (sigset_t *) NULL);
 
   /* Call the machine-dependent function to restore machine state.  */