
16 Apr
2008
16 Apr
'08
6:58 p.m.
On Wed, Apr 16, 2008 at 5:30 PM, John Goerzen
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. Graham