瀏覽代碼

* new constants for si_code field for FPU signals (required by commit 1710)

git-svn-id: trunk@1712 -
tom_at_work 19 年之前
父節點
當前提交
d54dbdf9b6
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      rtl/linux/signal.inc

+ 10 - 1
rtl/linux/signal.inc

@@ -118,11 +118,20 @@ Const
   SIGUNUSED  = 31;
   SIGUNUSED  = 31;
 {$endif cpusparc}
 {$endif cpusparc}
 
 
+{ si_code field values for tsiginfo.si_code when si_signo = SIGFPE }
+const
+  FPE_INTDIV = 1; { integer divide by zero }
+  FPE_INTOVF = 2; { integer overflow }
+  FPE_FLTDIV = 3; { floating point divide by zero }
+  FPE_FLTOVF = 4; { floating point overflow }
+  FPE_FLTUND = 5; { floating point underflow }
+  FPE_FLTRES = 6; { floating point inexact result }
+  FPE_FLTINV = 7; { floating point invalid operation }
+  FPE_FLTSUB = 8; { floating point subscript out of range }
 
 
 const
 const
   SI_PAD_SIZE   = ((128 div sizeof(longint)) - 3);
   SI_PAD_SIZE   = ((128 div sizeof(longint)) - 3);
 
 
-
 type
 type
   SigSet  =  array[0..wordsinsigset-1] of cuLong;
   SigSet  =  array[0..wordsinsigset-1] of cuLong;
   sigset_t= SigSet;
   sigset_t= SigSet;