X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=nscd%2Fnscd_gethst_r.c;h=961f69538a0b44a7467a2f086fd509200f88b8c8;hp=2e56d7d61c75750446a484dd4d2e11f0b58e2353;hb=2ab852301d358d08dc1d50c4b501b9280bf1d51e;hpb=36e0bf5015cad63591a8546b5fe55c663f7a8dbe diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index 2e56d7d61c..961f69538a 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -36,7 +37,7 @@ int __nss_not_use_nscd_hosts; static int nscd_gethst_r (const char *key, size_t keylen, request_type type, struct hostent *resultbuf, char *buffer, - size_t buflen, int *h_errnop); + size_t buflen, int *h_errnop) internal_function; int @@ -113,6 +114,7 @@ open_socket (void) static int +internal_function nscd_gethst_r (const char *key, size_t keylen, request_type type, struct hostent *resultbuf, char *buffer, size_t buflen, int *h_errnop) @@ -297,6 +299,8 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, *h_errnop = hst_resp.error; __close (sock); + /* The `errno' to some value != ERANGE. */ + __set_errno (ENOENT); return -1; } }