[TriLUG] compiling binaries w/ large file support

Tom Bryan tbryan at python.net
Sat Jul 24 03:27:48 EDT 2004


On Saturday 24 July 2004 11:03 am, Douglas Kojetin wrote:

> I know the most efficient way of getting this resolved might be to have
> the original author of the code do it, but can anyone point me toward
> some references in adding the O_LARGEFILE flag in the file open's?
> (i'm using gcc, by the way).

man open

If the program opens files with the open function.  You'll see something like

fd = open( pathname_ptr, O_RDONLY )

and you'd change it to 

fd = open( pathname_ptr, O_RDONLY | O_LARGEFILE )

Good luck!

---Tom




More information about the TriLUG mailing list