Re: Large File in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 19, 2001 at 03:43:51PM -0800, Brian Lim wrote:
> could someone tell me the way to handle large
> file (> 2GB) on linux ?

The open(2) manpage on my machine suggests that O_LARGEFILE is The Right
Thing To Use, but mentions that kernel 2.1.130, current when it was
written, doesn't yet support it, but glibc 2.1 does.

In short, perhaps some experimenting is in order. You probably have to
pass O_LARGEFILE to all the syscalls that need it. If you use the stdio
library, it might already use that flag for you. (strace, ltrace, and
experimentation is probably the best way to find out.. :)

Cheers!

(Those lucky *BSD users, their manpages actually match the software they
use...)

-- 
"Soldiers quartered in a populous town will always occasion two mobs
where they prevent one. They are wretched conservators of the peace."
-- John Adams

PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux