Browse Source

Add PSigInf oand PSigContext type aliases

git-svn-id: trunk@20449 -
pierre 13 years ago
parent
commit
e9b0f2d14c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      rtl/haiku/signal.inc

+ 8 - 0
rtl/haiku/signal.inc

@@ -283,8 +283,16 @@ type
   SignalRestorer  = Procedure;cdecl;
   SignalRestorer  = Procedure;cdecl;
   PSignalRestorer = ^SignalRestorer;
   PSignalRestorer = ^SignalRestorer;
   {$WARNING TODO : check with signal.h}
   {$WARNING TODO : check with signal.h}
+  { Note: As of R1alpha3, sa_handler still was of SignalHandler type, with one one parameter,
+    but the Signal stack has a second parameter that is set to zero
+    and a third that is of type pvregs }
   sigActionHandler = procedure(Sig: Longint; SigContext: PSigContextRec; uContext : Pvregs);cdecl;
   sigActionHandler = procedure(Sig: Longint; SigContext: PSigContextRec; uContext : Pvregs);cdecl;
 
 
+  { Add those type definition to obtain same declaration as for other unix targets 
+    but do not forget the PSigInfo filed is currently nil for Haiku as of  R1alpha3 }
+  PSigInfo = PSigContextRec;
+  PSigContext = Pvregs;
+
   Sigset=sigset_t;
   Sigset=sigset_t;
   TSigset=sigset_t;
   TSigset=sigset_t;
   PSigSet = ^SigSet;
   PSigSet = ^SigSet;