Searched refs:hname (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-11-stable/sys/sys/
H A Dmodule_khelp.h73 #define KHELP_DECLARE_MOD_UMA(hname, hdata, hhooks, version, size, ctor, dtor) \
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_KLD, SI_ORDER_ANY); \
89 MODULE_VERSION(hname, version)
91 #define KHELP_DECLARE_MOD(hname, hdat
[all...]
H A Dkhelp.h71 int32_t khelp_get_id(char *hname);
/freebsd-11-stable/sys/i386/ibcs2/
H A Dibcs2_socksys.c145 char hname[MAXHOSTNAMELEN], *dptr; local
149 getcredhostname(td->td_ucred, hname, sizeof(hname));
151 dptr = strchr(hname, '.');
156 dptr = hname + strlen(hname);
168 char hname[MAXHOSTNAMELEN], *ptr; local
172 getcredhostname(td->td_ucred, hname, sizeof(hname));
175 if ( strlen(hname)
[all...]
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Diruserok.c95 char hname[MaxHostNameLen]; local
112 strlcpy(hname, hp->h_name, sizeof(hname));
153 (char *)&hname, NULL, ypdomain);
160 (char *)&hname, NULL, ypdomain))
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dsocket.c177 char *ap = NULL, *rap, hname[NI_MAXHOST]; local
209 err = getnameinfo(sin, salen, hname, sizeof(hname),
214 STRN_CPY(host->name, hname, sizeof(host->name));
314 getnameinfo(sin, salen, hname, sizeof(hname),
317 hname, STRING_LENGTH,
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmeasure.c64 measure(u_long maxmsec, u_long wmsec, char *hname, struct sockaddr_in *addr, int print) argument
263 inet_ntoa(addr->sin_addr), hname);
267 warn("measure %s", hname);
270 syslog(LOG_ERR, "measure %s: %m", hname);
272 syslog(LOG_ERR, "measure: %s did not respond", hname);
277 hname, trials);
/freebsd-11-stable/lib/libc/rpc/
H A Dauth_time.c147 char hname[256]; local
177 snprintf(hname, sizeof(hname), "%s.0.111", inet_ntoa(*a));
178 ep->uaddr = strdup(hname);
192 snprintf(hname, sizeof(hname), "%s.0.111", inet_ntoa(*a));
193 ep->uaddr = strdup(hname);
/freebsd-11-stable/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c116 char hname[MAXHOSTNAMELEN + 2]; local
176 if (gethostname((char *)&hname, sizeof(hname)) == -1)
178 mastername = (char *)&hname;
/freebsd-11-stable/usr.bin/usbhidctl/
H A Dusbhid.c74 char hname[1000], *tmp1, *tmp2; local
158 snprintf(hname, sizeof(hname), "%s%s%s:%s",
162 t = strlen(hname) - strlen(var->name);
164 if (strcmp(hname + t, var->name) != 0)
166 if (hname[t - 1] != '.')
168 } else if (strcmp(hname, var->name) != 0)
/freebsd-11-stable/lib/libc/net/
H A Drcmd.c570 char hname[MAXHOSTNAMELEN]; local
582 if (getnameinfo(raddr, salen, hname, sizeof(hname), NULL, 0,
584 hname[0] = '\0';
623 hostok = hname[0] != '\0' &&
624 innetgr(&buf[2], hname, NULL, ypdomain);
631 if (hname[0] == '\0' ||
632 innetgr(&buf[2], hname, NULL, ypdomain))
/freebsd-11-stable/crypto/heimdal/lib/sl/
H A Dslc-gram.y692 char hname[PATH_MAX];
701 cprint(0, "#include \"%s\"\n\n", hname);
767 strlcpy(hname, cname, sizeof(hname));
769 strlcat(hname, ".h", sizeof(hname));
777 hfile = fopen(hname, "w");
779 err(1, "%s", hname);
H A Dslc-gram.c2204 char hname[PATH_MAX];
2213 cprint(0, "#include \"%s\"\n\n", hname);
2279 strlcpy(hname, cname, sizeof(hname));
2281 strlcat(hname, ".h", sizeof(hname));
2289 hfile = fopen(hname, "w");
2291 err(1, "%s", hname);
2201 char hname[PATH_MAX]; variable
/freebsd-11-stable/contrib/ntp/ntpdc/
H A Dntpdc.c403 const char *hname
418 if (*hname == '[') {
419 cp = strchr(hname + 1, ']');
420 if (!cp || (octets = (size_t)(cp - hname) - 1) >= sizeof(name)) {
425 memcpy(name, hname + 1, octets);
427 hname = name;
444 a_info = getaddrinfo(hname, service, &hints, &ai);
454 a_info = getaddrinfo(hname, service, &hints, &ai);
459 a_info = getaddrinfo(hname, service, &hints, &ai);
1441 const char *hname,
1440 getnetnum( const char *hname, sockaddr_u *num, char *fullhost, int af ) argument
[all...]
/freebsd-11-stable/contrib/tnftp/src/
H A Dutil.c1335 char hname[NI_MAXHOST]; local
1340 hname, sizeof(hname), sname, sizeof(sname),
1342 strlcpy(hname, "?", sizeof(hname));
1372 "save", hname, sname);
1378 hname, sname);
1396 warn("Can't connect to `%s:%s'", hname, sname);
1442 "restore", hname, sname);
H A Dftp.c198 char hname[NI_MAXHOST], sname[NI_MAXSERV]; local
202 hname, sizeof(hname), sname, sizeof(sname),
204 strlcpy(hname, "?", sizeof(hname));
209 fprintf(ttyout, "Trying %s:%s ...\n", hname, sname);
214 hname, sname);
1540 char hname[NI_MAXHOST], sname[NI_MAXSERV]; local
1564 tmp.su_len, hname, sizeof(hname), snam
[all...]
H A Dfetch.c718 char hname[NI_MAXHOST], sname[NI_MAXSERV]; local
722 hname, sizeof(hname), sname, sizeof(sname),
724 strlcpy(hname, "?", sizeof(hname));
730 hname, sname);
738 "`%s:%s'", hname, sname);
/freebsd-11-stable/sbin/routed/rtquery/
H A Drtquery.c817 char hname[MAXHOSTNAMELEN+1]; local
825 if (i > (int)sizeof(hname)-1) /* name too long */
827 memmove(hname, name, i);
828 hname[i] = '\0';
830 name = hname;
/freebsd-11-stable/usr.sbin/syslogd/
H A Dsyslogd.c871 const char *hname; local
888 hname = LocalHostName;
890 hname = cvthname(sa);
892 if (validate(sa, hname) == 0) {
893 dprintf("Message from %s was ignored.", hname);
897 parsemsg(hname, line);
2204 static char hname[NI_MAXHOST], ip[NI_MAXHOST]; local
2218 error = getnameinfo(f, f->sa_len, hname, sizeof(hname),
2224 hl = strlen(hname);
3449 validate(struct sockaddr *sa, const char *hname) argument
[all...]
/freebsd-11-stable/contrib/gcclibs/libcpp/
H A Dfiles.c1045 const char *hname; local
1047 hname = entry->u.file->name;
1049 hname = entry->u.dir->name;
1051 return htab_hash_string (hname);
1060 const char *hname; local
1063 hname = entry->u.file->name;
1065 hname = entry->u.dir->name;
1067 return strcmp (hname, fname) == 0;
/freebsd-11-stable/sys/kern/
H A Dkern_khelp.c237 khelp_get_id(char *hname) argument
246 if (strncmp(h->h_name, hname, HELPER_NAME_MAXLEN) == 0) {
/freebsd-11-stable/contrib/subversion/subversion/svnrdump/
H A Dload_editor.c402 const char *hname = apr_hash_this_key(hi);
407 if (strcmp(hname, SVN_REPOS_DUMPFILE_NODE_PATH) == 0)
409 if (strcmp(hname, SVN_REPOS_DUMPFILE_NODE_KIND) == 0)
411 if (strcmp(hname, SVN_REPOS_DUMPFILE_NODE_ACTION) == 0)
422 if (strcmp(hname, SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_MD5) == 0)
424 if (strcmp(hname, SVN_REPOS_DUMPFILE_NODE_COPYFROM_REV) == 0)
426 if (strcmp(hname, SVN_REPOS_DUMPFILE_NODE_COPYFROM_PATH) == 0)
400 const char *hname = apr_hash_this_key(hi); local
/freebsd-11-stable/contrib/ntp/ntpq/
H A Dntpq.c655 const char *hname,
671 if (*hname == '[') {
672 cp = strchr(hname + 1, ']');
673 if (!cp || (octets = (size_t)(cp - hname) - 1) >= sizeof(name)) {
678 memcpy(name, hname + 1, octets);
680 hname = name;
697 a_info = getaddrinfo(hname, svc, &hints, &ai);
707 a_info = getaddrinfo(hname, svc, &hints, &ai);
713 a_info = getaddrinfo(hname, svc, &hints, &ai);
1933 const char *hname,
654 openhost( const char *hname, int fam ) argument
1932 getnetnum( const char *hname, sockaddr_u *num, char *fullhost, int af ) argument
[all...]
/freebsd-11-stable/sbin/routed/
H A Dparms.c946 char hname[MAXHOSTNAMELEN+1]; local
954 if (i > (int)sizeof(hname)-1) /* name too long */
956 memmove(hname, name, i);
957 hname[i] = '\0';
959 name = hname;
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c2407 char hname[NI_MAXHOST];
2417 hname, sizeof(hname) - 1, NULL, 0, NI_NUMERICHOST)) {
2418 hname[sizeof(hname) - 1] = 0;
2419 if (strcmp(hname, remotehost) != 0)
2420 printf(" (%s)", hname);
2522 hname, sizeof(hname) - 1, NULL, 0,
2524 hname[sizeo
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Daddrtoname.c112 char hname[NI_MAXHOST]; local
125 hname, sizeof(hname), NULL, 0, 0)) {
128 strlcpy(host.h_name, hname, NI_MAXHOST);

Completed in 185 milliseconds

12