/external/toybox/toys/other/ |
D | stat.c | 58 xprintf("%s.%09d", toybuf, ts->tv_nsec); 65 if (type == 'a') xprintf("%lo", stat->st_mode & ~S_IFMT); in print_stat() 70 xprintf("%s", str); in print_stat() 71 } else if (type == 'b') xprintf("%llu", stat->st_blocks); in print_stat() 72 else if (type == 'B') xprintf("%lu", stat->st_blksize); in print_stat() 73 else if (type == 'd') xprintf("%ldd", stat->st_dev); in print_stat() 74 else if (type == 'D') xprintf("%llxh", stat->st_dev); in print_stat() 75 else if (type == 'f') xprintf("%lx", stat->st_mode); in print_stat() 83 xprintf("%s", t); in print_stat() 84 } else if (type == 'g') xprintf("%lu", stat->st_gid); in print_stat() [all …]
|
D | help.c | 37 xprintf("<a name=\"%s\"><h1>%s</h1><blockquote><pre>\n", t->name, t->name); in do_help() 42 if (toys.optflags & FLAG_h) xprintf("</blockquote></pre>\n"); in do_help() 62 xprintf("<html>\n<title>Toybox command list</title>\n<body>\n<p>\n"); in help_main() 64 xprintf("<a href=\"#%s\">%s</a>\n", toy_list[i].name, in help_main() 66 xprintf("</p>\n"); in help_main() 70 if (toys.optflags & FLAG_h) xprintf("<hr>\n<pre>\n"); in help_main() 72 if (toys.optflags & FLAG_h) xprintf("</pre>\n"); in help_main() 75 if (toys.optflags & FLAG_h) xprintf("</html>"); in help_main()
|
D | ifconfig.c | 123 xprintf("%-9s Link encap:%s ", name, types[i].title); in display_ifconfig() 125 xprintf("HWaddr "); in display_ifconfig() 126 for (i=0; i<6; i++) xprintf(":%02X"+!i, ifre.ifr_hwaddr.sa_data[i]); in display_ifconfig() 150 xprintf("%10c%s", ' ', (si->sin_family == AF_INET) ? "inet" : in display_ifconfig() 157 xprintf(" %s:%s ", addr[i].name, in display_ifconfig() 197 xprintf("%10cinet6 addr: %s/%d Scope: %s\n", in display_ifconfig() 206 xprintf("%10c", ' '); in display_ifconfig() 217 if (flags & mask) xprintf("%s ", *s); in display_ifconfig() 220 } else xprintf("[NO FLAGS] "); in display_ifconfig() 223 xprintf(" MTU:%d", ifre.ifr_mtu); in display_ifconfig() [all …]
|
D | lsattr.c | 103 xprintf("%5lu ", version); in print_file_attr() 113 xprintf("%-50s ", path); in print_file_attr() 116 if (name_found) xprintf(", "); //for formatting. in print_file_attr() 117 xprintf("%s", ptr->name); in print_file_attr() 121 if (!name_found) xprintf("---"); in print_file_attr() 129 xprintf("%s %s\n", toybuf, path); in print_file_attr() 156 xprintf("\n%s:\n", fpath); in retell_dir()
|
D | pmap.c | 42 xprintf("%u: %s\n", (int)pid, line); in pmap_main() 55 xprintf("Address%*cKbytes PSS Dirty Swap Mode Mapping\n", in pmap_main() 92 xprintf("%s- %s%s", toybuf, line[off]=='[' ? " " : "", name); in pmap_main() 103 xprintf("%.*s ------ ------ ------ ------\n", (int)(sizeof(long)*2), in pmap_main()
|
D | uptime.c | 43 xprintf(" %02d:%02d:%02d up ", now->tm_hour, now->tm_min, now->tm_sec); in uptime_main() 50 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main() 51 if (hours) xprintf("%2d:%02d, ", hours, minutes); in uptime_main()
|
D | rfkill.c | 94 xprintf("%u: %s: %s\n", rfevent.idx, name, type); in rfkill_main() 95 xprintf("\tSoft blocked: %s\n", rfevent.soft ? "yes" : "no"); in rfkill_main() 96 xprintf("\tHard blocked: %s\n", rfevent.hard ? "yes" : "no"); in rfkill_main()
|
D | makedevs.c | 48 xprintf("rootdir = %s\n", *toys.optargs); 51 xprintf("table = %s\n", TT.fname); 52 } else xprintf("table = <stdin>\n");
|
D | w.c | 23 xprintf("USER TTY LOGIN@ FROM"); in w_main() 29 xprintf("\n%-9.8s%-9.8s %-4.24s (%-1.12s)", x->ut_user, x->ut_line, in w_main()
|
D | lsmod.c | 23 xprintf("%-23s Size Used by\n", "Module"); in lsmod_main() 32 xprintf("%-19s %8s %s %s\n", name, size, refcnt, users); in lsmod_main()
|
D | sysctl.c | 80 if (!(toys.optflags & FLAG_n)) xprintf("%s", key); in do_show_keys() 81 if (!(toys.optflags & (FLAG_N|FLAG_n))) xprintf(" = "); in do_show_keys() 83 if (!(toys.optflags & FLAG_N)) xprintf("%s", data); in do_show_keys()
|
D | losetup.c | 122 xprintf("%s: [%04llx]:%llu (%s)", device, loop->lo_device, loop->lo_inode, 124 if (loop->lo_offset) xprintf(", offset %llu", loop->lo_offset); 125 if (loop->lo_sizelimit) xprintf(", sizelimit %llu", loop->lo_sizelimit);
|
D | mix.c | 57 xprintf("%s:%s = left:%d\t right:%d\n", 59 else xprintf("%s:%s = %d\n", TT.dev, channels[channel], level);
|
/external/toybox/toys/pending/ |
D | traceroute.c | 214 xprintf("%2d", ttl); in do_trace() 233 xprintf(" *"); in do_trace() 302 xprintf(" %s (", host); in do_trace() 303 else xprintf(" %s (", inet_ntoa( in do_trace() 306 xprintf(" %s", inet_ntoa( in do_trace() 308 if (!(toys.optflags & FLAG_n)) xprintf(")"); in do_trace() 311 xprintf(" %u.%03u ms", delta / 1000, delta % 1000); in do_trace() 312 if (toys.optflags & FLAG_l) xprintf(" (%d)", rcv_pkt->ip_ttl); in do_trace() 314 xprintf(" %d bytes from %s : icmp type %d code %d\t", in do_trace() 318 } else xprintf("\t!H"); in do_trace() [all …]
|
D | fdisk.c | 142 xprintf("%2x %-22s\t\t%2x %-22.22s\n", sys_types[i].id, sys_types[i].type, in list_types() 144 if (adjust) xprintf("%2x %-22s\n",sys_types[size-1].id, sys_types[size-1].type); in list_types() 247 xprintf("Warning: deleting partitions after 60\n"); in read_ebr() 328 xprintf("Building a new DOS Disklabel. The changes will\n" in create_empty_doslabel() 366 xprintf("Device contains neither a valid DOS " in read_mbr() 384 xprintf("\nThe number of cylinders for this disk is set to %lu.\n" in read_mbr() 436 xprintf("Partition %u has different physical/logical beginings (Non-Linux?): \n", partition+1); in consistency_check() 437 xprintf("phys = (%u %u %u) ",physbc, physbh, physbs); in consistency_check() 438 xprintf("logical = (%u %u %u)\n", lbc, lbh, lbs); in consistency_check() 441 xprintf("Partition %u has different physical/logical endings: \n", partition+1); in consistency_check() [all …]
|
D | netstat.c | 181 …xprintf("%3s %6d %6d %-51s %-51s %-12s%s\n", label, rxq, txq, lip, rip, ss_state, get_pid_name(i… in display_data() 183 xprintf("%3s %6d %6d %-51s %-51s %-12s\n", label, rxq, txq, lip, rip, ss_state); in display_data() 185 …xprintf("%3s %6d %6d %-23s %-23s %-12s%s\n", label, rxq, txq, lip, rip, ss_state, get_pid_name(i… in display_data() 186 else xprintf("%3s %6d %6d %-23s %-23s %-12s\n", label, rxq, txq, lip, rip, ss_state); in display_data() 364 …xprintf("%-5s %-6ld %-11s %-10s %-13s %6lu ", (!label ? "unix" : "??"), refcount, sock_flags, sock… in show_unix_sockets() 365 if (toys.optflags & FLAG_p) xprintf("%-20s", get_pid_name(inode)); in show_unix_sockets() 369 xprintf("%s\n", bptr); in show_unix_sockets() 487 …xprintf("\nProto Recv-Q Send-Q %-51s %-51s %-12s%s\n", "Local Address", "Foreign Address", "State"… in show_header() 489 …xprintf("\nProto Recv-Q Send-Q %-23s %-23s %-12s%s\n", "Local Address", "Foreign Address", "State"… in show_header() 491 xprintf("\nProto Recv-Q Send-Q %-51s %-51s State \n", "Local Address", "Foreign Address"); in show_header() [all …]
|
D | watch.c | 45 xprintf("\033[H\033[J"); 50 if (width > (hlen + len)) xprintf("%s", header); 52 xprintf("%*s\n",width + ((width > (hlen + len))?-hlen:0) + 1, ctime(&t)); 54 xprintf("\n\n"); 59 xprintf("command exit with non-zero status, press enter to exit\n");
|
D | dumpleases.c | 46 …xprintf("Mac Address IP Address Host Name Expires %s\n", (toys.optflags & FLA… in dumpleases_main() 58 xprintf(" %-16s%-20s", inet_ntoa(addr), lease_struct.hostname ); in dumpleases_main() 70 if (dt) xprintf("%u days ", dt); in dumpleases_main() 71 xprintf("%02u:%02u:%02u\n", hr, m, (unsigned)expires); in dumpleases_main()
|
D | tcpsvd.c | 181 xprintf("%s: end %d exit %d\n",toys.which->name, pid_n, WEXITSTATUS(status)); in handle_exit() 183 xprintf("%s: end %d signaled %d\n",toys.which->name, pid_n, WTERMSIG(status)); in handle_exit() 184 if (TT.cn > 1) xprintf("%s: status %d/%d\n",toys.which->name, TT.count_all, TT.cn); in handle_exit() 258 if (toys.optflags & FLAG_v) xprintf("got signal %d, exit\n", sig); in handle_signal() 296 xprintf("%s: listening on %s, starting, uid %u, gid %u\n" in tcpsvd_main() 299 xprintf("%s: listening on %s, starting\n", toys.which->name, server); in tcpsvd_main() 377 xprintf("%s: start %d %s-%s",toys.which->name, getpid(), server, client); in tcpsvd_main() 378 if (toys.optflags & FLAG_h) xprintf(" (%s-%s)", serv, clie); in tcpsvd_main() 381 xprintf("%s: status %d/%d\n",toys.which->name, TT.count_all, TT.cn); in tcpsvd_main()
|
D | sulogin.c | 35 xprintf("\n Timed out - Normal startup\n"); 59 xprintf("Normal startup.\n"); in validate_password() 110 if (r == 1) xprintf("Incorrect Login.\n"); in sulogin_main()
|
D | arping.c | 92 xprintf("Sent %u probe(s) (%u broadcast(s))\n", TT.sent_nr, TT.brd_sent); in done() 93 xprintf("Received %u repl%s (%u request(s), %u broadcast(s))\n", in done() 174 xprintf(" %u.%03ums\n", delta / 1000, delta % 1000); in recv_from() 227 xprintf("Interface \"%s\" is not ARPable\n", TT.iface); in arping_main() 280 xprintf("ARPING to %s", inet_ntoa(dest_addr)); in arping_main() 281 xprintf(" from %s via %s\n", inet_ntoa(src_addr), TT.iface); in arping_main()
|
/external/toybox/toys/posix/ |
D | ls.c | 224 xprintf("%s\n", new->name); in filter() 337 xprintf("%s:\n", path); in listfiles() 354 xprintf("total %llu\n", blocks); in listfiles() 417 xprintf("%*lu ", totals[1], (unsigned long)st->st_ino); in listfiles() 419 xprintf("%*lu ", totals[6], (unsigned long)st->st_blocks); in listfiles() 453 xprintf(" %s ", thyme); in listfiles() 464 } else xprintf("%s", sort[next]->name); in listfiles() 465 if (color) xprintf("\033[0m"); in listfiles() 487 if (curcol < 255) xprintf("%s", toybuf+255-curcol); in listfiles()
|
D | head.c | 35 if (TT.file_no++) xprintf("\n"); 36 xprintf("==> %s <==\n", name);
|
/external/toybox/toys/lsb/ |
D | umount.c | 79 if (toys.optflags & FLAG_v) xprintf("%s unmounted\n", dir); 89 xprintf("%s cleared\n", dev); 99 if (toys.optflags & FLAG_v) xprintf("%s remounted ro\n", dir);
|
D | passwd.c | 48 xprintf("BAD PASSWORD: %s\n",msg); in strength_check() 54 xprintf("BAD PASSWORD: %s\n",msg); in strength_check() 59 xprintf("BAD PASSWORD: %s\n",msg); in strength_check()
|