s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
* s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant. (stack_t): New record type. (sigaltstack): New imported function. (Alternate_Stack): New imported variable. (Alternate_Stack_Size): New constant. From-SVN: r150840
This commit is contained in:
parent
22521c89b6
commit
dee285096f
2 changed files with 27 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
|
||||
|
||||
* s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
|
||||
(stack_t): New record type.
|
||||
(sigaltstack): New imported function.
|
||||
(Alternate_Stack): New imported variable.
|
||||
(Alternate_Stack_Size): New constant.
|
||||
|
||||
2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
|
||||
|
||||
* a-calend-vms.adb: Fix typo.
|
||||
|
|
|
@ -188,6 +188,7 @@ package System.OS_Interface is
|
|||
SIG_IGN : constant := 1;
|
||||
|
||||
SA_SIGINFO : constant := 16#0040#;
|
||||
SA_ONSTACK : constant := 16#0001#;
|
||||
|
||||
function sigaction
|
||||
(sig : Signal;
|
||||
|
@ -280,6 +281,24 @@ package System.OS_Interface is
|
|||
-- Stack --
|
||||
-----------
|
||||
|
||||
type stack_t is record
|
||||
ss_sp : System.Address;
|
||||
ss_size : size_t;
|
||||
ss_flags : int;
|
||||
end record;
|
||||
pragma Convention (C, stack_t);
|
||||
|
||||
function sigaltstack
|
||||
(ss : not null access stack_t;
|
||||
oss : access stack_t) return int;
|
||||
pragma Import (C, sigaltstack, "sigaltstack");
|
||||
|
||||
Alternate_Stack : aliased System.Address;
|
||||
-- This is a dummy definition, never used (Alternate_Stack_Size is null)
|
||||
|
||||
Alternate_Stack_Size : constant := 0;
|
||||
-- No alternate signal stack is used on this platform
|
||||
|
||||
function Get_Stack_Base (thread : pthread_t) return Address;
|
||||
pragma Inline (Get_Stack_Base);
|
||||
-- This is a dummy procedure to share some GNULLI files
|
||||
|
|
Loading…
Add table
Reference in a new issue