[Larceny-users] RFC: FFI usage for getting process's environment variables

Felix Klock felixluser at pnkfx.org
Thu Apr 9 18:26:10 EDT 2009


On Apr 9, 2009, at 5:47 PM, Felix Klock wrote:

> On Apr 7, 2009, at 8:38 AM, Derick Eddington wrote:
>
>> I've implemented SRFI 98: An Interface to Access Environment  
>> Variables.
>> I've used the FFI in order to access the C environ variable and to  
>> do my
>> own transcoding of strings.  This is my first time using Larceny's  
>> FFI,
>> so I would like to know if what I've done is correct or if it could  
>> be
>> done better, and I have some other questions (noted in the source  
>> code).
>> Also, attached is a little test program; it works for me.
>
> See my note below about your use of ffi/dlopen.  I do not know about  
> other problems, but I agree that the transcoding is an issue that  
> our current version of getenv does not handle, mmm, very well.

This should actually be really easy to fix, actually.  Filed as Ticket  
#635.

-Felix





More information about the Larceny-users mailing list