From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 0D8B6BC48 for ; Fri, 22 Apr 2005 05:03:58 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3M33veB011058 for ; Fri, 22 Apr 2005 05:03:57 +0200 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 FAA06333 for ; Fri, 22 Apr 2005 05:03:57 +0200 (MET DST) Received: from mz2.forethought.net (mzpi4.forethought.net [216.241.36.13]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3M33tnH014164 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 22 Apr 2005 05:03:56 +0200 Received: from [216.241.35.41] (helo=[10.0.0.2]) by mz2.forethought.net with esmtp (Exim 4.30) id 1DOoSQ-0002Tx-TQ for caml-list@inria.fr; Thu, 21 Apr 2005 21:03:54 -0600 Message-ID: <42686A58.8060307@havenrock.com> Date: Thu, 21 Apr 2005 21:07:04 -0600 From: Matt Gushee User-Agent: Mozilla Thunderbird 1.0 (X11/20050108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Sys.setenv or equivalent? References: <20050422011247.GA15065@localhost> In-Reply-To: <20050422011247.GA15065@localhost> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4268699D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4268699B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 getenv:01 stub:01 wrote:01 unix:01 sys:03 sys:03 variable:06 equivalent:08 environment:10 cooper:11 but:12 set:13 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Eric Cooper wrote: > Is there any way to do setenv() from within OCaml? I want to set an > environment variable that will be used by a C library that my OCaml > program calls. I know it's a simple C stub, but it would be nice if > it were in Sys along with getenv. How about Unix.putenv? -- Matt Gushee Englewood, CO, USA