(_ISwbit): Protext use of parameter with parentheses.
[glibc.git] / sysdeps / vax / setjmp.c
blob43a80c1887aa522b2de6206144150e26c88f8f2f
1 /* Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Derived from @(#)_setjmp.s 5.7 (Berkeley) 6/27/88,
4 Copyright (c) 1980 Regents of the University of California.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #include <setjmp.h>
24 /* Save the current program position in ENV and return 0. */
25 int
26 __sigsetjmp (jmp_buf env, int savemask)
28 /* Save our caller's FP and PC. */
29 asm ("movl 12(fp), %0" : "=g" (env[0].__jmpbuf[0].__fp));
30 asm ("movl 16(fp), %0" : "=g" (env[0].__jmpbuf[0].__pc));
32 /* Save the signal mask if requested. */
33 return __sigjmp_save (env, savemask);