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 KAA19950; Sat, 31 Jan 2004 10:53:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAB19827 for ; Sat, 31 Jan 2004 10:53:28 +0100 (MET) Received: from mz2.forethought.net (mzpi4.forethought.net [216.241.36.13]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i0V9rRP16077 for ; Sat, 31 Jan 2004 10:53:27 +0100 (MET) Received: from [216.241.35.41] (helo=swordfish) by mz2.forethought.net with esmtp (Exim 4.14) id 1Amroc-0005Rs-5w for caml-list@pauillac.inria.fr; Sat, 31 Jan 2004 02:53:26 -0700 Received: from matt by swordfish with local (Exim 3.35 #1 (Debian)) id 1Amrod-0003tF-00 for ; Sat, 31 Jan 2004 02:53:27 -0700 Date: Sat, 31 Jan 2004 02:53:27 -0700 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Apparent I/O bug Message-ID: <20040131095327.GB12067@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr References: <20040131084640.GA12067@swordfish> <20040131103806.B17938@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040131103806.B17938@pauillac.inria.fr> User-Agent: Mutt/1.3.27i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 caml-list:01 bug:01 2004:99 bug:01 pervasives:01 descriptor:01 flags:01 wronly:01 wronly:01 gushee:01 englewood:01 manure:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Jan 31, 2004 at 10:38:06AM +0100, Xavier Leroy wrote: > > I have encountered what appears to be a bug in out_channels created with > > Pervasives.open_out_gen: .... > > Exception: Sys_error "Bad file descriptor". > > > > Well, that's disturbing. Or is there something I don't understand about > > the proper usage of open_out_gen (documentation problem?)? > > In your call to open_out_gen, you didn't request write permission > (the list of flags doesn't contain "Open_wronly"). Okay, that's simple enough. Thanks for the info! But I wonder why it is necessary to have the "Open_wronly" flag. What would be the point of opening an output channel without write permission? -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners