Commit 3dc553dd by Eric Botcazou

re PR ada/71317 (Compiling gnat for rtems fails at s-taprop.adb)

	* s-osinte-kfreebsd-gnu.ads (clock_getres): Define.
	(Get_Page_Size): Remove duplicate and return int.

	PR ada/71317
	* s-osinte-rtems.ads (clock_getres): Define.
	(Get_Page_Size): Remove duplicate and return int.

From-SVN: r236938
parent c642d919
2016-05-31 Eric Botcazou <ebotcazou@adacore.com>
* s-osinte-kfreebsd-gnu.ads (clock_getres): Define.
(Get_Page_Size): Remove duplicate and return int.
2016-05-31 Jan Sommer <soja-lists@aries.uberspace.de>
PR ada/71317
* s-osinte-rtems.ads (clock_getres): Define.
(Get_Page_Size): Remove duplicate and return int.
2016-05-20 Eric Botcazou <ebotcazou@adacore.com> 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1991-1994, Florida State University -- -- Copyright (C) 1991-1994, Florida State University --
-- Copyright (C) 1995-2015, Free Software Foundation, Inc. -- -- Copyright (C) 1995-2016, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -216,6 +216,11 @@ package System.OS_Interface is ...@@ -216,6 +216,11 @@ package System.OS_Interface is
return int; return int;
pragma Import (C, clock_gettime, "clock_gettime"); pragma Import (C, clock_gettime, "clock_gettime");
function clock_getres
(clock_id : clockid_t;
res : access timespec) return int;
pragma Import (C, clock_getres, "clock_getres");
function To_Duration (TS : timespec) return Duration; function To_Duration (TS : timespec) return Duration;
pragma Inline (To_Duration); pragma Inline (To_Duration);
...@@ -330,8 +335,7 @@ package System.OS_Interface is ...@@ -330,8 +335,7 @@ package System.OS_Interface is
-- returns the stack base of the specified thread. Only call this function -- returns the stack base of the specified thread. Only call this function
-- when Stack_Base_Available is True. -- when Stack_Base_Available is True.
function Get_Page_Size return size_t; function Get_Page_Size return int;
function Get_Page_Size return Address;
pragma Import (C, Get_Page_Size, "getpagesize"); pragma Import (C, Get_Page_Size, "getpagesize");
-- Returns the size of a page -- Returns the size of a page
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1997-2011 Free Software Foundation, Inc. -- -- Copyright (C) 1997-2016 Free Software Foundation, Inc. --
-- -- -- --
-- GNARL is free software; you can redistribute it and/or modify it under -- -- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -188,6 +188,11 @@ package System.OS_Interface is ...@@ -188,6 +188,11 @@ package System.OS_Interface is
tp : access timespec) return int; tp : access timespec) return int;
pragma Import (C, clock_gettime, "clock_gettime"); pragma Import (C, clock_gettime, "clock_gettime");
function clock_getres
(clock_id : clockid_t;
res : access timespec) return int;
pragma Import (C, clock_getres, "clock_getres");
function To_Duration (TS : timespec) return Duration; function To_Duration (TS : timespec) return Duration;
pragma Inline (To_Duration); pragma Inline (To_Duration);
...@@ -291,8 +296,7 @@ package System.OS_Interface is ...@@ -291,8 +296,7 @@ package System.OS_Interface is
-- These two functions are only needed to share s-taprop.adb with -- These two functions are only needed to share s-taprop.adb with
-- FSU threads. -- FSU threads.
function Get_Page_Size return size_t; function Get_Page_Size return int;
function Get_Page_Size return Address;
pragma Import (C, Get_Page_Size, "getpagesize"); pragma Import (C, Get_Page_Size, "getpagesize");
-- Returns the size of a page -- Returns the size of a page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment