| /src/games/warp/ | 
| intrp.h | 16 EXT char *hostname;	/* host name */  variable in typeref:typename:EXT char * 
 | 
| intrp.c | 23     char *hostname;  variable in typeref:typename:char * 69     hostname = savestr(buf);
 70     if (strchr(hostname,'.'))
 71 	hostname = savestr(hostname);
 75 	strcpy(hname,hostname);
 77 	hostname=savestr(hname);
 392 		    s = hostname;
 
 | 
| /src/usr.sbin/ypserv/common/ | 
| localhostname.c | 52 	char hostname[MAXHOSTNAMELEN + 1];  local in function:localhostname 55 	if (gethostname(hostname, sizeof(hostname)))
 57 	hostname[sizeof(hostname) - 1] = '\0';
 62 	 * If hostname appears to be fully-qualified,
 65 	if (strchr(hostname, '.')) {
 66 		strlcpy(buf, hostname, buflen);
 77 	error = getaddrinfo(hostname, NULL, &hints, &res);
 79 		errx(1, "getaddrinfo(%s) failed: %s", hostname,
 [all...]
 | 
| /src/bin/hostname/ | 
| hostname.c | 1 /* $NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric Exp $ */ 40 static char sccsid[] = "@(#)hostname.c	8.2 (Berkeley) 4/28/95";
 42 __RCSID("$NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric Exp $");
 60 	char *p, hostname[MAXHOSTNAMELEN + 1];  local in function:main
 83 		if (gethostname(hostname, sizeof(hostname)))
 85 		hostname[sizeof(hostname) - 1] = '\0';
 86 		if (sflag && (p = strchr(hostname, '.')))
 88 		(void)printf("%s\n", hostname);
 [all...]
 | 
| /src/lib/libpam/modules/pam_login_access/ | 
| pam_login_access.c | 65 	char hostname[MAXHOSTNAMELEN];  local in function:pam_sm_acct_mgmt 85 	gethostname(hostname, sizeof hostname);
 
 | 
| /src/sys/lib/libsa/ | 
| globals.c | 22 char	hostname[FNAME_SIZE];		/* our hostname */  variable in typeref:typename:char[] 
 | 
| /src/usr.bin/passwd/ | 
| pam_passwd.c | 76 	char hostname[MAXHOSTNAMELEN + 1];  local in function:pwpam_process 118 	(void)gethostname(hostname, sizeof hostname);
 119 	pam_err = pam_set_item(pamh, PAM_RHOST, hostname);
 
 | 
| /src/usr.bin/talk/ | 
| get_names.c | 56 	char hostname[MAXHOSTNAMELEN + 1];  local in function:get_names 78 		(void)estrlcpy(hostname, cp, sizeof(hostname));
 80 		if (gethostname(hostname, sizeof(hostname)) == -1)
 82 		hostname[sizeof(hostname) - 1] = '\0';
 84 	my_machine_name = hostname;
 
 | 
| /src/usr.sbin/ypserv/stdethers/ | 
| stdethers.c | 60 	char	 hostname[MAXHOSTNAMELEN + 1];  local in function:main 82 		if (ether_line(p, ð_addr, hostname) == 0)
 83 			printf("%s\t%s\n", ether_ntoa(ð_addr), hostname);
 
 | 
| /src/lib/libpam/modules/pam_securetty/ | 
| pam_securetty.c | 69 	const void *hostname;  local in function:pam_sm_acct_mgmt 104 	pam_err = pam_get_item(pamh, PAM_RHOST, &hostname);
 106 		hostname = NULL;
 109 	if (hostname)
 112 		     pwd->pw_name, (const char *)hostname,
 
 | 
| /src/lib/libwrap/ | 
| eval.c | 10   * results are really needed. Examples are hostname lookups and double 12   * given the value "unknown" ("paranoid" in case of hostname problems).
 14   * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by
 83 	if (host->request->hostname != 0)
 84 	    host->request->hostname(host);
 94     char   *hostname;  local in function:eval_hostinfo
 100     hostname = eval_hostname(host);
 101     if (HOSTNAME_KNOWN(hostname)) {
 
 | 
| /src/libexec/talkd/ | 
| process.c | 142 	char hostname[NI_MAXHOST];  local in function:do_announce 153 	if (getnameinfo(&sa, sa.sa_len, hostname, sizeof(hostname), NULL,
 161 		rp->answer = announce(mp, hostname);
 171 		rp->answer = announce(mp, hostname);
 
 | 
| talkd.c | 78 char	hostname[MAXHOSTNAMELEN + 1];  variable in typeref:typename:char[] 107 	if (gethostname(hostname, sizeof hostname) < 0) {
 111 	hostname[MAXHOSTNAMELEN] = '\0';  /* ensure null termination */
 
 | 
| /src/usr.bin/getaddrinfo/ | 
| getaddrinfo.c | 63 	const char *hostname = NULL;  local in function:main 122 		hostname = argv[0];
 142 	error = getaddrinfo(hostname, service, &hints, &addrinfo);
 165 	(void)fprintf(stderr, "   [-cnNP] [<hostname>]\n");
 
 | 
| /src/bin/date/ | 
| netdate.c | 83 	char hostname[MAXHOSTNAMELEN];  local in function:netsettime 121 	if (gethostname(hostname, sizeof(hostname)) == -1) {
 125 	(void)strlcpy(msg.tsp_name, hostname, sizeof(msg.tsp_name));
 
 | 
| /src/lib/libc/compat/net/ | 
| compat_ns_addr.c | 59 	char *hostname, *socketname, *cp;  local in function:ns_addr 73 	if ((hostname = strchr(buf, '#')) != NULL)
 76 		hostname = strchr(buf, '.');
 78 		    ((hostname && cp < hostname) || (hostname == 0))) {
 79 			hostname = cp;
 84 	if (hostname)
 85 		*hostname++ = 0;
 89 	if (hostname == 0
 [all...]
 | 
| /src/lib/libutil/ | 
| pidlock.c | 52 	char	hostname[MAXHOSTNAMELEN + 1];  local in function:pidlock 66 	if (gethostname(hostname, sizeof(hostname)))
 68 	hostname[sizeof(hostname) - 1] = '\0';
 70 	/* avoid '/' in hostname, as it may contain arbitrary characters */
 71 	for (p = hostname; *p != '\0'; p++) {
 78 	 * We use the path with the PID and hostname appended.
 82 	    (int) getpid(), hostname) >= (int)sizeof(tempfile))  {
 87 	/* Open it, write pid, hostname, info. *
 [all...]
 | 
| /src/usr.bin/mail/ | 
| dotlock.c | 54 	char path[MAXPATHLEN], hostname[MAXHOSTNAMELEN + 1];  local in function:create_exclusive 63 	(void)gethostname(hostname, sizeof(hostname));
 64 	hostname[sizeof(hostname) - 1] = '\0';
 70 	 * We generate a semi-unique filename, from hostname.(pid ^ usec)
 78 	    (int)(ptr - fname), fname, hostname, (u_long)cookie);
 
 | 
| /src/usr.bin/rwall/ | 
| rwall.c | 112 		    "Usage: %s hostname <file>\n", getprogname()); 162 	char tmpname[MAXPATHLEN], lbuf[BUFSIZ], hostname[MAXHOSTNAMELEN + 1];  local in function:makemsg
 171 	(void)gethostname(hostname, sizeof(hostname));
 172 	hostname[sizeof(hostname) - 1] = '\0';
 184 	    whom, hostname);
 
 | 
| /src/usr.sbin/yppoll/ | 
| yppoll.c | 91 	char *hostname = NULL;  local in function:main 108 			hostname = optarg;
 128 	if (hostname != NULL)
 129 		r = get_remote_info(domainname, inmap, hostname,
 
 | 
| /src/distrib/utils/embedded/conf/ | 
| arm64mbr.conf | 5 hostname=arm64  key 
 | 
| /src/usr.sbin/mlxctl/ | 
| config.c | 124 	char hostname[MAXHOSTNAMELEN];  local in function:cmd_config 136 	gethostname(hostname, sizeof(hostname));
 137 	printf("# controller %s on %s\n", mlxname, hostname);
 
 | 
| /src/sys/fs/nfs/common/ | 
| nfsdiskless.h | 93 	char		*hostname;	/* server's name */  member in struct:onfs_args 
 | 
| /src/usr.bin/lock/ | 
| lock.c | 109 	char hostname[MAXHOSTNAMELEN + 1], s[BUFSIZ], s1[BUFSIZ];  local in function:main 170 	gethostname(hostname, sizeof(hostname));
 171 	hostname[sizeof(hostname) - 1] = '\0';
 237 		    ttynam, hostname, ap, tzn, ap + 19);
 251 		    ttynam, hostname, sectimeout, ap, tzn, ap + 19);
 
 | 
| /src/usr.bin/skeyinit/ | 
| skeyinit.c | 52 	char	hostname[MAXHOSTNAMELEN + 1];  local in function:main 77 	if (gethostname(hostname, sizeof(hostname)) < 0)
 81 	 * Copy the hostname into the default seed, eliminating any
 85 		if (hostname[i] == '\0') {
 86 			defaultseed[l] = hostname[i];
 89 		if (isalnum((unsigned char)hostname[i]))
 90 			defaultseed[l++] = hostname[i];
 
 |