• Home
  • Raw
  • Download

Lines Matching refs:hInfo

213 DEBUG_LOCAL OSStatus	HostsFileNext( HostsFile * self, HostsFileInfo ** hInfo );
2064 HostsFileNext( HostsFile * self, HostsFileInfo ** hInfo ) in HostsFileNext() argument
2079 check( hInfo ); in HostsFileNext()
2083 *hInfo = (HostsFileInfo*) malloc( sizeof( HostsFileInfo ) ); in HostsFileNext()
2084 require_action( *hInfo, exit, err = kNoMemoryErr ); in HostsFileNext()
2085 memset( *hInfo, 0, sizeof( HostsFileInfo ) ); in HostsFileNext()
2149 (*hInfo)->m_host.h_name = (char*) malloc( strlen( tok ) + 1 ); in HostsFileNext()
2150 require_action( (*hInfo)->m_host.h_name, exit, err = kNoMemoryErr ); in HostsFileNext()
2151 strcpy( (*hInfo)->m_host.h_name, tok ); in HostsFileNext()
2169 (*hInfo)->m_host.h_addr_list = (char**) malloc( sizeof( char**) * 2 ); in HostsFileNext()
2170 require_action( (*hInfo)->m_host.h_addr_list, exit, err = kNoMemoryErr ); in HostsFileNext()
2174 (*hInfo)->m_host.h_length = (short) sizeof( addr_6.sin6_addr ); in HostsFileNext()
2175 (*hInfo)->m_host.h_addr_list[0] = (char*) malloc( (*hInfo)->m_host.h_length ); in HostsFileNext()
2176 require_action( (*hInfo)->m_host.h_addr_list[0], exit, err = kNoMemoryErr ); in HostsFileNext()
2177 memmove( (*hInfo)->m_host.h_addr_list[0], &addr_6.sin6_addr, sizeof( addr_6.sin6_addr ) ); in HostsFileNext()
2182 (*hInfo)->m_host.h_length = (short) sizeof( addr_4.sin_addr ); in HostsFileNext()
2183 (*hInfo)->m_host.h_addr_list[0] = (char*) malloc( (*hInfo)->m_host.h_length ); in HostsFileNext()
2184 require_action( (*hInfo)->m_host.h_addr_list[0], exit, err = kNoMemoryErr ); in HostsFileNext()
2185 memmove( (*hInfo)->m_host.h_addr_list[0], &addr_4.sin_addr, sizeof( addr_4.sin_addr ) ); in HostsFileNext()
2188 (*hInfo)->m_host.h_addr_list[1] = NULL; in HostsFileNext()
2189 (*hInfo)->m_host.h_addrtype = family; in HostsFileNext()
2200 (*hInfo)->m_host.h_aliases = (char**) malloc( sizeof(char**) * numAliases ); in HostsFileNext()
2201 require_action( (*hInfo)->m_host.h_aliases, exit, err = kNoMemoryErr ); in HostsFileNext()
2202 (*hInfo)->m_host.h_aliases[0] = NULL; in HostsFileNext()
2219 …(*hInfo)->m_host.h_aliases = (char**) realloc( (*hInfo)->m_host.h_aliases, numAliases * sizeof( ch… in HostsFileNext()
2220 require_action( (*hInfo)->m_host.h_aliases, exit, err = kNoMemoryErr ); in HostsFileNext()
2223 (*hInfo)->m_host.h_aliases[i] = (char*) malloc( strlen( tok ) + 1 ); in HostsFileNext()
2224 require_action( (*hInfo)->m_host.h_aliases[i], exit, err = kNoMemoryErr ); in HostsFileNext()
2226 strcpy( (*hInfo)->m_host.h_aliases[i], tok ); in HostsFileNext()
2233 (*hInfo)->m_host.h_aliases[++i] = NULL; in HostsFileNext()
2241 if ( err && ( *hInfo ) ) in HostsFileNext()
2243 HostsFileInfoFree( *hInfo ); in HostsFileNext()
2244 *hInfo = NULL; in HostsFileNext()