Re: [Patch, libfortran, 2/3] Introduce a ssize member function

2011-10-28 Thread Mikael Morin
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,

[Patch, libfortran, 2/3] Introduce a ssize member function

2011-10-18 Thread Janne Blomqvist
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