Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] using open_out_gen, output_string and close_out
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-08-07 (00:37)
From: Jeremy Fincher <tweedgeezer@h...>
Subject: Re: [Caml-list] using open_out_gen, output_string and close_out
I believe your permissions are wrong.  I can't tell you what algorithm to 
use to determine the permissions number, but I know it has to include some 
bits for the file type (plain file, socket, pipe, directory, etc.)

When I want 0644 I use 33188.  That's all I can tell you.  I found that 
number by looking at the ST_MODE return value of the stat(2) call on a 
regular file that i knew was 0644 :)


># let l = open_out_gen [Open_creat;Open_append] 0o666 "/tmp/xx";;

Get your FREE download of MSN Explorer at

Bug reports:  FAQ:
To unsubscribe, mail  Archives: