/busybox-1.35.0/examples/var_service/fw/etc/ |
D | hosts | 11 hostname=`hostname` 12 test "$hostname" || hostname=localhost 14 test "$domain" && hostname="$hostname $hostname.$domain" 18 | sed -e 's/^.*inet //' -e 's:[ /].*$: '"$hostname"':'
|
/busybox-1.35.0/testsuite/hostname/ |
D | hostname-i-works | 4 # # ./busybox hostname -i 6 # # hostname -i 9 test x$(hostname -i) = x$(busybox hostname -i)
|
D | hostname-works | 1 test x$(hostname) = x$(busybox hostname)
|
D | hostname-s-works | 1 test x$(hostname -s) = x$(busybox hostname -s)
|
D | hostname-d-works | 1 f=$(busybox hostname -f). 2 d=$(busybox hostname -d)
|
/busybox-1.35.0/libbb/ |
D | utmp.c | 17 …new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) in write_new_utmp() argument 30 if (hostname) in write_new_utmp() 31 safe_strncpy(utent.ut_host, hostname, sizeof(utent.ut_host)); in write_new_utmp() 65 …ate_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) in update_utmp() argument 103 write_new_utmp(pid, new_type, tty_name, username, hostname); in update_utmp() 118 if (hostname) in update_utmp() 119 safe_strncpy(utent.ut_host, hostname, sizeof(utent.ut_host)); in update_utmp()
|
D | login.c | 131 char *hostname = safe_gethostname(); in print_login_prompt() local 133 fputs_stdout(hostname); in print_login_prompt() 136 free(hostname); in print_login_prompt()
|
D | obscure.c | 102 char *hostname; in obscure_msg() local 119 hostname = safe_gethostname(); in obscure_msg() 120 i = string_checker(new_p, hostname); in obscure_msg() 121 free(hostname); in obscure_msg()
|
/busybox-1.35.0/printutils/ |
D | lpr.c | 103 char *hostname; in lpqr_main() local 173 hostname = safe_gethostname(); in lpqr_main() 217 remote_filename = xasprintf("fA%03u%s", job, hostname); in lpqr_main() 230 , hostname, user in lpqr_main()
|
/busybox-1.35.0/networking/ |
D | arp.c | 408 const char *hostname; in arp_show() local 459 hostname = "?"; in arp_show() 462 hostname = ip; in arp_show() 464 hostname = ap->sprint(&sa, (option_mask32 & ARP_OPT_n) | 0x8000); in arp_show() 465 if (strcmp(hostname, ip) == 0) in arp_show() 466 hostname = "?"; in arp_show() 469 arp_disp(hostname, ip, type, flags, hwa, mask, dev); in arp_show()
|
D | ping.c | 240 char *hostname; member 249 printf("No response from %s\n", G.hostname); in noresp() 362 G.hostname = *argv; in common_ping_main() 363 if (!G.hostname) in common_ping_main() 367 lsa = xhost_and_af2sockaddr(G.hostname, 0, af); in common_ping_main() 369 lsa = xhost_and_af2sockaddr(G.hostname, 0, AF_INET); in common_ping_main() 390 printf("%s is alive!\n", G.hostname); in common_ping_main() 439 const char *hostname; member 462 #define hostname (G.hostname ) macro 493 hostname, G.ntransmitted, nrecv in print_stats_and_exit() [all …]
|
D | nslookup.c | 95 static int print_host(const char *hostname, const char *header) in print_host() argument 109 rc = getaddrinfo(hostname, NULL /*service*/, &hint, &result); in print_host() 115 printf("%-10s %s\n", header, hostname); in print_host() 134 bb_error_msg("can't resolve '%s': %s", hostname, gai_strerror(rc)); in print_host() 136 bb_error_msg("can't resolve '%s'", hostname); in print_host()
|
D | telnetd.c | 524 char *hostname = NULL; in make_new_session() local 526 hostname = xmalloc_sockaddr2dotted(&lsa->u.sa); in make_new_session() 529 write_new_utmp(pid, LOGIN_PROCESS, tty_name, /*username:*/ "LOGIN", hostname); in make_new_session() 530 free(hostname); in make_new_session()
|
D | Config.src | 46 "can't resolve 'hostname.com'" and want to know more.
|
/busybox-1.35.0/examples/var_service/dhcp_if/ |
D | run | 19 --hostname=null \
|
/busybox-1.35.0/networking/udhcp/ |
D | dumpleases.c | 83 char *uni_name = unicode_conv_to_printable_fixedwidth(/*NULL,*/ lease.hostname, 19); in dumpleases_main() 90 printf(" %-16s%-20s", inet_ntoa(addr), lease.hostname); in dumpleases_main()
|
D | dhcpd.h | 84 char hostname[20]; member
|
D | dhcpd.c | 177 const char *hostname, int hostname_len) in add_lease() argument 188 if (hostname) { in add_lease() 192 if (hostname_len > sizeof(oldest->hostname)) in add_lease() 193 hostname_len = sizeof(oldest->hostname); in add_lease() 194 p = safe_strncpy(oldest->hostname, hostname, hostname_len); in add_lease() 556 lease.hostname, sizeof(lease.hostname) in read_leases()
|
/busybox-1.35.0/klibc-utils/ |
D | ipconfig.c.txt | 21 const char *hostname; 155 if (G.hostname && strcmp(G.hostname, ip) != 0) 156 bb_error_msg_and_die("hostname must be the same"); 157 G.hostname = ip; 291 bb_error_msg("hostname:'%s'", G.hostname); 306 //write_option("HOSTNAME", dev->hostname); hostname="STR"
|
/busybox-1.35.0/mailutils/ |
D | popmaildir.c | 99 char *hostname; in popmaildir_main() local 190 hostname = safe_gethostname(); in popmaildir_main() 214 monotonic_us(), (unsigned)pid, hostname); in popmaildir_main()
|
/busybox-1.35.0/util-linux/ |
D | mount.c | 1005 char hostname[256]; /* 1 */ member 1228 static inline int we_saw_this_host_before(const char *hostname UNUSED_PARAM) in we_saw_this_host_before() 1250 char *hostname; in nfsmount() local 1306 hostname = xstrdup(mp->mnt_fsname); in nfsmount() 1308 s = strchr(hostname, ':'); in nfsmount() 1313 s = strchr(hostname, ','); in nfsmount() 1320 if (!inet_aton(hostname, &server_addr.sin_addr)) { in nfsmount() 1321 hp = gethostbyname(hostname); in nfsmount() 1323 bb_simple_herror_msg(hostname); in nfsmount() 1601 if (bg && we_saw_this_host_before(hostname)) { in nfsmount() [all …]
|
/busybox-1.35.0/init/ |
D | bootchartd.c | 281 char *hostname; in finalize() local 289 hostname = safe_gethostname(); in finalize() 293 fprintf(header_fp, "title = Boot chart for %s (%s)\n", hostname, date_buf); in finalize() 295 free(hostname); in finalize()
|
/busybox-1.35.0/ |
D | TODO_unicode | 39 hostname - do we really want to protect against bad chars in it?
|
/busybox-1.35.0/sysklogd/ |
D | syslogd.c | 279 char *hostname; member 871 sprintf(G.printbuf, "%s %.64s %s %s\n", timestamp, G.hostname, res, msg); in timestamp_and_log() 1179 G.hostname = safe_gethostname(); in syslogd_main() 1180 *strchrnul(G.hostname, '.') = '\0'; in syslogd_main()
|
/busybox-1.35.0/miscutils/ |
D | devfsd.c | 1208 static char *hostname; in get_variable() local 1217 if (!hostname) in get_variable() 1218 hostname = safe_gethostname(); in get_variable() 1219 field_names[7] = hostname; in get_variable()
|