Browse Source

setjmp.h: move __sigjmp_save prototype for consistency

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 years ago
parent
commit
b496187a72
3 changed files with 1 additions and 3 deletions
  1. 1 0
      include/setjmp.h
  2. 0 1
      libc/signal/sigjmp.c
  3. 0 2
      libc/sysdeps/linux/mips/setjmp_aux.c

+ 1 - 0
include/setjmp.h

@@ -119,6 +119,7 @@ libc_hidden_proto(__longjmp)
 extern __typeof(longjmp) __libc_longjmp attribute_noreturn;
 extern __typeof(siglongjmp) __libc_siglongjmp attribute_noreturn;
 extern void _longjmp_unwind(jmp_buf __env, int __val);
+extern int __sigjmp_save(sigjmp_buf __env, int __savemask) attribute_hidden;
 /* We use the normal longjmp for unwinding */
 # define __libc_unwind_longjmp(buf, val) __libc_longjmp(buf, val)
 #endif

+ 0 - 1
libc/signal/sigjmp.c

@@ -25,7 +25,6 @@
    before doing a `__setjmp' on ENV[0].__jmpbuf.
    Always return zero.  */
 
-int __sigjmp_save (sigjmp_buf env, int savemask) attribute_hidden;
 int __sigjmp_save (sigjmp_buf env, int savemask)
 {
     env[0].__mask_was_saved = (savemask &&

+ 0 - 2
libc/sysdeps/linux/mips/setjmp_aux.c

@@ -27,8 +27,6 @@
    pointer.  We do things this way because it's difficult to reliably
    access them in C.  */
 
-extern int __sigjmp_save (sigjmp_buf, int);
-
 int
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 __sigsetjmp_aux (jmp_buf env, int savemask, long sp, long fp)