[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect return value in gethostbyname_r() ?
From: |
Thorsten Kukuk |
Subject: |
Re: incorrect return value in gethostbyname_r() ? |
Date: |
Sat, 28 Oct 2000 17:26:18 +0200 |
User-agent: |
Mutt/1.2.5i |
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.
- incorrect return value in gethostbyname_r() ?, Greg Herlein, 2000/10/28
- Re: incorrect return value in gethostbyname_r() ?,
Thorsten Kukuk <=
- Re: 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, 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