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
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
On Wed, 2004-09-15 at 11:32 -0400, Loren Bandiera wrote:
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
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.
My problem
You need to use gacutil to install the new Mono.Posix. Either set your
prefix in mcs/ and do a make install in the mcs/class/Mono.Posix or do
gacutil -i Mono.Posix.dll
Jackson
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
Sounds good. I'll give that a try. Thanks!
On Tue, 2004-09-14 at 13:35 -0500, Jackson Harper wrote:
You need to use gacutil to install the new Mono.Posix. Either set your
prefix in mcs/ and do a make install in the mcs/class/Mono.Posix or do
gacutil -i Mono.Posix.dll
Jackson
--
Loren
Can you also set the MONO_PATH environment variable to the location of
the new assembly? (It's both a suggestion and a question. :) ) This is
what I usually do when I'm working on Monodoc so I don't have to touch
my rpm-installed version.
I don't have a full understanding of how MONO_PATH
Yes you can. MONO_PATH comes first in the assembly loading chain, but
should really only be used during development.
Jackson
On Tue, 2004-09-14 at 18:19 -0400, Joshua Tauberer wrote:
Can you also set the MONO_PATH environment variable to the location of
the new assembly? (It's both a
Loren,
I'm always happy to see Mono.Posix get new functionality. It's a fun
little assembly... Anyway, I have a few comments (merely from the point
of view of a fellow Mono.Posix.Syscall hacker):
Most of the functions in Syscall are named after the equivalent library
function. I'd suggest
On Tue, 2004-09-14 at 18:47 -0400, Joshua Tauberer wrote:
Most of the functions in Syscall are named after the equivalent library
function. I'd suggest changing your passwd function to getpwnam.
Also, your function is accidentally private.
Yeah I noticed the private thing, that was a cut
Loren Bandiera wrote:
Yeah I was just using the field names from the man page. I have no
problems changing those names too.
Ahha, I was reporting what was in the man page in Fedora Core 2 assuming
it was the same everywhere. Since it's not the same everywhere,
nevermind. :)
Thanks for the
11 matches
Mail list logo