| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | hostname.c | 16 static char hostbuf[MAXHOSTNAMELEN+1]; in hostname() local 34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); in hostname() 35 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname() 36 return hostbuf; in hostname() 42 strncpy(hostbuf, np->n_name, sizeof(hostbuf)); in hostname() 43 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname() 44 return hostbuf; in hostname() 53 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); in hostname() 54 hostbuf[MAXHOSTNAMELEN] = '\0'; in hostname() 55 return hostbuf; in hostname()
|
| /netbsd-src/external/bsd/libbind/dist/irs/ |
| H A D | nis_ho.c | 83 char hostbuf[8*1024]; member 198 strcpy(pvt->hostbuf, yp_multi); in ho_byname2() 199 strncat(pvt->hostbuf, name, sizeof(pvt->hostbuf) - sizeof(yp_multi)); in ho_byname2() 200 pvt->hostbuf[sizeof(pvt->hostbuf) - 1] = '\0'; in ho_byname2() 201 for (r = sizeof(yp_multi) - 1; pvt->hostbuf[r] != '\0'; r++) in ho_byname2() 202 if (isupper((unsigned char)pvt->hostbuf[r])) in ho_byname2() 203 tolower(pvt->hostbuf[r]); in ho_byname2() 205 tmp = pvt->hostbuf; in ho_byname2() 209 tmp = pvt->hostbuf + sizeof(yp_multi) - 1; in ho_byname2() 214 tmp = pvt->hostbuf; in ho_byname2() [all …]
|
| H A D | gethostent_r.c | 231 cp = hdptr->hostbuf; in copy_hostent() 232 eob = hdptr->hostbuf + sizeof(hdptr->hostbuf); in copy_hostent()
|
| H A D | dns_ho.c | 131 char hostbuf[8*1024]; member 734 bp = pvt->hostbuf; in gethostans() 735 ep = pvt->hostbuf + sizeof(pvt->hostbuf); in gethostans() 942 if (bp + n > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) { in gethostans() 1053 if (bp + addrlen > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) in add_hostent()
|
| H A D | lcl_ho.c | 113 char hostbuf[8*1024]; member 341 bufp = pvt->hostbuf; in ho_next() 342 bufsiz = sizeof pvt->hostbuf; in ho_next()
|
| /netbsd-src/libexec/fingerd/ |
| H A D | fingerd.c | 78 char hostbuf[MAXHOSTNAMELEN]; in main() local 131 hostbuf, sizeof(hostbuf), NULL, 0, 0); in main() 132 lp = hostbuf; in main()
|
| /netbsd-src/crypto/dist/ipsec-tools/src/racoon/ |
| H A D | getcertsbyname.c | 213 char hostbuf[1024]; /* XXX */ local 265 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf)); 278 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf));
|
| H A D | isakmp.c | 2838 char hostbuf[NI_MAXHOST]; local 2855 if (getnameinfo(from, sysdep_sa_len(from), hostbuf, sizeof(hostbuf), 2858 strlcpy(hostbuf, "?", sizeof(hostbuf)); 2861 printf("%s:%s", hostbuf, portbuf); 2866 if (getnameinfo(my, sysdep_sa_len(my), hostbuf, sizeof(hostbuf), 2869 strlcpy(hostbuf, "?", sizeof(hostbuf)); 2872 printf("%s:%s", hostbuf, portbuf);
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | auth-rhosts.c | 87 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; in check_rhosts_file() local 107 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, in check_rhosts_file() 127 host = hostbuf; in check_rhosts_file()
|
| /netbsd-src/usr.bin/finger/ |
| H A D | lprint.c | 177 char timebuf[128], ttybuf[64], hostbuf[512]; in lprint() local 249 hostlen = visify(hostbuf, sizeof(hostbuf), w->host); in lprint() 273 (void)printf(" from %s", hostbuf); in lprint()
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | util-int.c | 875 char *fqdn, hostbuf[MAXHOSTNAMELEN+1]; in ldap_pvt_get_fqdn() local 878 if( gethostname( hostbuf, MAXHOSTNAMELEN ) == 0 ) { in ldap_pvt_get_fqdn() 879 hostbuf[MAXHOSTNAMELEN] = '\0'; in ldap_pvt_get_fqdn() 880 name = hostbuf; in ldap_pvt_get_fqdn()
|
| /netbsd-src/lib/libc/net/ |
| H A D | getaddrinfo.c | 1718 char hostbuf[8*1024]; in getanswer() local 1750 bp = hostbuf; in getanswer() 1751 ep = hostbuf + sizeof hostbuf; in getanswer() 2306 char hostbuf[8*1024]; in _gethtent() local 2314 if (!(p = fgets(hostbuf, (int)sizeof hostbuf, *hostf))) in _gethtent()
|
| /netbsd-src/external/bsd/ipf/dist/tools/ |
| H A D | ipfstat.c | 1967 static char hostbuf[MAXHOSTNAMELEN+1]; local 1974 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); 1975 hostbuf[MAXHOSTNAMELEN] = '\0'; 1976 return hostbuf;
|
| /netbsd-src/usr.bin/last/ |
| H A D | want.c | 80 char hostbuf[sizeof(bp->ut_host) + 1], *hostp; in wtmp() local
|
| /netbsd-src/external/bsd/ipf/dist/FWTK/ |
| H A D | fwtkp | 443 + char buf[255], hostbuf[255]; 456 + gethostname(hostbuf,254); 457 + hp=gethostbyname(hostbuf);
|
| H A D | fwtk_transparent.diff | 609 + static char buf[255], hostbuf[255]; 623 + gethostname(hostbuf,254); 624 + hp=gethostbyname(hostbuf);
|
| /netbsd-src/external/bsd/libbind/dist/include/ |
| H A D | netdb.h | 277 char hostbuf[_HOSTBUFSIZE]; member
|
| /netbsd-src/usr.bin/rpcinfo/ |
| H A D | rpcinfo.c | 604 char hostbuf[NI_MAXHOST]; local 608 if (getnameinfo(sa, (socklen_t)sa->sa_len, hostbuf, NI_MAXHOST, NULL, 612 hostname = hostbuf;
|