[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect return value in gethostbyname_r() ?
From: |
Greg Herlein |
Subject: |
Re: incorrect return value in gethostbyname_r() ? |
Date: |
Sat, 28 Oct 2000 08:31:54 -0700 (PDT) |
OK, then tell me where the correct documentation is. I am using:
http://www.gnu.org/manual/glibc-2.0.6/html_chapter/libc_25.html#SEC443
I'd love to know what you are referring to.
Greg
On Sat, 28 Oct 2000, Thorsten Kukuk wrote:
>
> Hi,
>
> On Sat, Oct 28, Greg Herlein wrote:
>
> > The code below illustrates a problem I have found with
> > gethostbyname_r(). It is returning NSS_STATUS_NOTFOUND but does
> > in fact have an answer.
>
> gethostbyname_r() does not return NSS_* values. From the documentation:
>
> If an error occurs or if no entry is found, the pointer
> `*RESULT' is a null pointer. Success is signalled by a zero
> return value. If the function failed the return value is an
> error number.
>
> Your program is wrong.
>
> Thorsten
>
> --
> Thorsten Kukuk http://www.suse.de/~kukuk/ address@hidden
> SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
> Linux is like a Vorlon. It is incredibly powerful, gives terse,
> cryptic answers and has a lot of things going on in the background.
>
/**************************************************************
Greg Herlein address@hidden
Herlein Engineering www.herlein.com
***************************************************************/
- incorrect return value in gethostbyname_r() ?, Greg Herlein, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?, Thorsten Kukuk, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?,
Greg Herlein <=
- Re: incorrect return value in gethostbyname_r() ?, Thorsten Kukuk, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?, Greg Herlein, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?, Ulrich Drepper, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?, Greg Herlein, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?, Ulrich Drepper, 2000/10/28