Back to index

glibc  2.9
setjmp.h
Go to the documentation of this file.
00001 /* Copyright (C) 1997, 1999, 2000, 2003, 2005, 2006
00002    Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef _BITS_SETJMP_H
00021 #define _BITS_SETJMP_H  1
00022 
00023 #if !defined _SETJMP_H && !defined _PTHREAD_H
00024 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
00025 #endif
00026 
00027 #include <bits/wordsize.h>
00028 
00029 #if __WORDSIZE == 64
00030 
00031 #ifndef _ASM
00032 typedef struct __sparc64_jmp_buf
00033   {
00034     struct __sparc64_jmp_buf       *uc_link;
00035     unsigned long           uc_flags;
00036     unsigned long           uc_sigmask;
00037     struct __sparc64_jmp_buf_mcontext
00038       {
00039        unsigned long        mc_gregs[19];
00040        unsigned long        mc_fp;
00041        unsigned long        mc_i7;
00042        struct __sparc64_jmp_buf_fpu
00043          {
00044            union
00045              {
00046               unsigned int  sregs[32];
00047               unsigned long dregs[32];
00048               long double   qregs[16];
00049              }                     mcfpu_fpregs;
00050            unsigned long    mcfpu_fprs;
00051            unsigned long    mcfpu_gsr;
00052            void             *mcfpu_fq;
00053            unsigned char    mcfpu_qcnt;
00054            unsigned char    mcfpu_qentsz;
00055            unsigned char    mcfpu_enab;
00056          }                  mc_fpregs;
00057       }                            uc_mcontext;
00058   } __jmp_buf[1];
00059 #endif
00060 
00061 #else
00062 
00063 #ifndef _ASM
00064 typedef int __jmp_buf[3];
00065 #endif
00066 
00067 #endif
00068 
00069 #endif  /* bits/setjmp.h */