Home
last modified time | relevance | path

Searched refs:hname (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/sys/sys/
H A Dmodule_khelp.h73 #define KHELP_DECLARE_MOD_UMA(hname, hdata, hhooks, version, size, ctor, dtor) \ argument
74 static struct khelp_modevent_data kmd_##hname = { \
75 .name = #hname, \
83 static moduledata_t h_##hname = { \
84 .name = #hname, \
86 .priv = &kmd_##hname \
88 DECLARE_MODULE(hname, h_##hname, SI_SUB_KHELP, SI_ORDER_ANY); \
89 MODULE_VERSION(hname, version)
91 #define KHELP_DECLARE_MOD(hname, hdata, hhooks, version) \ argument
92 KHELP_DECLARE_MOD_UMA(hname, hdata, hhooks, version, 0, NULL, NULL)
H A Dkhelp.h71 int32_t khelp_get_id(char *hname);
/freebsd/contrib/tcp_wrappers/
H A Dsocket.c173 char *ap = NULL, *rap, hname[NI_MAXHOST]; in sock_hostname() local
205 err = getnameinfo(sin, salen, hname, sizeof(hname), in sock_hostname()
210 STRN_CPY(host->name, hname, sizeof(host->name)); in sock_hostname()
310 getnameinfo(sin, salen, hname, sizeof(hname), in sock_hostname()
313 hname, STRING_LENGTH, in sock_hostname()
/freebsd/crypto/heimdal/lib/roken/
H A Diruserok.c95 char hname[MaxHostNameLen]; in __ivaliduser() local
112 strlcpy(hname, hp->h_name, sizeof(hname)); in __ivaliduser()
153 (char *)&hname, NULL, ypdomain); in __ivaliduser()
160 (char *)&hname, NULL, ypdomain)) in __ivaliduser()
/freebsd/lib/libsecureboot/openpgp/
H A Dopgp_sig.c193 const char *hname;
211 return (hmp->hname);
300 const char *hname;
321 } else if (!(hname = get_hname(sig->hash_alg))) {
353 warnx("unsupported hash algorithm: %s", hname);
366 md = EVP_get_digestbyname(hname);
374 rc = verify_digest(key->key, hname, mdata, mlen,
/freebsd/lib/libc/rpc/
H A Dauth_time.c142 char hname[256]; in get_server() local
172 snprintf(hname, sizeof(hname), "%s.0.111", inet_ntoa(*a)); in get_server()
173 ep->uaddr = strdup(hname); in get_server()
187 snprintf(hname, sizeof(hname), "%s.0.111", inet_ntoa(*a)); in get_server()
188 ep->uaddr = strdup(hname); in get_server()
/freebsd/usr.bin/usbhidctl/
H A Dusbhid.c73 char hname[1000], *tmp1, *tmp2; in parceargs() local
157 snprintf(hname, sizeof(hname), "%s%s%s:%s", in parceargs()
161 t = strlen(hname) - strlen(var->name); in parceargs()
163 if (strcmp(hname + t, var->name) != 0) in parceargs()
165 if (hname[t - 1] != '.') in parceargs()
167 } else if (strcmp(hname, var->name) != 0) in parceargs()
/freebsd/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c115 char hname[MAXHOSTNAMELEN + 2]; in main() local
175 if (gethostname((char *)&hname, sizeof(hname)) == -1) in main()
177 mastername = (char *)&hname; in main()
/freebsd/crypto/heimdal/lib/sl/
H A Dslc-gram.y692 char hname[PATH_MAX]; variable
701 cprint(0, "#include \"%s\"\n\n", hname); in gen()
767 strlcpy(hname, cname, sizeof(hname)); in main()
769 strlcat(hname, ".h", sizeof(hname)); in main()
777 hfile = fopen(hname, "w"); in main()
779 err(1, "%s", hname); in main()
H A Dslc-gram.c2201 char hname[PATH_MAX]; variable
2210 cprint(0, "#include \"%s\"\n\n", hname); in gen()
2276 strlcpy(hname, cname, sizeof(hname)); in main()
2278 strlcat(hname, ".h", sizeof(hname)); in main()
2286 hfile = fopen(hname, "w"); in main()
2288 err(1, "%s", hname); in main()
/freebsd/lib/libc/net/
H A Drcmd.c566 char hname[MAXHOSTNAMELEN]; in __ivaliduser_sa() local
578 if (getnameinfo(raddr, salen, hname, sizeof(hname), NULL, 0, in __ivaliduser_sa()
580 hname[0] = '\0'; in __ivaliduser_sa()
619 hostok = hname[0] != '\0' && in __ivaliduser_sa()
620 innetgr(&buf[2], hname, NULL, ypdomain); in __ivaliduser_sa()
627 if (hname[0] == '\0' || in __ivaliduser_sa()
628 innetgr(&buf[2], hname, NULL, ypdomain)) in __ivaliduser_sa()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_common.kshlib104 typeset hname=$(hostname)
106 hname=$hname:$(zonename)
116 if ! grep -q "$cmd \[user $uid ($user) on $hname$suffix\]" $NEW_HISTORY; then
/freebsd/contrib/ntp/ntpdc/
H A Dntpdc.c403 const char *hname in openhost() argument
418 if (*hname == '[') { in openhost()
419 cp = strchr(hname + 1, ']'); in openhost()
420 if (!cp || (octets = (size_t)(cp - hname) - 1) >= sizeof(name)) { in openhost()
425 memcpy(name, hname + 1, octets); in openhost()
427 hname = name; in openhost()
444 a_info = getaddrinfo(hname, service, &hints, &ai); in openhost()
454 a_info = getaddrinfo(hname, service, &hints, &ai); in openhost()
478 a_info = getaddrinfo(hname, service, &hints, &ai); in openhost()
1459 const char *hname, in getnetnum() argument
[all …]
/freebsd/contrib/tnftp/src/
H A Dutil.c1349 char hname[NI_MAXHOST]; in ftp_connect() local
1354 hname, sizeof(hname), sname, sizeof(sname), in ftp_connect()
1356 strlcpy(hname, "?", sizeof(hname)); in ftp_connect()
1386 "save", hname, sname); in ftp_connect()
1392 hname, sname); in ftp_connect()
1410 warn("Can't connect to `%s:%s'", hname, sname); in ftp_connect()
1456 "restore", hname, sname); in ftp_connect()
H A Dftp.c198 char hname[NI_MAXHOST], sname[NI_MAXSERV]; in hookup() local
202 hname, sizeof(hname), sname, sizeof(sname), in hookup()
204 strlcpy(hname, "?", sizeof(hname)); in hookup()
209 fprintf(ttyout, "Trying %s:%s ...\n", hname, sname); in hookup()
214 hname, sname); in hookup()
1540 char hname[NI_MAXHOST], sname[NI_MAXSERV]; in initconn() local
1564 tmp.su_len, hname, sizeof(hname), sname, in initconn()
1571 result = command("EPRT |%u|%s|%s|", af, hname, in initconn()
H A Dfetch.c718 char hname[NI_MAXHOST], sname[NI_MAXSERV]; in fetch_url() local
722 hname, sizeof(hname), sname, sizeof(sname), in fetch_url()
724 strlcpy(hname, "?", sizeof(hname)); in fetch_url()
730 hname, sname); in fetch_url()
738 "`%s:%s'", hname, sname); in fetch_url()
/freebsd/sbin/routed/rtquery/
H A Drtquery.c798 char hname[MAXHOSTNAMELEN+1]; in getnet() local
806 if (i > (int)sizeof(hname)-1) /* name too long */ in getnet()
808 memmove(hname, name, i); in getnet()
809 hname[i] = '\0'; in getnet()
811 name = hname; in getnet()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd.c837 const char *hname; in socklist_recv_sock() local
854 hname = LocalHostName; in socklist_recv_sock()
856 hname = cvthname(sa); in socklist_recv_sock()
858 if (validate(sa, hname) == 0) { in socklist_recv_sock()
859 dprintf("Message from %s was ignored.", hname); in socklist_recv_sock()
863 parsemsg(hname, line); in socklist_recv_sock()
2209 static char hname[NI_MAXHOST], ip[NI_MAXHOST]; in cvthname() local
2223 error = cap_getnameinfo(cap_net, f, f->sa_len, hname, sizeof(hname), in cvthname()
2229 hl = strlen(hname); in cvthname()
2230 if (hl > 0 && hname[hl-1] == '.') in cvthname()
[all …]
/freebsd/sbin/routed/
H A Dparms.c936 char hname[MAXHOSTNAMELEN+1]; in getnet() local
944 if (i > (int)sizeof(hname)-1) /* name too long */ in getnet()
946 memmove(hname, name, i); in getnet()
947 hname[i] = '\0'; in getnet()
949 name = hname; in getnet()
/freebsd/libexec/ftpd/
H A Dftpd.c2367 char hname[NI_MAXHOST]; in statcmd() local
2377 hname, sizeof(hname) - 1, NULL, 0, NI_NUMERICHOST)) { in statcmd()
2378 hname[sizeof(hname) - 1] = 0; in statcmd()
2379 if (strcmp(hname, remotehost) != 0) in statcmd()
2380 printf(" (%s)", hname); in statcmd()
2482 hname, sizeof(hname) - 1, NULL, 0, in statcmd()
2484 hname[sizeof(hname) - 1] = 0; in statcmd()
2487 af, hname, htons(tmp.su_port)); in statcmd()
/freebsd/sys/kern/
H A Dkern_khelp.c236 khelp_get_id(char *hname) in khelp_get_id() argument
245 if (strncmp(h->h_name, hname, HELPER_NAME_MAXLEN) == 0) { in khelp_get_id()
/freebsd/contrib/ntp/ntpq/
H A Dntpq.c665 const char *hname,
681 if (*hname == '[') { in openhost()
682 cp = strchr(hname + 1, ']'); in openhost()
683 if (!cp || (octets = (size_t)(cp - hname) - 1) >= sizeof(name)) { in openhost()
688 memcpy(name, hname + 1, octets); in openhost()
690 hname = name; in openhost()
707 a_info = getaddrinfo(hname, svc, &hints, &ai); in openhost()
717 a_info = getaddrinfo(hname, svc, &hints, &ai); in openhost()
742 a_info = getaddrinfo(hname, svc, &hints, &ai); in openhost()
1978 const char *hname,
669 openhost(const char * hname,int fam) openhost() argument
1982 getnetnum(const char * hname,sockaddr_u * num,char * fullhost,int af) getnetnum() argument
[all...]
/freebsd/contrib/tcpdump/
H A Daddrtoname.c148 char hname[NI_MAXHOST]; in win32_gethostbyaddr() local
161 hname, sizeof(hname), NULL, 0, 0)) { in win32_gethostbyaddr()
164 strlcpy(host.h_name, hname, NI_MAXHOST); in win32_gethostbyaddr()
/freebsd/lib/libfetch/
H A Dftp.c790 char hname[INET6_ADDRSTRLEN]; in ftp_transfer() local
836 hname, sizeof(hname), in ftp_transfer()
838 e = ftp_cmd(conn, "EPRT |%d|%s|%d|", 2, hname, in ftp_transfer()
/freebsd/sys/netinet/
H A Din_pcb.h400 #define INPCBSTORAGE_DEFINE(prot, ppcb, lname, zname, iname, hname) \ argument
414 .ips_hashlock_name = hname, \

12