gethostnamadr.c (288015) | gethostnamadr.c (298830) |
---|---|
1/*- 2 * Copyright (c) 1994, Garrett Wollman 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994, Garrett Wollman 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/lib/libc/net/gethostnamadr.c 288015 2015-09-20 04:20:31Z rodrigc $"); | 27__FBSDID("$FreeBSD: head/lib/libc/net/gethostnamadr.c 298830 2016-04-30 01:24:24Z pfg $"); |
28 29#include "namespace.h" 30#include "reentrant.h" 31#include <sys/param.h> 32#include <sys/socket.h> 33#include <netinet/in.h> 34#include <arpa/inet.h> 35#include <netdb.h> --- 10 unchanged lines hidden (view full) --- 46#include "netdb_private.h" 47#ifdef NS_CACHING 48#include "nscache.h" 49#endif 50 51static int gethostbyname_internal(const char *, int, struct hostent *, char *, 52 size_t, struct hostent **, int *, res_state); 53 | 28 29#include "namespace.h" 30#include "reentrant.h" 31#include <sys/param.h> 32#include <sys/socket.h> 33#include <netinet/in.h> 34#include <arpa/inet.h> 35#include <netdb.h> --- 10 unchanged lines hidden (view full) --- 46#include "netdb_private.h" 47#ifdef NS_CACHING 48#include "nscache.h" 49#endif 50 51static int gethostbyname_internal(const char *, int, struct hostent *, char *, 52 size_t, struct hostent **, int *, res_state); 53 |
54/* Host lookup order if nsswitch.conf is broken or nonexistant */ | 54/* Host lookup order if nsswitch.conf is broken or nonexistent */ |
55static const ns_src default_src[] = { 56 { NSSRC_FILES, NS_SUCCESS }, 57 { NSSRC_DNS, NS_SUCCESS }, 58 { 0 } 59}; 60#ifdef NS_CACHING 61static int host_id_func(char *, size_t *, va_list, void *); 62static int host_marshal_func(char *, size_t *, void *, va_list, void *); --- 665 unchanged lines hidden --- | 55static const ns_src default_src[] = { 56 { NSSRC_FILES, NS_SUCCESS }, 57 { NSSRC_DNS, NS_SUCCESS }, 58 { 0 } 59}; 60#ifdef NS_CACHING 61static int host_id_func(char *, size_t *, va_list, void *); 62static int host_marshal_func(char *, size_t *, void *, va_list, void *); --- 665 unchanged lines hidden --- |