type pthread_condattr_t is limited private;
type pthread_key_t is private;
+ No_Key : constant pthread_key_t;
+
PTHREAD_CREATE_DETACHED : constant := 0;
-----------
type pthread_key_t is new rtems_id;
+ No_Key : constant pthread_key_t := 0;
+
end System.OS_Interface;
-- Initialize --
----------------
- procedure Initialize (Environment_Task : Task_ID) is
+ procedure Initialize (Environment_Task : Task_Id) is
pragma Warnings (Off, Environment_Task);
- Result : Interfaces.C.int;
begin
+ ATCB_Key := No_Key;
RTEMS_Ada_Self := To_Address (Environment_Task);
end Initialize;
-- Set --
---------
- procedure Set (Self_Id : Task_ID) is
- Result : Interfaces.C.int;
+ procedure Set (Self_Id : Task_Id) is
begin
RTEMS_Ada_Self := To_Address (Self_Id);
end Set;
-- hierarchy, much like the existing implicitly created signal-server
-- tasks.
- function Self return Task_ID is
+ function Self return Task_Id is
Result : System.Address;
begin
+2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
+ Laurent GUERBY <laurent@guerby.net>
+
+ PR ada/19488
+ * 5rosinte.ads: Add No_Key constant.
+ * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
+ * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
+
2005-01-26 Laurent GUERBY <laurent@guerby.net>
PR ada/19414
#include "system.h"
#endif
-#if !(defined (VMS) || defined (__MINGW32__))
+#if !(defined (VMS) || defined (__MINGW32__) || defined(__rtems__))
# include <sys/socket.h>
#endif