rtems libbsd gethostbyname did not work

Chris Johns chrisj at rtems.org
Fri Jul 1 01:38:47 UTC 2016


On 30/06/2016 23:42, 葡萄 wrote:
> hi,I port a usb driver form freebsd for 4G dongle, it work ,but I cannot
> use gethostbyname ,I add some code for debug,find in
> freebsd/lib/libc/net/gethostnamadr.c line 581  _nsdispatch  return
> failure, in function _nsdispatch ,
>
> if (isthreaded) {
> result = _pthread_rwlock_rdlock(&nss_lock);
> if (result != 0) {
> printf("nsdispatch pthread rd lock failure %d!\n",result);
> result = NS_UNAVAIL;
> goto fin;
> }
> }
> _pthread_rwlock_rdlock  return invalid, can you give me some advise? how
> can i let gethostbyname work?

Thank you for reporting this.

> *** RTEMS Info ***
> COPYRIGHT (c) 1989-2008.
> On-Line Applications Research Corporation (OAR).
> rtems-4.10.99.0(ARM/ARMv4/am335x)

What version of libbsd, RTEMS, and tools are you using?

Chris


More information about the users mailing list