+2014-08-01 Pascal Obry <obry@adacore.com>
+
+ * a-direct.adb (C_Size): Returns an int64.
+ * osint.adb (System.CRTL): New with clause.
+ (File_Length.Internal): Returns an int64.
+ * s-os_lib.ads (File_Length): Returns an int64.
+
2014-08-01 Robert Dewar <dewar@adacore.com>
* gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
function Size (Name : String) return File_Size is
C_Name : String (1 .. Name'Length + 1);
- function C_Size (Name : Address) return size_t;
+ function C_Size (Name : Address) return int64;
pragma Import (C, C_Size, "__gnat_named_file_length");
begin
pragma Warnings (Off);
-- This package is used also by gnatcoll
with System.Case_Util; use System.Case_Util;
+with System.CRTL;
pragma Warnings (On);
with GNAT.HTable;
function Internal
(F : Integer;
N : C_File_Name;
- A : System.Address) return size_t;
+ A : System.Address) return CRTL.int64;
pragma Import (C, Internal, "__gnat_file_length_attr");
begin
- -- The conversion from size_t to Long_Integer is ok here as this
+ -- The conversion from int64 to Long_Integer is ok here as this
-- routine is only to be used by the compiler and we do not expect
-- a unit to be larger than a 32bit integer.
-- to the current position (origin = SEEK_CUR), end of file (origin =
-- SEEK_END), or start of file (origin = SEEK_SET).
- function File_Length (FD : File_Descriptor) return CRTL.size_t;
+ function File_Length (FD : File_Descriptor) return CRTL.int64;
pragma Import (C, File_Length, "__gnat_file_length");
-- Get length of file from file descriptor FD