Browse Source

--- Merging r20449 into '.':
U rtl/haiku/signal.inc
--- Merging r20452 into '.':
G rtl/haiku/signal.inc

# revisions: 20449,20452
------------------------------------------------------------------------
r20449 | pierre | 2012-02-29 17:50:53 +0100 (Wed, 29 Feb 2012) | 1 line
Changed paths:
M /trunk/rtl/haiku/signal.inc

Add PSigInf oand PSigContext type aliases
------------------------------------------------------------------------
------------------------------------------------------------------------
r20452 | marco | 2012-03-01 11:28:40 +0100 (Thu, 01 Mar 2012) | 2 lines
Changed paths:
M /trunk/rtl/haiku/signal.inc

* Minor spelling corrections in comments, patch by Graeme, Mantis #21397

------------------------------------------------------------------------

git-svn-id: branches/fixes_2_6@20593 -

marco 13 years ago
parent
commit
3ee8b4fc9e
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;
   PSignalRestorer = ^SignalRestorer;
   {$WARNING TODO : check with signal.h}
+  { Note: As of R1alpha3, sa_handler still was of SignalHandler type, with 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;
 
+  { Add those type definition to obtain same declaration as for other unix targets 
+    but do not forget the PSigInfo field is currently nil for Haiku as of R1alpha3. }
+  PSigInfo = PSigContextRec;
+  PSigContext = Pvregs;
+
   Sigset=sigset_t;
   TSigset=sigset_t;
   PSigSet = ^SigSet;