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 90914BC48 for ; Fri, 22 Apr 2005 03:14:19 +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 j3M1EJRO032273 for ; Fri, 22 Apr 2005 03:14:19 +0200 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 DAA03054 for ; Fri, 22 Apr 2005 03:14:18 +0200 (MET DST) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j3M1EHl1032270 for ; Fri, 22 Apr 2005 03:14:18 +0200 Received: from [24.3.154.200] ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa27746; 21 Apr 2005 21:12 EDT Received: from ecc by stratocaster.home with local (Exim 4.50) id 1DOmit-0003vB-NP for caml-list@inria.fr; Thu, 21 Apr 2005 21:12:47 -0400 Date: Thu, 21 Apr 2005 21:12:47 -0400 To: caml-list@inria.fr Subject: Sys.setenv or equivalent? Message-ID: <20050422011247.GA15065@localhost> Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i From: Eric Cooper X-Miltered: at concorde with ID 42684FEB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42684FE9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 getenv:01 stub:01 sys:03 sys:03 variable:06 edu:07 equivalent:08 environment:10 cooper:11 cooper:11 but:12 set:13 nice:14 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: 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. -- Eric Cooper e c c @ c m u . e d u