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.
 
Thanks, Vasili

On Wed, Apr 16, 2008 at 1:46 PM, Antoine Latter <aslatter@gmail.com> wrote:
2008/4/16 Galchin, Vasili <vigalchin@gmail.com>:
> Hello,
>
>       I tried d to use Hoogle to find openFd's signature and more
> importantly FileMode. I found FileMode which is  a type synonym with CMode.
> I don't understand what are the "values" for FileMode (so I can call
> openFd). ??

Values of type FileMode are defined in System.Posix.Files

See http://haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Files.html#1
for the defintions.

Does that help?

-Antoine