diff options
Diffstat (limited to 'libc/sysdeps/linux/m68k/bits/setjmp.h')
-rw-r--r-- | libc/sysdeps/linux/m68k/bits/setjmp.h | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/libc/sysdeps/linux/m68k/bits/setjmp.h b/libc/sysdeps/linux/m68k/bits/setjmp.h index 08b2d2500..2c2b3ee15 100644 --- a/libc/sysdeps/linux/m68k/bits/setjmp.h +++ b/libc/sysdeps/linux/m68k/bits/setjmp.h @@ -2,19 +2,19 @@ This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. + Lesser General Public License for more details. - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ /* Define the machine-dependent type `jmp_buf'. m68k version. */ @@ -22,8 +22,6 @@ # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead." #endif -#include <signal.h> - typedef struct { /* There are eight 4-byte data registers, but D0 is not saved. */ @@ -46,21 +44,3 @@ typedef struct containing a local variable at ADDRESS. */ #define _JMPBUF_UNWINDS(jmpbuf, address) \ ((void *) (address) < (void *) (jmpbuf)->__sp) - -/* Simple version of sigsetjmp and siglongjmp */ - -__BEGIN_DECLS -extern int __setjmp(__jmp_buf __buf); -extern int __longjmp(__jmp_buf __buf, int __val); -__END_DECLS - -#define longjmp(buf, val) __longjmp(buf, val) - -#define __sigsetjmp(env, savesigs) ((env)->__mask_was_saved = (savesigs), \ - sigprocmask(SIG_SETMASK, 0, &(env)->__saved_mask), \ - __setjmp((env)->__jmpbuf)) - -#define siglongjmp(env, val) (((env)->__mask_was_saved ? \ - sigprocmask(SIG_SETMASK, &(env)->__saved_mask, 0) : 0), \ - __longjmp((env)->__jmpbuf, val)) - |