Searched refs:h_name (Results 1 - 25 of 94) sorted by relevance

1234

/freebsd-10.0-release/contrib/atf/test-programs/
H A Dcommon.sh38 for h_name in "${@}"; do
39 echo ${srcdir}/${h_name}
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dhostent_find_fqdn.c39 * Try to find a fqdn (with `.') in he if possible, else return h_name
45 const char *ret = he->h_name;
H A Dcopyhostent.c52 res->h_name = NULL;
57 res->h_name = strdup (h->h_name);
58 if (res->h_name == NULL) {
H A Dfreehostent.c47 free (h->h_name);
/freebsd-10.0-release/contrib/ntp/libntp/
H A Dnumtohost.c36 (void) strncpy(bp, hp->h_name, LIB_BUFLENGTH-1);
H A Dntp_rfc2553.c308 namelen = min(strlen(hp->h_name), hostlen - 1);
310 strncpy(host, hp->h_name, namelen);
435 ai->ai_canonname = malloc(strlen(hp->h_name) + 1);
438 strcpy(ai->ai_canonname, hp->h_name);
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dhostname.c33 if (hp != NULL && hp->h_name != NULL &&
34 *hp->h_name != '\0') {
35 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
/freebsd-10.0-release/contrib/ntp/arlib/
H A Darplib.h12 char *h_name; /* official name of host */ member in struct:hent
H A Darlib.c229 if (rptr->re_he.h_name)
230 (void)free(rptr->re_he.h_name);
264 rptr->re_he.h_name = NULL;
697 if (!rptr->re_he.h_name)
699 rptr->re_he.h_name = (char *)malloc(len+1);
700 if (!rptr->re_he.h_name)
702 (void)strcpy(rptr->re_he.h_name, ar_hostbuf);
719 if (!rptr->re_he.h_name)
721 rptr->re_he.h_name = (char *)malloc(len);
722 if (!rptr->re_he.h_name)
[all...]
/freebsd-10.0-release/usr.sbin/lpr/pac/
H A Dpac.c88 char *h_name; /* Name of this user */ member in struct:hent
278 printf("%-24s %7.2f %4d $%6.2f\n", hp->h_name,
307 hp->h_name, hp->h_count);
342 hp->h_name = (char *) calloc(sizeof(char), strlen(name)+1);
343 strcpy(hp->h_name, name);
364 if (strcmp(hp->h_name, name) == 0)
416 r = strcmp(h1->h_name, h2->h_name);
/freebsd-10.0-release/usr.bin/xlint/lint2/
H A Dhash.c102 if (strcmp(hte->h_name, s) == 0)
111 hte->h_name = xstrdup(s);
160 free((void *)hte->h_name);
/freebsd-10.0-release/usr.bin/bluetooth/bthost/
H A Dbthost.c95 printf("%s", reverse? he->h_name :
101 reverse? he->h_name :
/freebsd-10.0-release/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c71 if (debug) warnx("this is host %s", he->h_name);
72 if (dolog) syslog(LOG_NOTICE,"This is host %s\n", he->h_name);
74 strncpy(askname, he->h_name, sizeof(askname));
132 strncpy(askname, he->h_name, sizeof(askname));
215 if (he && !strcmp(he->h_name, askname)) match = 1;
321 if (he && !strcmp(askname, he->h_name)) {
338 if (he && !strcmp(askname, he->h_name)) {
340 snprintf(hostname, len, "%s", he->h_name);
/freebsd-10.0-release/usr.sbin/timed/timedc/
H A Dcmds.c211 printf("%s is down\n", hp->h_name);
215 hp->h_name);
218 printf("%s is unreachable\n", hp->h_name);
234 hp->h_name, avg/SECDAY, myname);
238 hp->h_name, -avg/SECDAY, myname);
245 hp->h_name, measure_delta, myname);
248 hp->h_name, myname);
251 hp->h_name, -measure_delta, myname);
/freebsd-10.0-release/tools/regression/lib/libc/nss/
H A Dtest-gethostby.c158 if (src->h_name != NULL) {
159 dest->h_name = strdup(src->h_name);
160 assert(dest->h_name != NULL);
212 free(ht->h_name);
239 if ((ht1->h_name == NULL) || (ht2->h_name == NULL))
244 (strcmp(ht1->h_name, ht2->h_name) != 0))
398 rv = check_addrinfo_for_name(ai, he->h_name);
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c117 hep->h_name = name;
156 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)];
157 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name);
/freebsd-10.0-release/contrib/ldns/compat/
H A Dfake-rfc2553.c74 if (strlcpy(host, hp->h_name, hostlen) >= hostlen)
204 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
/freebsd-10.0-release/contrib/unbound/compat/
H A Dfake-rfc2553.c72 if (strlcpy(host, hp->h_name, hostlen) >= hostlen)
202 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
/freebsd-10.0-release/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen)
210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
/freebsd-10.0-release/lib/libc/net/
H A Dgethostbydns.c160 he->h_name = NULL;
204 he->h_name = bp;
206 /* The qname can be abbreviated, but h_name is now absolute. */
207 qname = he->h_name;
270 he->h_name = bp;
325 he->h_name = bp;
340 he->h_name = bp;
355 if (strcasecmp(he->h_name, bp) != 0) {
357 AskedForGot, he->h_name, bp);
368 he->h_name
[all...]
H A Dgethostnamadr.c119 len += strlen(he->h_name) + 1;
145 n = strlen(he->h_name) + 1;
146 strcpy(cp, he->h_name);
147 hptr->h_name = cp;
293 if (ht->h_name != NULL)
294 desired_size += strlen(ht->h_name) + 1;
330 if (new_ht.h_name != NULL) {
331 size = strlen(new_ht.h_name);
332 memcpy(p, new_ht.h_name, size);
333 new_ht.h_name
[all...]
/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Darp.c94 if (!(ether_hostton(hp->h_name, (struct ether_addr *)ether)))
96 if (!(ether_hostton(hp->h_name, ether)))
/freebsd-10.0-release/usr.bin/talk/
H A Dio.c76 hp2 = gethostbyname(hp->h_name);
82 his_machine_name = strdup(hp->h_name);
/freebsd-10.0-release/contrib/tcp_wrappers/
H A Dsocket.c340 STRN_CPY(host->name, hp->h_name, sizeof(host->name));
365 } else if (STR_NE(host->name, hp->h_name)
375 host->name, STRING_LENGTH, hp->h_name);
400 inet_ntoa(sin->sin_addr), STRING_LENGTH, hp->h_name);
/freebsd-10.0-release/sys/sys/
H A Dmodule_khelp.h52 char h_name[HELPER_NAME_MAXLEN]; member in struct:helper

Completed in 198 milliseconds

1234