Searched refs:hostname (Results 1 - 25 of 429) sorted by path

1234567891011>>

/freebsd-9.3-release/bin/
H A DMakefile19 hostname \
/freebsd-9.3-release/bin/date/
H A Dnetdate.c78 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 DMakefile4 PROG= hostname
H A Dhostname.c38 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 Dzpool_main.c1841 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 Dlibzfs_import.c440 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 Damd.c394 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 Dfsi_analyze.c119 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 Dfsi_util.c213 progname, username, hostname, cp);
374 domain_strip(p, hostname);
H A Dfsinfo.c60 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 Dfsinfo.h62 extern char hostname[];
H A Dwr_atab.c78 * 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 Dhlfsd.c86 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 Dmount_fs.c528 * 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 Dexpn.117 # 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 Dexpn.in16 # 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 Dwait4amd.in3 # 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 Dwire-test.c51 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 Dhost.c151 " [-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 Dbuiltin.c22 * 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 Dserver.c5716 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 Dserver.h62 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 Dgetaddresses.c50 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 Dgetaddresses.h33 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 Dsample-gai.c31 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,

Completed in 203 milliseconds

1234567891011>>