Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 :)

Jeremy

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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr