how to use lseek() system call with over 2G files?

Alex alex at dynaweb.ru
Tue Jan 6 09:28:48 PST 2004


Hi everybody!

Some time ago there wasn't any possibility to create disk file larger 
than 2G and there was no problem with lseek().
But as for now we can do it but I looked into headers and found off_t is 
equal to long -> no more than 2G on i386 machines.
As far as lseek() is a system call I cannot believe it cannot be used 
with larger files but how?

Maybe it's a silly question? :0)

Alex



More information about the freebsd-questions mailing list