/dports/net/kamailio/kamailio-5.4.5/src/core/ |
H A D | proxy.c | 89 if (src->h_aliases) \ 92 if (dst->h_aliases==0){ \ 101 if (dst->h_aliases==0){ \ 105 he_free(dst->h_aliases); \ 108 strncpy(dst->h_aliases[i], src->h_aliases[i], len2); \ 119 he_free(dst->h_aliases[r]); \ 121 he_free(dst->h_aliases); \ 134 he_free(dst->h_aliases); \ 156 if (dst->h_aliases){ \ 158 he_free(dst->h_aliases[r]); \ [all …]
|
/dports/dns/ares/ares-1.1.1/ |
H A D | ares__get_hostent.c | 91 hostent->h_aliases = NULL; in ares__get_hostent() 102 hostent->h_aliases = malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 103 if (!hostent->h_aliases) in ares__get_hostent() 118 hostent->h_aliases[naliases] = malloc(q - p + 1); in ares__get_hostent() 119 if (hostent->h_aliases[naliases] == NULL) in ares__get_hostent() 121 memcpy(hostent->h_aliases[naliases], p, q - p); in ares__get_hostent() 122 hostent->h_aliases[naliases][q - p] = 0; in ares__get_hostent() 131 hostent->h_aliases[naliases] = NULL; in ares__get_hostent() 149 if (hostent->h_aliases) in ares__get_hostent() 151 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() [all …]
|
/dports/net/samba412/samba-4.12.15/source4/heimdal/lib/roken/ |
H A D | copyhostent.c | 53 res->h_aliases = NULL; in copyhostent() 62 for (n = 0, p = h->h_aliases; *p != NULL; ++p) in copyhostent() 64 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); in copyhostent() 65 if (res->h_aliases == NULL) { in copyhostent() 70 res->h_aliases[i] = NULL; in copyhostent() 72 res->h_aliases[i] = strdup (h->h_aliases[i]); in copyhostent() 73 if (res->h_aliases[i] == NULL) { in copyhostent()
|
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/heimdal/lib/roken/ |
H A D | copyhostent.c | 56 res->h_aliases = NULL; in copyhostent() 65 for (n = 0, p = h->h_aliases; *p != NULL; ++p) in copyhostent() 67 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); in copyhostent() 68 if (res->h_aliases == NULL) { in copyhostent() 73 res->h_aliases[i] = NULL; in copyhostent() 75 res->h_aliases[i] = strdup (h->h_aliases[i]); in copyhostent() 76 if (res->h_aliases[i] == NULL) { in copyhostent()
|
/dports/dns/libbind/libbind-6.0/irs/ |
H A D | gethostent_r.c | 172 len += strlen(he->h_aliases[i]) + 1; in copy_hostent() 206 hptr->h_aliases = ptr; in copy_hostent() 207 for (i = 0 ; he->h_aliases[i]; i++) { in copy_hostent() 208 n = strlen(he->h_aliases[i]) + 1; in copy_hostent() 209 strcpy(cp, he->h_aliases[i]); in copy_hostent() 210 hptr->h_aliases[i] = cp; in copy_hostent() 213 hptr->h_aliases[i] = NULL; in copy_hostent() 255 hptr->h_aliases = hdptr->host_aliases; in copy_hostent() 258 strcpy(cp, he->h_aliases[i]); in copy_hostent() 259 hptr->h_aliases[i] = cp; in copy_hostent() [all …]
|
/dports/dns/bind911/bind-9.11.37/lib/lwres/ |
H A D | getipnode.c | 257 he.h_aliases = aliases; in lwres_getipnodebyname() 478 cpp = he->h_aliases; in lwres_freehostent() 485 free(he->h_aliases); in lwres_freehostent() 857 cpp = he1->h_aliases; in copyandmerge() 951 npp = he->h_aliases; in copyandmerge() 953 cpp = he1->h_aliases; in copyandmerge() 955 cpp = he2->h_aliases; in copyandmerge() 991 cpp = he->h_aliases; in copyandmerge() 996 free(he->h_aliases); in copyandmerge() 1083 free(he->h_aliases); in hostfromaddr() [all …]
|
H A D | gethost.c | 305 for (i = 0; src->h_aliases[i]; i++, nptr++) { in copytobuf() 306 len += strlen(src->h_aliases[i]) + 1; in copytobuf() 347 hptr->h_aliases = ptr; in copytobuf() 348 for (i = 0; src->h_aliases[i]; i++) { in copytobuf() 349 n = strlen(src->h_aliases[i]) + 1; in copytobuf() 350 strcpy(cp, src->h_aliases[i]); in copytobuf() 351 hptr->h_aliases[i] = cp; in copytobuf() 354 hptr->h_aliases[i] = NULL; in copytobuf()
|
/dports/devel/wasi-libc/wasi-libc-ad5133410f66b93a2381db5b542aad5e0964db96/libc-top-half/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/lang/zig/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/lang/zig/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/devel/emscripten/emscripten-2.0.3/system/lib/libc/musl/src/network/ |
H A D | gethostbyname2_r.c | 56 h->h_aliases = (void *)buf; in gethostbyname2_r() 68 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 73 h->h_aliases[1] = buf; in gethostbyname2_r() 74 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 75 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 76 } else h->h_aliases[1] = 0; in gethostbyname2_r() 78 h->h_aliases[2] = 0; in gethostbyname2_r()
|
H A D | gethostbyname.c | 17 static char *h_aliases[3]; 48 h.h_aliases = h_aliases; 49 h.h_aliases[0] = h_canon; 50 h.h_aliases[1] = strcmp(h_canon, name) ? (char *)name : 0;
|
/dports/devel/tinygo/tinygo-0.14.1/lib/wasi-libc/libc-top-half/musl/src/network/ |
H A D | gethostbyname2_r.c | 54 h->h_aliases = (void *)buf; in gethostbyname2_r() 66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r() 71 h->h_aliases[1] = buf; in gethostbyname2_r() 72 strcpy(h->h_aliases[1], name); in gethostbyname2_r() 73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r() 74 } else h->h_aliases[1] = 0; in gethostbyname2_r() 76 h->h_aliases[2] = 0; in gethostbyname2_r()
|
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/appweb/ejs-2.0/mpr/UNIX/ |
H A D | mprPlatform.c | 180 hp->h_aliases = 0; in mprGetHostByName() 194 for (count = 0; ip->h_aliases[count] != 0; ) { in mprGetHostByName() 199 hp->h_aliases = mprAlloc(hp, count * sizeof(char*)); in mprGetHostByName() 200 for (i = 0; ip->h_aliases[i] != 0; i++) { in mprGetHostByName() 201 hp->h_aliases[i] = mprStrdup(hp, ip->h_aliases[i]); in mprGetHostByName() 203 hp->h_aliases[i] = 0; in mprGetHostByName()
|
/dports/net-im/kopete/kopete-21.12.3/protocols/jabber/libjingle/talk/base/ |
H A D | nethelpers.cc | 66 while (ent->h_aliases[num_aliases]) { in DeepCopyHostent() 67 total_len += sizeof(char*) + strlen(ent->h_aliases[num_aliases]) + 1; in DeepCopyHostent() 88 result->h_aliases = reinterpret_cast<char**>(p); in DeepCopyHostent() 91 result->h_aliases[i] = p; in DeepCopyHostent() 92 memcpy(p, ent->h_aliases[i], strlen(ent->h_aliases[i]) + 1); in DeepCopyHostent() 93 p += strlen(ent->h_aliases[i]) + 1; in DeepCopyHostent() 95 result->h_aliases[num_aliases] = NULL; in DeepCopyHostent()
|
/dports/net/gnu-radius/radius-1.6.1/lib/ |
H A D | gethost_r.c | 48 for (i = 0; h_in->h_aliases[i]; i++) in LOCK_DECLARE() 49 len += sizeof(char*) + strlen(h_in->h_aliases[i]) + 1; in LOCK_DECLARE() 82 h_out->h_aliases = ptr; in LOCK_DECLARE() 84 for (i = 0; h_in->h_aliases[i]; i++) { in LOCK_DECLARE() 85 len = strlen (h_in->h_aliases[i]) + 1; in LOCK_DECLARE() 86 memcpy(base, h_in->h_aliases[i], len); in LOCK_DECLARE()
|
/dports/dns/py-pycares/pycares-3.1.1/deps/c-ares/src/ |
H A D | ares__get_hostent.c | 172 hostent->h_aliases = NULL; in ares__get_hostent() 194 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 195 if (!hostent->h_aliases) in ares__get_hostent() 197 alias = hostent->h_aliases; in ares__get_hostent() 243 if (hostent->h_aliases) in ares__get_hostent() 245 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() 247 ares_free(hostent->h_aliases); in ares__get_hostent()
|
/dports/dns/c-ares/c-ares-1.17.2/src/lib/ |
H A D | ares__get_hostent.c | 171 hostent->h_aliases = NULL; in ares__get_hostent() 193 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 194 if (!hostent->h_aliases) in ares__get_hostent() 196 alias = hostent->h_aliases; in ares__get_hostent() 242 if (hostent->h_aliases) in ares__get_hostent() 244 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() 246 ares_free(hostent->h_aliases); in ares__get_hostent()
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/lib/c-ares-809d5e84/src/lib/ |
H A D | ares__get_hostent.c | 171 hostent->h_aliases = NULL; in ares__get_hostent() 193 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 194 if (!hostent->h_aliases) in ares__get_hostent() 196 alias = hostent->h_aliases; in ares__get_hostent() 242 if (hostent->h_aliases) in ares__get_hostent() 244 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() 246 ares_free(hostent->h_aliases); in ares__get_hostent()
|
/dports/www/node10/node-v10.24.1/deps/cares/src/ |
H A D | ares__get_hostent.c | 172 hostent->h_aliases = NULL; in ares__get_hostent() 194 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 195 if (!hostent->h_aliases) in ares__get_hostent() 197 alias = hostent->h_aliases; in ares__get_hostent() 243 if (hostent->h_aliases) in ares__get_hostent() 245 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() 247 ares_free(hostent->h_aliases); in ares__get_hostent()
|
/dports/devel/py-grpcio/grpcio-1.43.0/third_party/cares/cares/ |
H A D | ares__get_hostent.c | 172 hostent->h_aliases = NULL; in ares__get_hostent() 194 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent() 195 if (!hostent->h_aliases) in ares__get_hostent() 197 alias = hostent->h_aliases; in ares__get_hostent() 243 if (hostent->h_aliases) in ares__get_hostent() 245 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent() 247 ares_free(hostent->h_aliases); in ares__get_hostent()
|
/dports/net/nss-pam-ldapd/nss-pam-ldapd-0.9.11/nslcd/ |
H A D | common.c | 153 for (i = 0; host->h_aliases[i] != NULL; i++) in getfqdn() 155 if ((strncasecmp(hostname, host->h_aliases[i], hostnamelen) == 0) && in getfqdn() 156 (host->h_aliases[i][hostnamelen] == '.') && in getfqdn() 157 (host->h_aliases[i][hostnamelen + 1] != '\0')) in getfqdn() 159 fqdn = strdup(host->h_aliases[i]); in getfqdn() 170 for (i = 0; host->h_aliases[i] != NULL; i++) in getfqdn() 172 if (strchr(host->h_aliases[i], '.') != NULL) in getfqdn() 174 fqdn = strdup(host->h_aliases[i]); in getfqdn()
|
/dports/net/nss-pam-ldapd-sasl/nss-pam-ldapd-0.9.11/nslcd/ |
H A D | common.c | 153 for (i = 0; host->h_aliases[i] != NULL; i++) in getfqdn() 155 if ((strncasecmp(hostname, host->h_aliases[i], hostnamelen) == 0) && in getfqdn() 156 (host->h_aliases[i][hostnamelen] == '.') && in getfqdn() 157 (host->h_aliases[i][hostnamelen + 1] != '\0')) in getfqdn() 159 fqdn = strdup(host->h_aliases[i]); in getfqdn() 170 for (i = 0; host->h_aliases[i] != NULL; i++) in getfqdn() 172 if (strchr(host->h_aliases[i], '.') != NULL) in getfqdn() 174 fqdn = strdup(host->h_aliases[i]); in getfqdn()
|