>From the man page of the open system call:
O_LARGEFILE
On 32-bit systems that support the Large Files Sys
tem, allow files whose sizes cannot be represented
in 31 bits to be opened.
I am not sure how you get this down to the open call with fortran, but
you can use the strace command to see it going into the kernel:
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
Steve
On Tue, 2001-11-06 at 08:37, Todd Raeker wrote:
> O.K. everyone.
>
> It appears I do not know what I am doing with respect to enabling large files
> in my fortran code. I am using g77 and just writting into an unformatted
> file. I use -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE as
> command line options. There must also be an option in the open statement
> that sets up the correct file characteristics but I cannot find it anywhere.
> I see the way to do it using gcc but not g77. Any suggestions?
>
> Thanks
>
> Todd.
>
> --
> Todd Raeker
> Department of Chemistry
> University of Michigan
> (734) 647-2867 Phone
> (734) 615-6950 FAX
--
Steve Lord voice: +1-651-683-3511
Principal Engineer, Filesystem Software email: lord@xxxxxxx
|