English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 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