/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/include/netinet/ |
H A D | in.h | 9 char **h_addr_list; /* list of addresses from name server */ member in struct:hostent 10 #define h_addr h_addr_list[0] /* address, for backward compatiblity */
|
/macosx-10.9.5/Heimdal-323.92.1/lib/roken/ |
H A D | freehostent.c | 53 if (h->h_addr_list != NULL) { 54 for (p = h->h_addr_list; *p != NULL; ++p) 56 free (h->h_addr_list);
|
H A D | copyhostent.c | 56 res->h_addr_list = NULL; 79 for (n = 0, p = h->h_addr_list; *p != NULL; ++p) 81 res->h_addr_list = malloc ((n + 1) * sizeof(*res->h_addr_list)); 82 if (res->h_addr_list == NULL) { 87 res->h_addr_list[i] = NULL; 90 res->h_addr_list[i] = malloc (h->h_length); 91 if (res->h_addr_list[i] == NULL) { 95 memcpy (res->h_addr_list[i], h->h_addr_list[ [all...] |
/macosx-10.9.5/procmail-14/procmail/src/ |
H A D | network.h | 14 #define h_0addr_list h_addr_list[0] /* POSIX struct member */
|
/macosx-10.9.5/postfix-252/postfix/auxiliary/name-addr-test/ |
H A D | gethostbyname.c | 36 while (hp->h_addr_list[0]) 37 printf("%s ", inet_ntoa(*(struct in_addr *) * hp->h_addr_list++));
|
H A D | gethostbyaddr.c | 39 while (hp->h_addr_list[0]) 40 printf("%s ", inet_ntoa(*(struct in_addr *) * hp->h_addr_list++));
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/ |
H A D | netdb.h | 61 /* $Copyright:
*
* Copyright 1998-2000 by the Massachusetts Institute of Technology.
*
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of M.I.T. not be used in
* advertising or publicity pertaining to distribution of the software
* without specific, written prior permission. Furthermore if you modify
* this software you must label your software as modified software and not
* distribute it in such a fashion that it might be confused with the
* original MIT software. M.I.T. makes no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Individual source code files are copyright MIT, Cygnus Support,
* OpenVision, Oracle, Sun Soft, FundsXpress, and others.
*
* Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,
* and Zephyr are trademarks of the Massachusetts Institute of Technology
* (MIT). No commercial use of these trademarks may be made without prior
* written permission of MIT.
*
* "Commercial use" means use of a name in a product or other for-profit
* manner. It does NOT prevent a commercial firm from referring to the MIT
* trademarks in order to convey information (although in doing so,
* recognition of their trademark status should be given).
* $
*/
/* $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/netdb.h,v 1.4 2005/01/10 19:10:48 snsimon Exp $ */
/* MIT Sockets Library
* netdb.h
* macdev@mit.edu
*/
#ifndef _NETDB_H
#define _NETDB_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
struct hostent
{
char *h_name; /* official (cannonical) name of host */
char **h_aliases; /* pointer to array of pointers of alias names */
int h_addrtype; /* host address type: AF_INET or AF_INET6 */
int h_length; /* length of address: 4 or 16 */
char **h_addr_list; /* pointer to array of pointers with IPv4 or IPv6 addresses */
};
#define h_addr h_addr_list[0] /* first address in list */
struct servent
{
char *s_name; /* official service name (…) 1 /* $Copyright member in struct:hostent
|
/macosx-10.9.5/bind9-45.100/bind9/lib/lwres/ |
H A D | gethost.c | 34 * char **h_addr_list; // list of addresses from name server 36 * #define h_addr h_addr_list[0] // address, for backward compatibility 54 * \li h_addr_list: 59 * address in h_addr_list. 83 * h_addr_list elements of the struct hostent returned in resbuf. 94 * used to store the h_name, h_aliases, and h_addr_list elements of the 131 * names referenced by the h_name, h_aliases, and h_addr_list elements of 307 for (i = 0; he->h_addr_list[i]; i++, nptr++) { 332 hptr->h_addr_list = ptr; 333 for (i = 0; he->h_addr_list[ [all...] |
H A D | getipnode.c | 33 * char **h_addr_list; // list of addresses from name server 35 * #define h_addr h_addr_list[0] // address, for backward compatibility 54 * \li h_addr_list: 87 * hostent pointer. Any memory allocated for the h_name, h_addr_list 260 he.h_addr_list = addr_list; 261 he.h_addr_list[0] = (v4 == 1) ? (char *)&in4 : (char *)&in6; 262 he.h_addr_list[1] = NULL; 471 cpp = he->h_addr_list; 487 free(he->h_addr_list); 853 cpp = he1->h_addr_list; [all...] |
/macosx-10.9.5/postfix-252/postfix/src/local/ |
H A D | biff_notify.c | 78 memcpy((char *) &sin.sin_addr, hp->h_addr_list[0], hp->h_length);
|
/macosx-10.9.5/curl-78.94.1/curl/lib/ |
H A D | curl_addrinfo.c | 262 * char **h_addr_list; 267 * #define h_addr h_addr_list[0] 288 DEBUGASSERT((he->h_name != NULL) && (he->h_addr_list != NULL)); 290 for(i=0; (curr = he->h_addr_list[i]) != NULL; i++) { 374 char *h_addr_list[2]; member in struct:namebuff 441 h->h_addr_list = &buf->h_addr_list[0]; 442 h->h_addr_list[0] = addrentry; 443 h->h_addr_list[1] = NULL; /* terminate list of entries */
|
/macosx-10.9.5/OpenSSH-186/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { 214 for (i = 0; hp->h_addr_list[i]; i++) { 215 struct in_addr *in = (struct in_addr *)hp->h_addr_list[i];
|
/macosx-10.9.5/libutil-34/ |
H A D | realhostname.c | 70 else for (; ; hp->h_addr_list++) { 71 if (*hp->h_addr_list == NULL) { 75 if (!memcmp(*hp->h_addr_list, ip, sizeof(*ip))) {
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/lib/ |
H A D | getaddrinfo.c | 228 hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { 229 for (i = 0; hp->h_addr_list[i]; i++) { 231 ((struct in_addr *)hp->h_addr_list[i])->s_addr,
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/saslauthd/ |
H A D | getaddrinfo.c | 197 hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { 198 for (i = 0; hp->h_addr_list[i]; i++) { 200 ((struct in_addr *)hp->h_addr_list[i])->s_addr,
|
/macosx-10.9.5/remote_cmds-41.90.1/ypset.tproj/ |
H A D | ypset.c | 121 bcopy(hp->h_addr_list[0], &ypsd.ypsetdom_binding.ypbind_binding_addr, 4); 176 bcopy(&hent->h_addr_list[0], &sin.sin_addr,
|
/macosx-10.9.5/Libinfo-449.1.3/gen.subproj/ |
H A D | map_v4v6.c | 113 for (ap = hp->h_addr_list; *ap; ap++) {
|
/macosx-10.9.5/autofs-234/automountlib/ |
H A D | selfcheck.c | 117 for (hostptr = hostinfo->h_addr_list; *hostptr; hostptr++) {
|
/macosx-10.9.5/bind9-45.100/bind9/bin/tests/ |
H A D | gxbn_test.c | 46 c = he->h_addr_list;
|
/macosx-10.9.5/bind9-45.100/bind9/contrib/idn/idnkit-1.0-src/wsock/common/ |
H A D | dump.c | 87 dumpAddr(hp->h_addr_list[0], hp->h_length, p, size);
|
/macosx-10.9.5/remote_cmds-41.90.1/rlogin.tproj/ |
H A D | kcmd.c | 156 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); 175 if (hp->h_addr_list[1] != NULL) { 183 hp->h_addr_list++; 184 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr,
|
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/generic/ |
H A D | tclXsocket.c | 230 for (idx = 0; hostEntry->h_addr_list [idx] != NULL; idx++) { 231 bcopy ((VOID *) hostEntry->h_addr_list [idx], 246 for (idx = 0; hostEntry->h_addr_list [idx] != NULL; idx++) { 247 bcopy ((VOID *) hostEntry->h_addr_list [idx],
|
/macosx-10.9.5/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | getsockname.c | 92 (void) memcpy(&adds.sin_addr.s_addr, host->h_addr_list[0],
|
H A D | listen.c | 95 (void) memcpy(&adds.sin_addr.s_addr, host->h_addr_list[0],
|
/macosx-10.9.5/Libinfo-449.1.3/lookup.subproj/ |
H A D | si_getaddrinfo.c | 720 if ((h6 != NULL) && (h6->h_addr_list != NULL)) 722 for (i = 0; h6->h_addr_list[i] != NULL; i++) 725 memcpy(&a6, h6->h_addr_list[i], h6->h_length); 732 if ((h4 != NULL) && (h4->h_addr_list != NULL)) 734 for (i = 0; h4->h_addr_list[i] != NULL; i++) 737 memcpy(&a4, h4->h_addr_list[i], h4->h_length); 1376 if (h->addr_count == 0) h->host.h_addr_list = (char **)calloc(2, sizeof(char *)); 1377 else h->host.h_addr_list = (char **)reallocf(h->host.h_addr_list, (h->addr_count + 2) * sizeof(char *)); 1379 if (h->host.h_addr_list [all...] |