Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 32) sorted by relevance

12

/busybox-1.35.0/examples/var_service/fw/etc/
Dhosts11 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/
Dhostname-i-works4 # # ./busybox hostname -i
6 # # hostname -i
9 test x$(hostname -i) = x$(busybox hostname -i)
Dhostname-works1 test x$(hostname) = x$(busybox hostname)
Dhostname-s-works1 test x$(hostname -s) = x$(busybox hostname -s)
Dhostname-d-works1 f=$(busybox hostname -f).
2 d=$(busybox hostname -d)
/busybox-1.35.0/libbb/
Dutmp.c17 …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()
Dlogin.c131 char *hostname = safe_gethostname(); in print_login_prompt() local
133 fputs_stdout(hostname); in print_login_prompt()
136 free(hostname); in print_login_prompt()
Dobscure.c102 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/
Dlpr.c103 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/
Darp.c408 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()
Dping.c240 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 …]
Dnslookup.c95 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()
Dtelnetd.c524 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()
DConfig.src46 "can't resolve 'hostname.com'" and want to know more.
/busybox-1.35.0/examples/var_service/dhcp_if/
Drun19 --hostname=null \
/busybox-1.35.0/networking/udhcp/
Ddumpleases.c83 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()
Ddhcpd.h84 char hostname[20]; member
Ddhcpd.c177 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/
Dipconfig.c.txt21 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/
Dpopmaildir.c99 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/
Dmount.c1005 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/
Dbootchartd.c281 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/
DTODO_unicode39 hostname - do we really want to protect against bad chars in it?
/busybox-1.35.0/sysklogd/
Dsyslogd.c279 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/
Ddevfsd.c1208 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()

12