/freebsd-9.3-release/bin/ |
H A D | Makefile | 19 hostname \
|
/freebsd-9.3-release/bin/date/ |
H A D | netdate.c | 78 char hostname[MAXHOSTNAMELEN]; local 114 if (gethostname(hostname, sizeof(hostname))) { 118 (void)strlcpy(msg.tsp_name, hostname, sizeof(msg.tsp_name));
|
/freebsd-9.3-release/bin/hostname/ |
H A D | Makefile | 4 PROG= hostname
|
H A D | hostname.c | 38 static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93"; 58 char *p, hostname[MAXHOSTNAMELEN]; local 65 * On Linux, "hostname -f" prints FQDN. 66 * BSD "hostname" always prints FQDN by 87 if (gethostname(hostname, (int)sizeof(hostname))) 90 p = strchr(hostname, '.'); 94 (void)printf("%s\n", hostname); 103 (void)fprintf(stderr, "usage: hostname [-fs] [name-of-host]\n");
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_main.c | 1841 char *hostname; local 1846 ZPOOL_CONFIG_HOSTNAME, &hostname) == 0); 1853 "(hostid: 0x%lx) on %s"), name, hostname,
|
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_import.c | 440 char *name, *hostname; local 532 * hostname (if available) 565 hostname = fnvlist_lookup_string(tmp, 568 ZPOOL_CONFIG_HOSTNAME, hostname); 807 hostname) == 0);
|
/freebsd-9.3-release/contrib/amd/amd/ |
H A D | amd.c | 394 char hostname[MAXHOSTNAMELEN + 1] = "localhost"; /* Hostname */ local 431 if (gethostname(hostname, sizeof(hostname)) < 0) { 435 hostname[sizeof(hostname) - 1] = '\0'; 440 if (!*hostname) { 454 if ((domdot = strchr(hostname, '.'))) { 457 * Split out hostname and domainname 463 xstrlcpy(hostd, hostname, sizeof(hostd)); 464 am_set_hostname(hostname); [all...] |
/freebsd-9.3-release/contrib/amd/fsinfo/ |
H A D | fsi_analyze.c | 119 domain_strip(p, hostname); 161 show_required(ioloc *l, int mask, char *info, char *hostname, char *strings[]) argument 164 fsi_log("mask left for %s:%s is %#x", hostname, info, mask); 168 lerror(l, "%s:%s needs field \"%s\"", hostname, info, strings[i]);
|
H A D | fsi_util.c | 213 progname, username, hostname, cp); 374 domain_strip(p, hostname);
|
H A D | fsinfo.c | 60 char hostname[MAXHOSTNAMELEN + 1]; variable 127 xstrlcpy(hostname, optarg, sizeof(hostname)); 182 Usage: %s [-v] [-a autodir] [-h hostname] [-b bootparams] [-d dumpsets]\n\ 232 * If no hostname given then use the local name 234 if (!*hostname && gethostname(hostname, sizeof(hostname)) < 0) { 238 hostname[sizeof(hostname) [all...] |
H A D | fsinfo.h | 62 extern char hostname[];
|
H A D | wr_atab.c | 78 * A hardwired filesystem "hostname:path" 79 * rhost:=hostname;rfs:=path 82 char *hostname = ap->a_hardwiredfs; local 83 char *path = strrchr(hostname, (int) ':'); 96 fprintf(af, " rhost:=%s", hostname); 161 * Output a selector for the hostname,
|
/freebsd-9.3-release/contrib/amd/hlfsd/ |
H A D | hlfsd.c | 86 char hostname[MAXHOSTNAMELEN + 1] = "localhost"; variable 314 /* get hostname for logging and open log before we reset umask */ 315 gethostname(hostname, sizeof(hostname)); 316 hostname[sizeof(hostname) - 1] = '\0'; 317 if ((dot = strchr(hostname, '.')) != NULL) 477 "%s:(pid%d)", hostname, masterpid); 527 * Update hostname field. 528 * Make some name prog:pid (i.e., hlfsd:174) for hostname [all...] |
/freebsd-9.3-release/contrib/amd/libamu/ |
H A D | mount_fs.c | 528 * struct nfs_args, or truncate our concocted "hostname:/path" 531 NFS_HN_DREF(nap->hostname, host_name); 938 plog(XLOG_DEBUG, "NA->hostname = \"%s\"", nap->hostname ? nap->hostname : "null");
|
/freebsd-9.3-release/contrib/amd/scripts/ |
H A D | expn.1 | 17 # must have 'nslookup' and 'hostname' programs. 78 # expanded "foo" or maybe "foo@bar" and $server is the hostname 111 $0 = "$av0 - running hostname"; 112 chop($name = `hostname || uname -n`); 115 ($hostname,$aliases,$type,$len,$thisaddr) = gethostbyname($name); 126 &expn(&parse($a,$hostname,undef,1)); 188 || die "bind $hostname,0: $!"; 238 &ps("helo $hostname"); 957 # follow mx records, return a hostname 1253 .IR user [@ hostname ] [all...] |
H A D | expn.in | 16 # must have 'nslookup' and 'hostname' programs. 77 # expanded "foo" or maybe "foo@bar" and $server is the hostname 110 $0 = "$av0 - running hostname"; 111 chop($name = `hostname || uname -n`); 114 ($hostname,$aliases,$type,$len,$thisaddr) = gethostbyname($name); 125 &expn(&parse($a,$hostname,undef,1)); 187 || die "bind $hostname,0: $!"; 237 &ps("helo $hostname"); 956 # follow mx records, return a hostname 1252 .IR user [@ hostname ] [all...] |
H A D | wait4amd.in | 3 # usage: wait4amd <hostname> [<command> [args ...]] 4 # If only hostname is supplied, command defaults to rsh $hostname 12 echo "Usage: wait4amd <hostname> [<command> [args ...]]" 15 hostname=$1 27 amq -h $hostname > /dev/null 2>&1 34 echo "Amd is active on host $hostname!" 38 cmd="rlogin $hostname"
|
/freebsd-9.3-release/contrib/amd/wire-test/ |
H A D | wire-test.c | 51 char hostname[MAXHOSTNAMELEN + 1]; variable 66 if (gethostname(hostname, sizeof(hostname)) < 0) { 70 hostname[sizeof(hostname) - 1] = '\0'; 95 fprintf(stderr, "NFS vers/proto failed: no such hostname \"%s\"\n", testhost);
|
/freebsd-9.3-release/contrib/bind9/bin/dig/ |
H A D | host.c | 151 " [-R number] [-m flag] hostname [server]\n" 659 char hostname[MXNAME]; local 838 strlcpy(hostname, argv[isc_commandline_index], sizeof(hostname)); 848 if (get_reverse(store, sizeof(store), hostname, 856 strncpy(lookup->textname, hostname, sizeof(lookup->textname));
|
/freebsd-9.3-release/contrib/bind9/bin/named/ |
H A D | builtin.c | 22 * The built-in "version", "hostname", "id", "authors" and "empty" databases. 342 if (ns_g_server->hostname == NULL) 345 return (put_txt(lookup, ns_g_server->hostname)); 474 else if (strcmp(argv[0], "hostname") == 0)
|
H A D | server.c | 5716 result = ns_config_get(maps, "hostname", &obj); 5718 CHECKM(setoptstring(server, &server->hostname, obj), "strdup"); 5728 /* The parser translates "hostname" to ISC_TRUE */ 6203 server->hostname = NULL; 6273 if (server->hostname != NULL) 6274 isc_mem_free(server->mctx, server->hostname);
|
/freebsd-9.3-release/contrib/bind9/bin/named/include/named/ |
H A D | server.h | 62 isc_boolean_t hostname_set; /*%< User has set hostname */ 63 char * hostname; /*%< User-specified hostname */ member in struct:ns_server 64 /*% Use hostname for server id */
|
/freebsd-9.3-release/contrib/bind9/lib/bind9/ |
H A D | getaddresses.c | 50 bind9_getaddresses(const char *hostname, in_port_t port, argument 65 REQUIRE(hostname != NULL); 82 if (inet_pton(AF_INET, hostname, &in4) == 1) { 89 } else if (strlen(hostname) <= 127U) { 93 strcpy(tmpbuf, hostname); 151 result = getaddrinfo(hostname, NULL, &hints, &ai); 193 he = gethostbyname(hostname);
|
/freebsd-9.3-release/contrib/bind9/lib/bind9/include/bind9/ |
H A D | getaddresses.h | 33 bind9_getaddresses(const char *hostname, in_port_t port, 36 * Use the system resolver to get the addresses associated with a hostname. 38 * If a hostname lookup is performed and addresses of an unknown family is 46 *\li 'hostname' is not NULL. 55 *\li #ISC_R_NOFAMILYSUPPORT - 'hostname' is an IPv6 address, and IPv6 is
|
/freebsd-9.3-release/contrib/bind9/lib/export/samples/ |
H A D | sample-gai.c | 31 do_gai(int family, char *hostname) { argument 40 error = getaddrinfo(hostname, "http", &hints, &res0); 43 hostname, family, gai_strerror(error)); 59 printf("%s(%s/%s)=%s:%s\n", hostname,
|