Deleted Added
full compact
getnetnamadr.c (288015) getnetnamadr.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/getnetnamadr.c 288015 2015-09-20 04:20:31Z rodrigc $");
27__FBSDID("$FreeBSD: head/lib/libc/net/getnetnamadr.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>

--- 5 unchanged lines hidden (view full) ---

41#include <stdarg.h>
42#include <nsswitch.h>
43#include "un-namespace.h"
44#include "netdb_private.h"
45#ifdef NS_CACHING
46#include "nscache.h"
47#endif
48
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>

--- 5 unchanged lines hidden (view full) ---

41#include <stdarg.h>
42#include <nsswitch.h>
43#include "un-namespace.h"
44#include "netdb_private.h"
45#ifdef NS_CACHING
46#include "nscache.h"
47#endif
48
49/* Network lookup order if nsswitch.conf is broken or nonexistant */
49/* Network lookup order if nsswitch.conf is broken or nonexistent */
50static const ns_src default_src[] = {
51 { NSSRC_FILES, NS_SUCCESS },
52 { NSSRC_DNS, NS_SUCCESS },
53 { 0 }
54};
55
56NETDB_THREAD_ALLOC(netent_data)
57NETDB_THREAD_ALLOC(netdata)

--- 394 unchanged lines hidden ---
50static const ns_src default_src[] = {
51 { NSSRC_FILES, NS_SUCCESS },
52 { NSSRC_DNS, NS_SUCCESS },
53 { 0 }
54};
55
56NETDB_THREAD_ALLOC(netent_data)
57NETDB_THREAD_ALLOC(netdata)

--- 394 unchanged lines hidden ---