/dragonfly/usr.sbin/lpr/pac/ |
H A D | pac.c | 77 char *h_name; /* Name of this user */ member 266 printf("%-24s %7.2f %4d $%6.2f\n", hp->h_name, in dumpit() 295 hp->h_name, hp->h_count); in rewrite() 330 hp->h_name = (char *) calloc(sizeof(char), strlen(name)+1); in enter() 331 strcpy(hp->h_name, name); in enter() 352 if (strcmp(hp->h_name, name) == 0) in lookup() 404 r = strcmp(h1->h_name, h2->h_name); in qucmp()
|
/dragonfly/usr.sbin/bootparamd/bootparamd/ |
H A D | bootparamd.c | 69 if (debug) warnx("this is host %s", he->h_name); in bootparamproc_whoami_1_svc() 70 if (dolog) syslog(LOG_NOTICE,"This is host %s\n", he->h_name); in bootparamproc_whoami_1_svc() 72 strncpy(askname, he->h_name, sizeof(askname)); in bootparamproc_whoami_1_svc() 128 strncpy(askname, he->h_name, sizeof(askname)); in bootparamproc_getfile_1_svc() 208 if (he && !strcmp(he->h_name, askname)) match = 1; in getthefile() 311 if (he && !strcmp(askname, he->h_name)) { in checkhost() 328 if (he && !strcmp(askname, he->h_name)) { in checkhost() 330 snprintf(hostname, len, "%s", he->h_name); in checkhost()
|
/dragonfly/lib/libc/net/ |
H A D | gethostnamadr.c | 111 len += strlen(he->h_name) + 1; in __copy_hostent() 137 n = strlen(he->h_name) + 1; in __copy_hostent() 138 strcpy(cp, he->h_name); in __copy_hostent() 139 hptr->h_name = cp; in __copy_hostent() 285 if (ht->h_name != NULL) in host_marshal_func() 286 desired_size += strlen(ht->h_name) + 1; in host_marshal_func() 322 if (new_ht.h_name != NULL) { in host_marshal_func() 323 size = strlen(new_ht.h_name); in host_marshal_func() 324 memcpy(p, new_ht.h_name, size); in host_marshal_func() 325 new_ht.h_name = p; in host_marshal_func() [all …]
|
H A D | gethostbydns.c | 154 he->h_name = NULL; in gethostanswer() 198 he->h_name = bp; in gethostanswer() 201 qname = he->h_name; in gethostanswer() 264 he->h_name = bp; in gethostanswer() 319 he->h_name = bp; in gethostanswer() 334 he->h_name = bp; in gethostanswer() 349 if (strcasecmp(he->h_name, bp) != 0) { in gethostanswer() 351 AskedForGot, he->h_name, bp); in gethostanswer() 362 he->h_name = bp; in gethostanswer() 411 if (!he->h_name) { in gethostanswer() [all …]
|
H A D | name6.c | 294 if (hp2 && strcmp(hp->h_name, hp2->h_name) == 0) { in getipnodebyname() 409 if (hp->h_name != NULL) in _hpcopy() 410 size += strlen(hp->h_name) + 1; in _hpcopy() 437 if (hp->h_name != NULL) { in _hpcopy() 438 nhp->h_name = cp; in _hpcopy() 439 strcpy(cp, hp->h_name); in _hpcopy() 442 nhp->h_name = NULL; in _hpcopy() 480 hp->h_name = (char *)name; in _hpaddr() 511 hp->h_name = (hp1->h_name != NULL ? hp1->h_name : hp2->h_name); in _hpmerge()
|
H A D | getnameinfo.c | 258 p = strchr(hp->h_name, '.'); in getnameinfo_inet() 263 if (strlen(hp->h_name) + 1 > hostlen) { in getnameinfo_inet() 267 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
|
H A D | gethostbyht.c | 137 he->h_name = bp; in gethostent_p() 255 if (strcasecmp(he.h_name, name) == 0) in _ht_gethostbyname()
|
/dragonfly/bin/hostname/ |
H A D | hostname.c | 255 if (sethostname(hst->h_name, (int)strlen(hst->h_name))) in main() 285 if (sethostname(hst->h_name, (int)strlen(hst->h_name))) in main()
|
/dragonfly/contrib/tcp_wrappers/ |
H A D | socket.c | 340 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);
|
H A D | scaffold.c | 154 if (STR_NE(host, hp->h_name)) { 156 tcpd_warn("(official name: %.*s)", STRING_LENGTH, hp->h_name);
|
/dragonfly/usr.bin/talk/ |
H A D | io.c | 65 hp2 = gethostbyname(hp->h_name); in talk() 71 his_machine_name = strdup(hp->h_name); in talk()
|
/dragonfly/usr.sbin/bootparamd/callbootd/ |
H A D | callbootd.c | 45 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_whoami() 57 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_getfile()
|
/dragonfly/usr.bin/w/ |
H A D | w.c | 386 p = hp->h_name; in main() 387 p += strlen(hp->h_name); in main() 389 if (p > hp->h_name && in main() 393 p = hp->h_name; in main()
|
/dragonfly/lib/libutil/ |
H A D | realhostname.c | 57 strlcpy(trimmed, hp->h_name, sizeof(trimmed)); in realhostname() 62 strlcpy(lookup, hp->h_name, sizeof(lookup)); in realhostname()
|
/dragonfly/libexec/talkd/ |
H A D | process.c | 158 rp->answer = announce(mp, hp->h_name); in do_announce() 168 rp->answer = announce(mp, hp->h_name); in do_announce()
|
/dragonfly/lib/libcompat/4.3/ |
H A D | rexec.c | 451 *ahost = hp->h_name; in rexec() 452 ruserpass(hp->h_name, &name, &pass, &acct); in rexec() 471 perror(hp->h_name); in rexec()
|
/dragonfly/lib/libbluetooth/ |
H A D | bluetooth.c | 68 if (strcasecmp(p->h_name, name) == 0) in bt_gethostbyname() 133 host.h_name = cp; in bt_gethostent()
|
/dragonfly/tools/tools/net80211/wlanwatch/ |
H A D | wlanwatch.c | 166 if ((cp = strchr(hp->h_name, '.')) && in routename() 169 cp = hp->h_name; in routename()
|
/dragonfly/sbin/routed/rtquery/ |
H A D | rtquery.c | 592 printf("%s (%s):", hp->h_name, in rip_input() 671 name = hp->h_name; in rip_input() 737 (hp != NULL) ? hp->h_name : inet_ntoa(in), in rip_input()
|
/dragonfly/contrib/tcpdump/ |
H A D | addrtoname.c | 156 host.h_name = hostbuf; in win32_gethostbyaddr() 169 strlcpy(host.h_name, hname, NI_MAXHOST); in win32_gethostbyaddr() 313 p->name = strdup(hp->h_name); in ipaddr_string() 376 p->name = strdup(hp->h_name); in ip6addr_string()
|
/dragonfly/usr.sbin/ypserv/ |
H A D | yp_dnslookup.c | 80 len = strlen(addr) + 1 + strlen(hp->h_name); in parse() 89 snprintf(result, sizeof(result), "%s %s", addr, hp->h_name); in parse()
|
/dragonfly/usr.bin/newkey/ |
H A D | newkey.c | 124 (void)host2netname(name, h->h_name, NULL); in main()
|
/dragonfly/sys/vfs/hpfs/ |
H A D | hpfs_subr.c | 632 bcopy(dep->de_name,hp->h_name,dep->de_namelen); in hpfs_validateparent() 633 hp->h_name[dep->de_namelen] = '\0'; in hpfs_validateparent() 699 error = hpfs_genlookupbyname (dhp, hp->h_name, hp->h_namelen, in hpfs_updateparent()
|
/dragonfly/usr.sbin/traceroute/ |
H A D | traceroute.c | 487 if ((hostname = strdup(hp->h_name)) == NULL) in main() 1164 if ((cp = strchr(hp->h_name, '.')) != NULL && in inetname() 1167 strlcpy(line, hp->h_name, sizeof(line)); in inetname()
|
/dragonfly/include/ |
H A D | netdb.h | 106 char *h_name; /* official name of host */ member
|