aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-osinte-vxworks.ads
diff options
context:
space:
mode:
authorJose Ruiz <ruiz@adacore.com>2006-10-31 18:47:01 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-10-31 18:47:01 +0100
commitd1fa78e300ffbcc515c6d644d664f8a58c6f23c3 (patch)
tree3336477fa0f5d707b79b80880d884a20d663703f /gcc/ada/s-osinte-vxworks.ads
parent8dbb621ea24e804d0deac2bcef1f0edd9ae874fb (diff)
downloadgcc-d1fa78e300ffbcc515c6d644d664f8a58c6f23c3.zip
gcc-d1fa78e300ffbcc515c6d644d664f8a58c6f23c3.tar.gz
gcc-d1fa78e300ffbcc515c6d644d664f8a58c6f23c3.tar.bz2
s-osinte-vxworks.ads, [...]:
2006-10-31 Jose Ruiz <ruiz@adacore.com> * s-osinte-vxworks.ads, s-osinte-vxworks.adb: (getpid): New body for this function that uses the underlying taskIdSelf function for VxWorks 5 and VxWorks 6 in kernel mode. (unsigned_int): New type, modular to allow logical bit operations. (taskOptionsGet): New imported function. * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP field to be compliant with the type used by the corresponding operating system primitive. From-SVN: r118239
Diffstat (limited to 'gcc/ada/s-osinte-vxworks.ads')
-rw-r--r--gcc/ada/s-osinte-vxworks.ads7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ada/s-osinte-vxworks.ads b/gcc/ada/s-osinte-vxworks.ads
index ef9907a..c751152 100644
--- a/gcc/ada/s-osinte-vxworks.ads
+++ b/gcc/ada/s-osinte-vxworks.ads
@@ -48,6 +48,7 @@ package System.OS_Interface is
subtype int is Interfaces.C.int;
subtype short is Short_Integer;
+ type unsigned_int is mod 2 ** int'Size;
type long is new Long_Integer;
type unsigned_long is mod 2 ** long'Size;
type size_t is mod 2 ** Standard'Address_Size;
@@ -154,8 +155,7 @@ package System.OS_Interface is
pragma Inline (kill);
function getpid return t_id;
- pragma Import (C, getpid, "taskIdSelf");
- -- VxWorks doesn't have getpid; taskIdSelf is the equivalent routine.
+ pragma Inline (getpid);
----------
-- Time --
@@ -218,6 +218,9 @@ package System.OS_Interface is
function taskIdSelf return t_id;
pragma Import (C, taskIdSelf, "taskIdSelf");
+ function taskOptionsGet (tid : t_id; pOptions : access int) return int;
+ pragma Import (C, taskOptionsGet, "taskOptionsGet");
+
function taskSuspend (tid : t_id) return int;
pragma Import (C, taskSuspend, "taskSuspend");