s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t

2009-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>

	* s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
	* s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.

From-SVN: r152900
This commit is contained in:
Joel Sherrill 2009-10-16 13:33:53 +00:00 committed by Joel Sherrill
parent f798226d9d
commit ac2b9bbbd5
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
* s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* env.c [__alpha__ && __osf__] (AES_SOURCE): Define.

View File

@ -625,6 +625,7 @@ private
process_shared : int;
prio_ceiling : int;
protocol : int;
mutex_type : int;
recursive : int;
end record;
pragma Convention (C, pthread_mutexattr_t);

View File

@ -80,8 +80,9 @@ package body System.Stack_Checking.Operations is
is
pragma Unreferenced (Stack_Address);
-- RTEMS has a routine to check this. So use it.
function rtems_stack_checker_is_blown return Interfaces.C.int;
-- RTEMS has a routine to check if the stack is blown.
-- It returns a C99 bool.
function rtems_stack_checker_is_blown return Interfaces.C.unsigned_char;
pragma Import (C,
rtems_stack_checker_is_blown, "rtems_stack_checker_is_blown");