From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 2271ABC69 for ; Fri, 20 Oct 2006 20:44:09 +0200 (CEST) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id k9KIi4J7016521 for ; Fri, 20 Oct 2006 20:44:08 +0200 Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 62FCCDB642C for ; Fri, 20 Oct 2006 14:43:56 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by db2.internal (MEProxy); Fri, 20 Oct 2006 14:43:59 -0400 X-Sasl-enc: owhI4OYi3R72ZVdylPHLJBbsucKJn0cSYyo+nKB+YjDH 1161369838 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by mail.messagingengine.com (Postfix) with ESMTP id C26028FDC for ; Fri, 20 Oct 2006 14:43:58 -0400 (EDT) Date: Fri, 20 Oct 2006 11:43:24 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@localhost To: caml-list@inria.fr Subject: Creating a directory with default permissions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-j-chkmail-Score: MSGID : 453918F4.000 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 453918F4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 umask:01 umask:01 1977:98 unix:01 unix:01 functions:01 jambon:01 jambon:01 defined:02 problem:05 permissions:05 permissions:05 function:08 file:08 Hello, Is there a way to write portable OCaml code which creates a directory with the default permissions as defined by umask? According to the documentation, Unix.umask is not available under Win32, yet some functions ask for some file permissions. I don't know much about Windows, but would there be a problem with having a Win32 Unix.umask function which initially returns 0? Thanks, Martin -- Martin Jambon, PhD http://martin.jambon.free.fr