name6.c (105783) | name6.c (111010) |
---|---|
1/* $KAME: name6.c,v 1.25 2000/06/26 16:44:40 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 80 unchanged lines hidden (view full) --- 89 90/* 91 * TODO for thread safe 92 * use mutex for _hostconf, _hostconf_init. 93 * rewrite resolvers to be thread safe 94 */ 95 96#include <sys/cdefs.h> | 1/* $KAME: name6.c,v 1.25 2000/06/26 16:44:40 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 80 unchanged lines hidden (view full) --- 89 90/* 91 * TODO for thread safe 92 * use mutex for _hostconf, _hostconf_init. 93 * rewrite resolvers to be thread safe 94 */ 95 96#include <sys/cdefs.h> |
97__FBSDID("$FreeBSD: head/lib/libc/net/name6.c 105783 2002-10-23 10:45:09Z ume $"); | 97__FBSDID("$FreeBSD: head/lib/libc/net/name6.c 111010 2003-02-16 17:29:11Z nectar $"); |
98 99#include "namespace.h" 100#include <sys/param.h> 101#include <sys/socket.h> 102#include <sys/time.h> 103#include <sys/queue.h> 104#include <netinet/in.h> 105 --- 66 unchanged lines hidden (view full) --- 172static struct hostent *_hpsort(struct hostent *hp); 173static struct hostent *_ghbyname(const char *name, int af, int flags, int *errp); 174static char *_hgetword(char **pp); 175static int _mapped_addr_enabled(void); 176 177static FILE *_files_open(int *errp); 178static int _files_ghbyname(void *, void *, va_list); 179static int _files_ghbyaddr(void *, void *, va_list); | 98 99#include "namespace.h" 100#include <sys/param.h> 101#include <sys/socket.h> 102#include <sys/time.h> 103#include <sys/queue.h> 104#include <netinet/in.h> 105 --- 66 unchanged lines hidden (view full) --- 172static struct hostent *_hpsort(struct hostent *hp); 173static struct hostent *_ghbyname(const char *name, int af, int flags, int *errp); 174static char *_hgetword(char **pp); 175static int _mapped_addr_enabled(void); 176 177static FILE *_files_open(int *errp); 178static int _files_ghbyname(void *, void *, va_list); 179static int _files_ghbyaddr(void *, void *, va_list); |
180static void _files_shent(int stayopen); 181static void _files_ehent(void); | |
182#ifdef YP 183static int _nis_ghbyname(void *, void *, va_list); 184static int _nis_ghbyaddr(void *, void *, va_list); 185#endif 186static int _dns_ghbyname(void *, void *, va_list); 187static int _dns_ghbyaddr(void *, void *, va_list); | 180#ifdef YP 181static int _nis_ghbyname(void *, void *, va_list); 182static int _nis_ghbyaddr(void *, void *, va_list); 183#endif 184static int _dns_ghbyname(void *, void *, va_list); 185static int _dns_ghbyaddr(void *, void *, va_list); |
188static void _dns_shent(int stayopen); 189static void _dns_ehent(void); | 186static void _dns_shent(int stayopen) __unused; 187static void _dns_ehent(void) __unused; |
190#ifdef ICMPNL 191static int _icmp_ghbyaddr(void *, void *, va_list); 192#endif /* ICMPNL */ 193 194/* Make getipnodeby*() thread-safe in libc for use with kernel threads. */ 195#include "libc_private.h" 196#include "spinlock.h" 197/* --- 1654 unchanged lines hidden --- | 188#ifdef ICMPNL 189static int _icmp_ghbyaddr(void *, void *, va_list); 190#endif /* ICMPNL */ 191 192/* Make getipnodeby*() thread-safe in libc for use with kernel threads. */ 193#include "libc_private.h" 194#include "spinlock.h" 195/* --- 1654 unchanged lines hidden --- |