[Mono-list] Wrapper additions

Dietmar Maurer dietmar@ximian.com
Wed, 19 Sep 2001 14:53:28 +0200


Jim Richardson wrote:

> Well actually, the thread safe comment can be removed as I had
> originally intended on calling g_getenv from glib which isn't
> thread safe when built with the NATIVE_WIN32 directive.
>
> I don't understand what you mean by how I get the name of a directory?
> The DirectoryInfo class knows "its" name and has several methods that return
> information about "its" contents.

Why does readdir return an int instead of a "struct dirent", which contains the
name of the entry?

- Dietmar

> The Environment class has a method GetEnvironmentVariables which returns
> all process environment variables and their values. Building that
> dictionary seemed simplest to me by accessing the global environ variable.
>
> > -----Original Message-----
> > From: dm@wtfo.wtfo-guru.com [mailto:dm@wtfo.wtfo-guru.com]On Behalf Of
> > Dietmar Maurer
> > Sent: Wednesday, September 19, 2001 1:40 AM
> > To: Jim Richardson
> > Cc: Mono-list@ximian.com
> > Subject: Re: [Mono-list] Wrapper additions
> >
> >
> > Hi Jim,
> >
> > feel free to commit. Although I wonder how you get the name of a
> > directory. We also need thread safe code, and do we really need
> > mono_wrapper_environ?
> >
> > - Dietmar
> >