title: Is O_LARGEFILE needed just to write a large file?
body: <p>Is the <code>O_LARGEFILE</code> flag needed if all that I want to do is write a large file (<code>O_WRONLY</code>) or append to a large file (<code>O_APPEND | O_WRONLY</code>)?</p>
  
  <p>From a thread that I read titled "<a href="http://www.mail-archive.com/clucene-developers@lists.sourceforge.net/msg00069.html" rel="nofollow noreferrer">Cannot write >2gb index file</a>" on the CLucene-dev mailing list, it appears that <code>O_LARGEFILE</code> might be needed to write large files, but participants in that discussion are using <code>O_RDWR</code>, not <code>O_WRONLY</code>, so I am not sure.</p>