300: */
301: n = strlen(bp) + 1; /* for the \0 */
302: if (n >= MAXHOSTNAMELEN) {
368: *ap++ = bp;
369: n = strlen(bp) + 1; /* for the \0 */
370: if (n >= MAXHOSTNAMELEN) {
375: /* Get canonical name. */
376: n = strlen(tbuf) + 1; /* for the \0 */
377: if (n > ep - bp || n >= MAXHOSTNAMELEN) {
404: /* Get canonical name. */
405: n = strlen(tbuf) + 1; /* for the \0 */
406: if (n > ep - bp || n >= MAXHOSTNAMELEN) {
456: if (n != -1) {
457: n = strlen(bp) + 1; /* for the \0 */
458: if (n >= MAXHOSTNAMELEN) {
467: if (res->options & RES_USE_INET6) {
468: n = strlen(bp) + 1; /* for the \0 */
469: if (n >= MAXHOSTNAMELEN) {
507: host.h_name = bp;
508: nn = strlen(bp) + 1; /* for the \0 */
509: bp += nn;
558: if (!host.h_name) {
559: n = strlen(qname) + 1; /* for the \0 */
560: if (n > ep - bp || n >= MAXHOSTNAMELEN)
727: if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyname",
728: default_dns_files, name, strlen(name), af) != NS_SUCCESS)
729: return NULL;
1003:
1004: bufsize = strlen(p->h_name) + 2 +
1005: MAXADDRS * p->h_length +
1007: for (cp = p->h_aliases; *cp != NULL; cp++)
1008: bufsize += strlen(*cp) + 1;
1009:
1529: r = yp_match(__ypdomain, map, name,
1530: (int)strlen(name), &__ypcurrent, &__ypcurrentlen);
1531: if (r == 0)
1573: r = yp_match(__ypdomain, map, name,
1574: (int)strlen(name), &__ypcurrent, &__ypcurrentlen);
1575: if (r == 0)