Subject: Re: nsl lib and the getnameinfo call alternative?
To: Charlie & <noud@axxes.be>
From: David Brownlee <abs@netbsd.org>
List: netbsd-help
Date: 01/17/2000 15:09:34
You might be able to link against linux libs by using a linux
compiler and linker but that would end up compiling the entire
program as linux - much better to update getnameinfo() call
getnameinfo() is a protocol independent version of
gethostbyaddr(3). Its in place in -current for use with IPv6
and should be included in 1.5. In the meantime you should be
able to work around it - the manpage source for getnameinfo()
is at
http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/basesrc/lib/libc/net/getnameinfo.3?rev=1.4&content-type=text/x-cvsweb-markup
David/absolute
On Mon, 17 Jan 2000, Charlie & wrote:
> i just learned i can't build agains /emul/linux/lib's,
> in my case libnsl.so.1.
>
> at work them asked me to install a Linux package using:
>
> getnameinfo((struct sockaddr *)&client_addr, client_addr_len,
> accept_ip, sizeof(accept_ip),
> NULL, 0, NI_NUMERICHOST);
>
> would anyone know an alternative call to use??
> (please respond by e-mail as well, i'm not regular on this list)
> (excuse me for not knowing our unix code.)
> thanx,
> ~n
>
> ----------------------------------
> E-Mail: Charlie & <noud@axxes.be>
> Date: 17-Jan-00
> Time: 15:48:04
>
> This message was sent by XFMail
> ----------------------------------
>