aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Rupp <rupp@adacore.com>2005-03-18 12:50:16 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2005-03-18 12:50:16 +0100
commite50713c04aed8b0038e9a48bac85de389466a6b4 (patch)
treeda7fae691fd9d44efb891489f25014f313ef7e21 /gcc
parente5c14bd896f5d1d4d4f4fe42e666895cc0716b01 (diff)
downloadgcc-e50713c04aed8b0038e9a48bac85de389466a6b4.zip
gcc-e50713c04aed8b0038e9a48bac85de389466a6b4.tar.gz
gcc-e50713c04aed8b0038e9a48bac85de389466a6b4.tar.bz2
Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
2005-03-17 Doug Rupp <rupp@adacore.com> * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads. * 5xcrtl.ads: Renamed to... * s-crtl-vms64.ads: ...this new file From-SVN: r96670
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/Makefile.in2
-rw-r--r--gcc/ada/s-crtl-vms64.ads (renamed from gcc/ada/5xcrtl.ads)34
2 files changed, 30 insertions, 6 deletions
diff --git a/gcc/ada/Makefile.in b/gcc/ada/Makefile.in
index 59b6021..b3c0cee 100644
--- a/gcc/ada/Makefile.in
+++ b/gcc/ada/Makefile.in
@@ -1190,7 +1190,7 @@ ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
LIBGNAT_TARGET_PAIRS_AUX1 = \
g-enblsp.adb<g-enblsp-vms-ia64.adb \
s-auxdec.ads<s-auxdec-vms_64.ads \
- s-crtl.ads<s-crtl-vms.ads \
+ s-crtl.ads<s-crtl-vms64.ads \
s-osinte.adb<s-osinte-vms-ia64.adb \
s-osinte.ads<s-osinte-vms-ia64.ads \
system.ads<system-vms_64.ads
diff --git a/gcc/ada/5xcrtl.ads b/gcc/ada/s-crtl-vms64.ads
index dd3292e..a26b272 100644
--- a/gcc/ada/5xcrtl.ads
+++ b/gcc/ada/s-crtl-vms64.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2004 Free Software Foundation, Inc. --
+-- Copyright (C) 2004,2005 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- --
@@ -32,7 +32,7 @@
------------------------------------------------------------------------------
-- This package provides the low level interface to the C Run Time Library
--- on 64 bit VMS
+-- on 64 bit VMS. Note that routines that allocate memory remain 32bit.
with System.Parameters;
package System.CRTL is
@@ -41,6 +41,9 @@ pragma Preelaborate (CRTL);
subtype chars is System.Address;
-- Pointer to null-terminated array of characters
+ subtype DIRs is System.Address;
+ -- Corresponds to the C type DIR*
+
subtype FILEs is System.Address;
-- Corresponds to the C type FILE*
@@ -59,6 +62,15 @@ pragma Preelaborate (CRTL);
procedure clearerr (stream : FILEs);
pragma Import (C, clearerr, "decc$clearerr");
+ function closedir (directory : DIRs) return Integer;
+ pragma Import (C, closedir, "decc$closedir");
+
+ function dup (handle : int) return int;
+ pragma Import (C, dup, "decc$dup");
+
+ function dup2 (from, to : int) return int;
+ pragma Import (C, dup2, "decc$dup2");
+
function fclose (stream : FILEs) return int;
pragma Import (C, fclose, "decc$fclose");
@@ -72,7 +84,7 @@ pragma Preelaborate (CRTL);
pragma Import (C, fgetc, "decc$fgetc");
function fgets (strng : chars; n : int; stream : FILEs) return chars;
- pragma Import (C, fgets, "decc$fgets");
+ pragma Import (C, fgets, "decc$_fgets64");
function fopen (filename : chars; Mode : chars) return FILEs;
pragma Import (C, fopen, "decc$fopen");
@@ -113,7 +125,7 @@ pragma Preelaborate (CRTL);
pragma Import (C, lseek, "decc$lseek");
function malloc (Size : size_t) return System.Address;
- pragma Import (C, malloc, "decc$_malloc64");
+ pragma Import (C, malloc, "decc$malloc");
procedure memcpy (S1 : System.Address; S2 : System.Address; N : size_t);
pragma Import (C, memcpy, "decc$_memcpy64");
@@ -124,16 +136,28 @@ pragma Preelaborate (CRTL);
procedure mktemp (template : chars);
pragma Import (C, mktemp, "decc$_mktemp64");
+ function opendir (file_name : String) return DIRs;
+ pragma Import (C, opendir, "decc$opendir");
+
+ function pclose (stream : System.Address) return int;
+ pragma Import (C, pclose, "decc$pclose");
+
+ function popen (command, mode : System.Address) return System.Address;
+ pragma Import (C, popen, "decc$popen");
+
function read (fd : int; buffer : chars; nbytes : int) return int;
pragma Import (C, read, "decc$read");
function realloc
(Ptr : System.Address; Size : size_t) return System.Address;
- pragma Import (C, realloc, "decc$_realloc64");
+ pragma Import (C, realloc, "decc$realloc");
procedure rewind (stream : FILEs);
pragma Import (C, rewind, "decc$rewind");
+ procedure rmdir (dir_name : String);
+ pragma Import (C, rmdir, "decc$rmdir");
+
function setvbuf
(stream : FILEs;
buffer : chars;