From a6cf8dc644239941c5f4a90fd5408479efe50617 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 30 Jan 2002 07:11:08 +0000 Subject: Fixup setjmp implementation so it actaully works as expected -Erik --- libc/signal/sigjmp.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'libc/signal') diff --git a/libc/signal/sigjmp.c b/libc/signal/sigjmp.c index ec70e0ec9..59fe6db7a 100644 --- a/libc/signal/sigjmp.c +++ b/libc/signal/sigjmp.c @@ -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. */ #include #include @@ -24,12 +24,10 @@ before doing a `__setjmp' on ENV[0].__jmpbuf. Always return zero. */ -int -__sigjmp_save (sigjmp_buf env, int savemask) +int __sigjmp_save (sigjmp_buf env, int savemask) { - env[0].__mask_was_saved = (savemask && - sigprocmask (SIG_BLOCK, (sigset_t *) NULL, - &env[0].__saved_mask) == 0); + env[0].__mask_was_saved = (savemask && + sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0); - return 0; + return 0; } -- cgit v1.2.3