/freebsd-current/contrib/smbfs/smbutil/ |
H A D | lookup.c | 63 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-current/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 60 #define SYS_HOSTNAME "/proc/sys/kernel/hostname" 88 const char *device, const char *hostname) 101 field = hostname; 117 static int update_node_desc(const char *device, const char *hostname, int force) argument 142 build_node_desc(new_nd, sizeof(new_nd), device, hostname); 159 static int set_rdma_node_desc(const char *hostname, int force) argument 179 while (update_node_desc(dent->d_name, hostname, force) && retry > 0) { 282 static void process_udev_event(int ud_fd, const char *hostname) argument 297 update_node_desc(device, hostname, 1); 305 char hostname[12 local 87 build_node_desc(char *dest, size_t len, const char *device, const char *hostname) argument 385 char hostname[128]; local [all...] |
/freebsd-current/libexec/bootpd/ |
H A D | lookup.c | 29 lookup_hwa(char *hostname, int htype) argument 40 if (ether_hostton(hostname, &ea)) { 42 hostname); 63 lookup_ipa(char *hostname, u_int32 *result) argument 66 hp = gethostbyname(hostname);
|
/freebsd-current/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-current/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | ModuleCache.h | 54 Status GetAndPut(const FileSpec &root_dir_spec, const char *hostname, 61 Status Put(const FileSpec &root_dir_spec, const char *hostname, 65 Status Get(const FileSpec &root_dir_spec, const char *hostname,
|
/freebsd-current/usr.sbin/bsdinstall/scripts/ |
H A D | hostname | 41 : ${HOSTNAME=$( hostname )} 44 # Default file to store hostname entry in 46 : ${HOSTNAMEFILE:=$BSDINSTALL_TMPETC/rc.conf.hostname} 55 msg_please_choose_a_hostname="Please choose a hostname for this machine.\n\nIf you are running on a managed network, please ask\nyour network administrator for an appropriate name." 62 SET_HOSTNAME='hostname -s "%s"' 68 # Display input box (without cancel button) for user to enter desired hostname. 109 'hostname=\"$HOSTNAME\"' "$HOSTNAMEFILE" 116 f_eval_catch "$pgm" hostname "$SET_HOSTNAME" "$HOSTNAME"
|
H A D | finalconfig | 43 "Hostname" "Set system hostname" \ 64 bsdinstall hostname
|
/freebsd-current/contrib/tcsh/ |
H A D | dotlock.c | 49 char path[MAXPATHLEN], hostname[MAXHOSTNAMELEN + 1]; local 58 (void)gethostname(hostname, sizeof(hostname)); 59 hostname[sizeof(hostname) - 1] = '\0'; 65 * We generate a semi-unique filename, from hostname.(pid ^ usec) 73 (int)(ptr - fname), fname, hostname, (u_long)cookie);
|
/freebsd-current/usr.sbin/autofs/autofs/ |
H A D | include_nis_nullfs | 64 "hostname -s" | getline; 67 "hostname -f" | getline; 72 "hostname -f" | getline; 83 # print "--- hostname list start ----" 87 # print "--- hostname list end ----" 104 function is_self(hostname) 106 if (myhostnames[hostname]) {
|
/freebsd-current/usr.sbin/bsdconfig/networking/ |
H A D | Makefile | 8 SCRIPTS= defaultrouter devices hostname nameservers networking \
|
/freebsd-current/usr.sbin/bsdconfig/networking/share/ |
H A D | Makefile | 3 FILES= common.subr device.subr hostname.subr ipaddr.subr media.subr \
|
/freebsd-current/usr.bin/talk/ |
H A D | get_names.c | 59 char hostname[MAXHOSTNAMELEN]; local 76 gethostname(hostname, sizeof (hostname)); 77 my_machine_name = hostname;
|
/freebsd-current/lib/libc/rpc/ |
H A D | netname.c | 120 char hostname[MAXHOSTNAMELEN+1]; local 129 (void) gethostname(hostname, sizeof(hostname)); 130 host = hostname;
|
/freebsd-current/contrib/sendmail/cf/sh/ |
H A D | makeinfo.sh | 35 if [ -f $p/hostname ] 53 host=`hostname`
|
/freebsd-current/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 73 if (host->request->hostname != 0) 74 host->request->hostname(host); 83 char *hostname; local 89 hostname = eval_hostname(host); 90 if (HOSTNAME_KNOWN(hostname)) {
|
/freebsd-current/libexec/talkd/ |
H A D | talkd.c | 62 char hostname[MAXHOSTNAMELEN]; variable 82 if (gethostname(hostname, sizeof(hostname) - 1) < 0) { 86 hostname[sizeof(hostname) - 1] = '\0';
|
H A D | extern.h | 29 extern char hostname[];
|
/freebsd-current/usr.sbin/rpc.statd/ |
H A D | file.c | 77 HostInfo *find_host(char *hostname, int create) argument 86 if (getaddrinfo(hostname, NULL, NULL, &ai1) != 0) 90 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) 95 if (hp->hostname[0] != '\0' && 96 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0) 155 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN); 254 static int notify_one_host(char *hostname, int verbose) argument 267 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostnam [all...] |
/freebsd-current/crypto/openssh/ |
H A D | sshlogin.c | 82 strlcpy(buf, li.hostname, bufsize); 95 char hostname[HOST_NAME_MAX+1] = ""; local 113 last_login_time = get_last_login_time(uid, user, hostname, 114 sizeof(hostname)); 119 if (strcmp(hostname, "") == 0) 124 time_string, hostname);
|
/freebsd-current/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-current/tools/test/stress2/misc/ |
H A D | jail2.sh | 56 hostname = 0x0, 65 j.hostname = 0;
|
H A D | jail3.sh | 56 hostname = 0x2809b650 <Address 0x2809b650 out of bounds>, 65 j.hostname = (char *)0x2809b650;
|
/freebsd-current/lib/libc/net/ |
H A D | ether_addr.c | 63 * Parse a string of text containing an ethernet address and hostname and 67 ether_line(const char *l, struct ether_addr *e, char *hostname) argument 72 &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-current/libexec/getty/ |
H A D | extern.h | 37 extern char hostname[];
|
/freebsd-current/contrib/netbsd-tests/fs/kernfs/ |
H A D | t_basic.c | 71 ATF_TC(hostname); variable 72 ATF_TC_HEAD(hostname, tc) 75 atf_tc_set_md_var(tc, "descr", "/kern/hostname changes hostname"); 95 ATF_TC_BODY(hostname, tc) 102 if ((fd = rump_sys_open("/kern/hostname", O_RDWR)) == -1) 103 atf_tc_fail_errno("open hostname"); 109 atf_tc_fail_errno("read hostname"); 113 ATF_REQUIRE_STREQ_MSG(buf, shost, "initial hostname mismatch"); 115 /* check changing hostname work [all...] |