Searched refs:hostname (Results 1 - 25 of 422) sorted by relevance

1234567891011>>

/freebsd-10.0-release/release/picobsd/floppy.tree/etc/
H A Drc.conf4 case ${hostname} in
6 echo "processing rc.conf for ${hostname}"
H A Drc.conf.defaults11 hostname="" # Should not need to set it
67 echo "Please enter a hostname and IP address for your system $main_ether"
68 read hostname the_ip
69 if [ "${hostname}" != "" ] ; then
70 echo "# $main_ether $hostname" >> /etc/hosts
71 echo "$the_ip $hostname" >> /etc/hosts
73 hostname=default
109 # set ${hostname} using $1 (MAC address) as search key in /etc/hosts
113 hostname=""
119 while [ "$b" != "" -a "${hostname}"
[all...]
/freebsd-10.0-release/tools/tools/nanobsd/pcengines/Files/etc/
H A Drc.conf5 hostname="alix"
/freebsd-10.0-release/contrib/amd/scripts/
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-10.0-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-10.0-release/libexec/bootpd/
H A Dlookup.h6 extern u_char *lookup_hwa(char *hostname, int htype);
7 extern int lookup_ipa(char *hostname, u_int32 *addr);
H A Dlookup.c37 lookup_hwa(hostname, htype)
38 char *hostname;
50 if (ether_hostton(hostname, &ea)) {
52 hostname);
73 lookup_ipa(hostname, result)
74 char *hostname;
78 hp = gethostbyname(hostname);
/freebsd-10.0-release/etc/rc.d/
H A Dhostname29 # PROVIDE: hostname
36 name="hostname"
50 elif [ -n "`/bin/hostname -s`" ]; then
54 # hostname, see if we can get one from kenv.
56 if [ -z "${hostname}" -a \
58 hostname=`/bin/kenv dhcp.host-name`
62 # Have we got a hostname yet?
64 if [ -z "${hostname}" ]; then
65 # Null hostname is probably OK if DHCP is in use.
68 warn "\$hostname i
[all...]
/freebsd-10.0-release/usr.sbin/bsdinstall/scripts/
H A Dhostname38 'Please choose a hostname for this machine.
41 0 0 $(hostname) 2>&1 1>&3`
45 echo "hostname=\"$HOSTNAME\"" > $BSDINSTALL_TMPETC/rc.conf.hostname
47 hostname -s "$HOSTNAME"
/freebsd-10.0-release/crypto/heimdal/appl/login/
H A Dutmp_login.c38 /* try to put something useful from hostname into dst, dst_sz:
42 shrink_hostname (const char *hostname, argument
50 if (strlen(hostname) < dst_sz) {
51 strlcpy (dst, hostname, dst_sz);
55 hd = strchr (hostname, '.');
58 && hd - hostname < dst_sz) {
59 strlcpy (dst, hostname, dst_sz);
60 dst[hd - hostname] = '\0';
64 ret = getaddrinfo (hostname, NULL, NULL, &ai);
66 strncpy (dst, hostname, dst_s
85 prepare_utmp(struct utmp *utmp, char *tty, const char *username, const char *hostname) argument
127 utmp_login(char *tty, const char *username, const char *hostname) argument
133 utmp_login(char *tty, const char *username, const char *hostname) argument
[all...]
/freebsd-10.0-release/tools/build/cross-build/
H A DMakefile4 SCRIPTS= date.sh hostname.sh
/freebsd-10.0-release/tools/tools/nanobsd/gateworks/cfg/
H A Drc.conf3 hostname="avila"
/freebsd-10.0-release/tools/tools/tinybsd/conf/bridge/etc/
H A Drc.conf2 hostname="tinybsd.freebsd.org"
/freebsd-10.0-release/tools/tools/tinybsd/conf/default/etc/
H A Drc.conf2 hostname="tinybsd.freebsd.org"
/freebsd-10.0-release/tools/tools/tinybsd/conf/minimal/etc/
H A Drc.conf2 hostname="tinybsd.freebsd.org"
/freebsd-10.0-release/tools/tools/tinybsd/conf/wrap/etc/
H A Drc.conf2 hostname="tinybsd.freebsd.org"
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Dsock_principal.c47 char hostname[NI_MAXHOST]; local
54 ret = getnameinfo (sa, salen, hostname, sizeof(hostname), NULL, 0, 0);
63 hostname,
/freebsd-10.0-release/crypto/openssh/
H A Dauth-rhosts.c55 check_rhosts_file(const char *filename, const char *hostname, argument
149 if (!innetgr(host + 1, hostname, NULL, NULL) &&
152 } else if (strcasecmp(host, hostname) && strcmp(host, ipaddr) != 0)
153 continue; /* Different hostname. */
189 const char *hostname, *ipaddr; local
191 hostname = get_canonical_hostname(options.use_dns);
193 return auth_rhosts2(pw, client_user, hostname, ipaddr);
197 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname, argument
205 debug2("auth_rhosts2: clientuser %s hostname %s ipaddr %s",
206 client_user, hostname, ipadd
317 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, const char *ipaddr) argument
[all...]
/freebsd-10.0-release/usr.sbin/clear_locks/
H A Dclear_locks.c42 char *hostname; local
46 fprintf(stderr, "Usage: clear_locks <hostname>\n");
49 hostname = argv[1];
56 notify.name = hostname;
66 fprintf(stderr, "clear_locks: cleared locks for hostname %s\n",
67 hostname);
/freebsd-10.0-release/tools/tools/tinybsd/conf/vpn/etc/
H A Drc.conf2 hostname="tinybsd.freebsd.org"
/freebsd-10.0-release/contrib/openpam/lib/libpam/
H A Dpam_start.c70 char hostname[HOST_NAME_MAX + 1]; local
79 if (gethostname(hostname, sizeof hostname) != 0)
80 strlcpy(hostname, "localhost", sizeof hostname);
81 if ((r = pam_set_item(ph, PAM_HOST, hostname)) != PAM_SUCCESS)
/freebsd-10.0-release/contrib/smbfs/smbutil/
H A Dlookup.c63 char *hostname; local
92 hostname = argv[argc - 1];
93 /* printf("Looking for %s...\n", hostname);*/
94 error = nbns_resolvename(hostname, ctx, &sap);
96 smb_error("unable to resolve %s", error, hostname);
100 printf("IP address of %s: %s\n", hostname, inet_ntoa(((struct sockaddr_in*)sap)->sin_addr));
/freebsd-10.0-release/lib/libipx/
H A Dipx_addr.c55 char *hostname, *socketname, *cp; local
67 if ( (hostname = strchr(buf, '#')) )
70 hostname = strchr(buf, '.');
72 ((hostname && cp < hostname) || (hostname == 0))) {
73 hostname = cp;
78 if (hostname)
79 *hostname++ = 0;
83 if (hostname
[all...]
/freebsd-10.0-release/contrib/amd/fsinfo/
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...]

Completed in 183 milliseconds

1234567891011>>