[Patch, libfortran, 2/3] Introduce a ssize member function
Fri Oct 28 23:32:00 GMT 2011
On Tuesday 18 October 2011 16:51:15 Janne Blomqvist wrote:
> 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?
More information about the Gcc-patches