mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 03:19:29 +02:00
Add PSigInf oand PSigContext type aliases
git-svn-id: trunk@20449 -
This commit is contained in:
parent
e6cf348904
commit
e9b0f2d14c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user