/freebsd-9.3-release/contrib/ntp/sntp/ |
H A D | kod_management.c | 23 const char *hostname, 30 if (!strcmp(kod_db[a]->hostname, hostname)) 42 if (!strcmp(kod_db[a]->hostname, hostname)) { 53 const char * hostname, 64 strlcpy(pke->hostname, hostname, sizeof(pke->hostname)); 67 * insert in address ("hostname") orde 22 search_entry( const char *hostname, struct kod_entry **dst ) argument 52 add_entry( const char * hostname, const char * type ) argument 90 delete_entry( const char * hostname, const char * type ) argument [all...] |
/freebsd-9.3-release/lib/libipx/ |
H A D | ipx_addr.c | 55 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-9.3-release/contrib/amd/fsinfo/ |
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...] |
/freebsd-9.3-release/libexec/getty/ |
H A D | extern.h | 40 extern char hostname[];
|
/freebsd-9.3-release/sys/boot/common/ |
H A D | newvers.sh | 36 u=${USER-root} h=${HOSTNAME-`hostname`} t=`date`
|
/freebsd-9.3-release/tools/regression/lib/libc/net/ |
H A D | test-ether.c | 61 char hostname[256]; local 64 if (ether_line(ether_line_string, &e, hostname) != 0) 68 if (strcmp(hostname, ether_line_hostname) != 0) { 69 printf("hostname: %s\n", hostname); 70 NOTOK("bad hostname"); 81 char hostname[256]; local 84 if (ether_line(ether_line_bad_1_string, &e, hostname) == 0) 95 char hostname[256]; local 98 if (ether_line(ether_line_bad_2_string, &e, hostname) [all...] |
/freebsd-9.3-release/tools/tools/tinybsd/conf/firewall/etc/ |
H A D | rc.conf | 2 hostname="tinybsd.freebsd.org"
|
/freebsd-9.3-release/tools/tools/tinybsd/conf/wireless/etc/ |
H A D | rc.conf | 2 hostname="tinybsd.freebsd.org"
|
/freebsd-9.3-release/usr.sbin/bootparamd/bootparamd/ |
H A D | bootparamd.c | 38 static char hostname[MAX_MACHINE_NAME]; variable 77 if (checkhost(askname, hostname, sizeof hostname) ) { 78 res.client_name = hostname; 138 strncpy(hostname, buffer, where - buffer); 139 hostname[where - buffer] = '\0'; 142 he = gethostbyname(hostname); 145 res.server_name = hostname; 209 while ( fscanf(bpf, "%255s", hostname) > 0 && !match ) { 210 if ( *hostname ! [all...] |
/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,
|
/freebsd-9.3-release/contrib/sendmail/cf/sh/ |
H A D | makeinfo.sh | 35 if [ -f $p/hostname ] 53 host=`hostname`
|
/freebsd-9.3-release/usr.bin/talk/ |
H A D | get_names.c | 63 char hostname[MAXHOSTNAMELEN]; local 80 gethostname(hostname, sizeof (hostname)); 81 my_machine_name = hostname;
|
/freebsd-9.3-release/usr.sbin/bsdconfig/networking/ |
H A D | Makefile | 11 SCRIPTS= defaultrouter devices hostname nameservers networking
|
/freebsd-9.3-release/usr.sbin/bsdinstall/scripts/ |
H A D | Makefile | 3 SCRIPTS= auto adduser checksum config docsinstall entropy hostname jail \
|
/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/tcp_wrappers/ |
H A D | eval.c | 8 * results are really needed. Examples are hostname lookups and double 10 * given the value "unknown" ("paranoid" in case of hostname problems). 12 * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by 76 if (host->request->hostname != 0) 77 host->request->hostname(host); 87 char *hostname; local 93 hostname = eval_hostname(host); 94 if (HOSTNAME_KNOWN(hostname)) {
|
/freebsd-9.3-release/libexec/talkd/ |
H A D | talkd.c | 78 char hostname[MAXHOSTNAMELEN]; variable 98 if (gethostname(hostname, sizeof(hostname) - 1) < 0) { 102 hostname[sizeof(hostname) - 1] = '\0';
|
/freebsd-9.3-release/usr.sbin/rpc.statd/ |
H A D | file.c | 77 HostInfo *find_host(char *hostname, int create) argument 85 if (getaddrinfo(hostname, NULL, NULL, &ai1) != 0) 89 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) 94 if (hp->hostname[0] && 95 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0) 153 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN); 249 static int notify_one_host(char *hostname) argument 262 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostnam [all...] |
/freebsd-9.3-release/crypto/openssh/ |
H A D | sshlogin.c | 78 strlcpy(buf, li.hostname, bufsize); 90 char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; local 103 last_login_time = get_last_login_time(uid, user, hostname, 104 sizeof(hostname)); 109 if (strcmp(hostname, "") == 0) 114 time_string, hostname);
|
/freebsd-9.3-release/contrib/gdb/gdb/ |
H A D | ser-tcp.c | 60 char *port_str, hostname[100]; local 80 tmp = min (port_str - name, (int) sizeof hostname - 1); 81 strncpy (hostname, name, tmp); /* Don't want colon */ 82 hostname[tmp] = '\000'; /* Tie off host name */ 85 /* default hostname is localhost */ 86 if (!hostname[0]) 87 strcpy (hostname, "localhost"); 89 hostent = gethostbyname (hostname); 92 fprintf_unfiltered (gdb_stderr, "%s: unknown host\n", hostname);
|
/freebsd-9.3-release/crypto/heimdal/appl/test/ |
H A D | test_locl.h | 87 int client_doit (const char *hostname, int port, const char *service, 88 int (*func)(int, const char *hostname, const char *service));
|
/freebsd-9.3-release/lib/libc/net/ |
H A D | ether_addr.c | 65 * Parse a string of text containing an ethernet address and hostname and 69 ether_line(const char *l, struct ether_addr *e, char *hostname) argument 74 &o[4], &o[5], hostname); 135 * Map an ethernet address to a hostname. Use either /etc/ethers or NIS/YP. 138 ether_ntohost(char *hostname, const struct ether_addr *e) argument 174 strcpy(hostname, local_host); 185 * Map a hostname to an ethernet address using /etc/ethers or NIS/YP. 188 ether_hostton(const char *hostname, struct ether_addr *e) argument 209 if (yp_match(yp_domain, "ethers.byname", hostname, 210 strlen(hostname), [all...] |
/freebsd-9.3-release/lib/libc/rpc/ |
H A D | netname.c | 131 char hostname[MAXHOSTNAMELEN+1]; local 140 (void) gethostname(hostname, sizeof(hostname)); 141 host = hostname;
|
/freebsd-9.3-release/usr.bin/passwd/ |
H A D | passwd.c | 69 char hostname[MAXHOSTNAMELEN]; local 145 gethostname(hostname, sizeof hostname); 146 pam_err = pam_set_item(pamh, PAM_RHOST, hostname);
|