+2009-06-19 Ed Falis <falis@adacore.com>
+
+ * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
+ s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
+
2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
* einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
-- --
-- S p e c --
-- --
--- Copyright (C) 2000-2009 Free Software Foundation, Inc. --
+-- Copyright (C) 2000-2009, Free Software Foundation, Inc. --
-- --
-- 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- --
function Ada.Exceptions.Is_Null_Occurrence
(X : Exception_Occurrence)
- return Boolean;
+ return Boolean;
+pragma Preelaborate (Ada.Exceptions.Is_Null_Occurrence);
-- This function yields True if X is Null_Occurrence, and False otherwise
-- S p e c --
-- --
-- Copyright (C) 1991-1994, Florida State University --
--- Copyright (C) 1995-2008, Free Software Foundation, Inc. --
+-- Copyright (C) 1995-2009, Free Software Foundation, Inc. --
-- --
-- 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- --
-- semTake() timeout with ticks > NO_WAIT
S_objLib_OBJ_TIMEOUT : constant := M_objLib + 4;
- type SEM_ID is new System.Address;
+ subtype SEM_ID is System.VxWorks.Ext.SEM_ID;
-- typedef struct semaphore *SEM_ID;
-- We use two different kinds of VxWorks semaphores: mutex and binary
function semMCreate (options : int) return SEM_ID;
pragma Import (C, semMCreate, "semMCreate");
- function semDelete (Sem : SEM_ID) return int;
- pragma Import (C, semDelete, "semDelete");
+ function semDelete (Sem : SEM_ID) return int
+ renames System.VxWorks.Ext.semDelete;
-- Delete a semaphore
function semGive (Sem : SEM_ID) return int;
function Int_Unlock return int renames intUnlock;
+ ---------------
+ -- semDelete --
+ ---------------
+
+ function semDelete (Sem : SEM_ID) return int;
+ pragma Import (C, semDelete, "semDelete");
+
end System.VxWorks.Ext;
-- --
-- S p e c --
-- --
--- Copyright (C) 2009, Free Software Foundation, Inc. --
+-- Copyright (C) 2008-2009, Free Software Foundation, Inc. --
-- --
-- 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- --
package System.VxWorks.Ext is
pragma Preelaborate;
+ subtype SEM_ID is Long_Integer;
+ -- typedef struct semaphore *SEM_ID;
+
type t_id is new Long_Integer;
subtype int is Interfaces.C.int;
(intNum : int) return Interrupt_Vector;
pragma Import (C, Interrupt_Number_To_Vector, "__gnat_inum_to_ivec");
+ function semDelete (Sem : SEM_ID) return int;
+ pragma Convention (C, semDelete);
+
function Task_Cont (tid : t_id) return int;
pragma Import (C, Task_Cont, "taskCont");
-- --
-- S p e c --
-- --
--- Copyright (C) 2009, Free Software Foundation, Inc. --
+-- Copyright (C) 2008-2009, Free Software Foundation, Inc. --
-- --
-- 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- --
package System.VxWorks.Ext is
pragma Preelaborate;
+ subtype SEM_ID is Long_Integer;
+ -- typedef struct semaphore *SEM_ID;
+
type t_id is new Long_Integer;
subtype int is Interfaces.C.int;
(intNum : int) return Interrupt_Vector;
pragma Convention (C, Interrupt_Number_To_Vector);
+ function semDelete (Sem : SEM_ID) return int;
+ pragma Import (C, semDelete, "semDelete");
+
function Task_Cont (tid : t_id) return int;
pragma Import (C, Task_Cont, "taskResume");
-- --
-- S p e c --
-- --
--- Copyright (C) 2009, Free Software Foundation, Inc. --
+-- Copyright (C) 2008-2009, Free Software Foundation, Inc. --
-- --
-- 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- --
package System.VxWorks.Ext is
pragma Preelaborate;
+ type SEM_ID is new Long_Integer;
+ -- typedef struct semaphore *SEM_ID;
+
type t_id is new Long_Integer;
subtype int is Interfaces.C.int;
(intNum : int) return Interrupt_Vector;
pragma Import (C, Interrupt_Number_To_Vector, "__gnat_inum_to_ivec");
+ function semDelete (Sem : SEM_ID) return int;
+ pragma Import (C, semDelete, "semDelete");
+
function Task_Cont (tid : t_id) return int;
pragma Import (C, Task_Cont, "taskResume");