# Re: large file support?

- From: Steven Scholz \<hidden\>
- Date: 2003-07-31 12:59:47 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2003/07/9389193
- Thread: https://ratatoskr.run/linuxppc-dev/2003/07/9389192/t.md

```text

Wolfgang Denk wrote:

> In message [ref] you wrote:
>
>>I reckon my app does not support large files. Since after writing 2GB
>>to a file
>
>
> Did  you  build  it  with  the  required  options,   like   #defining
> _FILE_OFFSET_BITS as 64 ?

Nope!
But good point! :o)
And I just got these lines:

Fillod Stephane wrote:
> Recent kernel and glibc are fine.
>
> Pass O_LARGEFILE to the second open() arg, and compile
> with "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" should do it.

and rebuilt my application. But the test (with my app) will take a
while...

Thanks!

Steven


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
```
