Changeset 4c1fc0 in git for Singular/cntrlc.cc
- Timestamp:
- Jun 19, 2020, 10:55:59 AM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 3d6980be663538ed4efeec213d1769a026246946
- Parents:
- a02e2d11b6842e0841b4b9ee0908d69811cb330abd4cb060451e0b667bf3d6fd96cd6bfeff53ce4d
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-06-19 10:55:59+02:00
- git-committer:
- GitHub <noreply@github.com>2020-06-19 10:55:59+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
ra02e2d r4c1fc0 5 5 * ABSTRACT - interupt handling 6 6 */ 7 8 #ifndef _GNU_SOURCE 9 #define _GNU_SOURCE 10 #endif 11 7 12 #include "kernel/mod2.h" 8 13 … … 155 160 156 161 /*---------------------------------------------------------------------*/ 157 #if defined(__linux__) && defined(__i386) 158 #if !defined(HAVE_SIGCONTEXT) && !defined(HAVE_ASM_SIGCONTEXT_H) 159 // we need the following structure sigcontext_struct. 160 // if configure finds asm/singcontext.h we assume 161 // that this file contains the structure and is included 162 // via signal.h 163 struct sigcontext_struct { 164 unsigned short gs, __gsh; 165 unsigned short fs, __fsh; 166 unsigned short es, __esh; 167 unsigned short ds, __dsh; 168 unsigned long edi; 169 unsigned long esi; 170 unsigned long ebp; 171 unsigned long esp; 172 unsigned long ebx; 173 unsigned long edx; 174 unsigned long ecx; 175 unsigned long eax; 176 unsigned long trapno; 177 unsigned long err; 178 unsigned long eip; 179 unsigned short cs, __csh; 180 unsigned long eflags; 181 unsigned long esp_at_signal; 182 unsigned short ss, __ssh; 183 unsigned long i387; 184 unsigned long oldmask; 185 unsigned long cr2; 186 }; 187 #endif 188 #define HAVE_SIGSTRUCT 189 typedef struct sigcontext_struct sigcontext; 190 #endif 191 192 #if defined(__linux__) && defined(__amd64) 193 #define HAVE_SIGSTRUCT 194 #endif 195 196 197 #if defined(HAVE_SIGSTRUCT) 162 #if defined(__linux__) && (defined(__i386) || defined(__amd64)) 198 163 /*2---------------------------------------------------------------------*/ 199 164 /**
Note: See TracChangeset
for help on using the changeset viewer.