[Patch, libfortran, 2/3] Introduce a ssize member function
Mikael Morin
mikael.morin@sfr.fr
Fri Oct 28 22:30:00 GMT 2011
On Tuesday 18 October 2011 16:51:15 Janne Blomqvist wrote:
> Hi,
>
> the attached patch introduces a new "member function" ssize in order
> to determine the size of a unit. The benefit is that with unbuffered
> IO, when getting the size of a file we can replace 3 lseek() calls
> with one fstat() call, and also that for unseekable file we get a size
> of 0 rather than -1 (which would indicate that the syscall failed).
>
> Regtested on x86_64-unknown-linux-gnu, Ok for trunk?
>
OK.
Mikael
More information about the Fortran
mailing list