[Mono-list] Why InternalCall rather than DllImport?

Dick Porter dick@ximian.com
Wed, 9 Jan 2002 19:22:30 +0000

On Wed, Jan 09, 2002 at 10:42:28AM -0800, Matt Kimball wrote:
> More importantly, are there any objections to me filling in some of the missing
> IOperatingSystem methods in Linux.cs -- methods which aren't using file handles
> as part of their public interface -- taking the approach that I did in the patch
> sent with the last message?  (i.e. Using the Unix wrapper, with any necessary
> semantic massaging happening at the C# level).

As far as I can tell, Unix/Wrapper.cs is dead code.

I think we'd be better off implementing cross-platform compatibility in
the same manner as the current file IO code.  In the case of readdir,
that means implementing System.IO.Directory.GetDirectories with calls
to FindFirstFile and FindNextFile.

I can't find the System.Private class in CVS anywhere, and it's not in your
patch, so I can't comment on that part.

- Dick