[Mono-list] Mono.Posix.Syscall

Dan Winship danw@novell.com
Wed, 15 Sep 2004 11:08:52 -0400


On Tue, 2004-09-14 at 16:31 -0400, Loren Bandiera wrote:
> I've been using Mono for some software I'm writing and I needed a way to
> get an entry from a UNIX password file.  I looked around
> Mono.Posix.Syscall but I didn't find what I was looking for.
> 
> So I wrote some code to allow Mono.Posix.Syscall to call getpwent_r(3). 
> See attached patches.

This seems wrong to me, since getpwent_r isn't a syscall
(see /usr/include/linux/syscalls.h). But then, neither are some of the
other things already in Mono.Posix.Syscall, and "syscall" isn't even a
POSIX concept anyway. Ugh. Bad namespace. No biscuit.

Why is the "Syscall" namespace there anyway? Couldn't everything just be
in "Mono.Posix"?

-- Dan