graham.fawcett at gmail.com
Wed Apr 16 18:58:43 EDT 2008
On Wed, Apr 16, 2008 at 5:30 PM, John Goerzen <jgoerzen at complete.org> wrote:
> On Wed April 16 2008 3:54:45 pm Galchin, Vasili wrote:
> > hi Antoine,
> > I already found this link. Thanks in any case. I want to O_CREATE a
> > file, i.e. do a openFd creating a new file. O_CREATE should be the
> > FileMode, but I don't see in the link below.
> Indeed. It seems there is no way to pass O_CREAT to openFile. there is
> createFile, but that's really a different call. Sigh.
In openFile, in GHC 6.8.2 at least, O_CREAT is passed for WriteMode
and ReadWriteMode -- see output_flags in GHC/Handle.hs.
More information about the Haskell-Cafe