Add PSigInf oand PSigContext type aliases

git-svn-id: trunk@20449 -
This commit is contained in:
pierre 2012-02-29 16:50:53 +00:00
parent e6cf348904
commit e9b0f2d14c

View File

@ -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 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 filed is currently nil for Haiku as of R1alpha3 }
PSigInfo = PSigContextRec;
PSigContext = Pvregs;
Sigset=sigset_t;
TSigset=sigset_t;
PSigSet = ^SigSet;