From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA18729; Tue, 7 Aug 2001 02:37:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA18711 for ; Tue, 7 Aug 2001 02:37:01 +0200 (MET DST) Received: from hotmail.com (f204.law15.hotmail.com [64.4.23.204]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f770axD20159 for ; Tue, 7 Aug 2001 02:37:00 +0200 (MET DST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 6 Aug 2001 17:36:58 -0700 Received: from 63.92.153.98 by lw15fd.law15.hotmail.msn.com with HTTP; Tue, 07 Aug 2001 00:36:58 GMT X-Originating-IP: [63.92.153.98] From: "Jeremy Fincher" To: jhspies@adept.co.za, caml-list@inria.fr Subject: Re: [Caml-list] using open_out_gen, output_string and close_out Date: Mon, 06 Aug 2001 20:36:58 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 07 Aug 2001 00:36:58.0597 (UTC) FILETIME=[110E4950:01C11ED9] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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