From 0677679e44594e7e70f7dbb11c071f4ceb37b216 Mon Sep 17 00:00:00 2001 From: charlet Date: Wed, 2 Jan 2013 10:59:38 +0000 Subject: 2013-01-02 Thomas Quinot * sem_ch3.adb: Minor reformatting. 2013-01-02 Pascal Obry * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on Win64 and default to ftell on other platforms. (__gnat_fsek64): Likewise. * i-cstrea.ads: Add fssek64 and ftell64 specs. * s-crtl.ads: Likewise. * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required. (Set_Position): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194797 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/s-crtl.ads | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/ada/s-crtl.ads') diff --git a/gcc/ada/s-crtl.ads b/gcc/ada/s-crtl.ads index a763d606b70..18c43c42a64 100644 --- a/gcc/ada/s-crtl.ads +++ b/gcc/ada/s-crtl.ads @@ -122,9 +122,18 @@ package System.CRTL is origin : int) return int; pragma Import (C, fseek, "fseek"); + function fseek64 + (stream : FILEs; + offset : ssize_t; + origin : int) return int; + pragma Import (C, fseek64, "__gnat_fseek64"); + function ftell (stream : FILEs) return long; pragma Import (C, ftell, "ftell"); + function ftell64 (stream : FILEs) return ssize_t; + pragma Import (C, ftell64, "__gnat_ftell64"); + function getenv (S : String) return System.Address; pragma Import (C, getenv, "getenv"); -- cgit v1.2.1