/busybox-1.35.0/libbb/ |
D | human_readable.c | 35 const char *u; in make_human_readable_str() local 45 u = unit_chars; in make_human_readable_str() 56 u++; in make_human_readable_str() 76 return auto_string(xasprintf(fmt, val, frac, *u)); in make_human_readable_str() 88 unsigned v, u, idx = 0; in smart_ulltoa5() local 100 u = v / 10; in smart_ulltoa5() 105 c = buf[0] = " 123456789"[u/1000]; in smart_ulltoa5() 107 c = buf[1] = fmt[u/100%10]; in smart_ulltoa5() 109 c = buf[2] = fmt[u/10%10]; in smart_ulltoa5() 111 buf[3] = fmt[u%10]; in smart_ulltoa5() [all …]
|
D | udp_io.c | 48 } u; in send_to_from() 65 memset(&u, 0, sizeof(u)); in send_to_from() 72 msg.msg_control = &u; in send_to_from() 73 msg.msg_controllen = sizeof(u); in send_to_from() 135 } u; in recv_from_to() 148 msg.msg_control = &u; in recv_from_to() 149 msg.msg_controllen = sizeof(u); in recv_from_to()
|
D | xconnect.c | 80 if (get_name(fd, &lsa.u.sa, &lsa.len) != 0) in get_lsa() 86 get_name(fd, &lsa_ptr->u.sa, &lsa_ptr->len); in get_lsa() 195 r->u.sa.sa_family = AF_UNIX; 196 sun = (struct sockaddr_un *)&r->u.sa; 254 r->u.sa.sa_family = AF_INET; 255 r->u.sin.sin_addr = in4; 267 r->u.sa.sa_family = AF_INET6; 268 r->u.sin6.sin6_addr = in6; 301 memcpy(&r->u.sa, used_res->ai_addr, used_res->ai_addrlen); 304 set_nport(&r->u.sa, htons(port)); [all …]
|
/busybox-1.35.0/libpwdgrp/ |
D | uidgid_get.c | 31 int FAST_FUNC get_uidgid(struct bb_uidgid_t *u, const char *ug) in get_uidgid() argument 48 u->uid = n; in get_uidgid() 52 u->gid = pwd ? pwd->pw_gid : n; in get_uidgid() 59 u->uid = pwd->pw_uid; in get_uidgid() 60 u->gid = pwd->pw_gid; in get_uidgid() 66 u->gid = n; in get_uidgid() 72 u->gid = gr->gr_gid; in get_uidgid() 76 void FAST_FUNC xget_uidgid(struct bb_uidgid_t *u, const char *ug) in xget_uidgid() argument 78 if (!get_uidgid(u, ug)) in xget_uidgid() 89 void FAST_FUNC parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) in parse_chown_usergroup_or_die() argument [all …]
|
/busybox-1.35.0/coreutils/ |
D | expr.c | 112 } u; member 139 v->u.i = i; in int_value() 152 v->u.s = xstrdup(s); in str_value() 161 free(v->u.s); in freev() 170 return v->u.i == 0; in null() 172 return v->u.s[0] == '\0' || LONE_CHAR(v->u.s, '0'); in null() 180 v->u.s = xasprintf("%" PF_REZ "d", PF_REZ_TYPE v->u.i); in tostring() 195 i = STRTOL(v->u.s, &e, 10); in toarith() 196 if ((v->u.s == e) || *e) in toarith() 198 free(v->u.s); in toarith() [all …]
|
D | wc.c | 147 unsigned u; in wc_main() local 233 u = 0; in wc_main() 235 if (print_type & (1 << u)) { in wc_main() 236 printf(s, pcounts[u]); in wc_main() 239 totals[u] += pcounts[u]; in wc_main() 240 } while (++u < NUM_WCS); in wc_main()
|
D | chown.c | 109 uid_t u = (param.ugid.uid == (uid_t)-1L) ? statbuf->st_uid : param.ugid.uid; in fileAction() local 112 if (param.chown_func(fileName, u, g) == 0) { in fileAction() 114 || (OPT_CHANGED && (statbuf->st_uid != u || statbuf->st_gid != g)) in fileAction() 117 fileName, (unsigned)u, (unsigned)g); in fileAction()
|
/busybox-1.35.0/shell/hush_test/hush-glob/ |
D | glob_altvalue1.right | 1 1u: glob_altvalue1.tests 2 2u: glob_altvalue1.t* 3 3u: glob_altvalue1.t* 4 4u: glob_altvalue1.t*
|
D | glob_altvalue1.tests | 3 echo 1u: ${x:+glob_altvalue1.t*} 4 echo 2u: ${x:+'glob_altvalue1.t*'} 5 echo 3u: ${x:+"glob_altvalue1.t*"} 6 echo 4u: ${x:+glob_altvalue1.t\*} 7 ##echo 5u: ${x:+"glob_altvalue1.t\*"}
|
/busybox-1.35.0/shell/ash_test/ash-glob/ |
D | glob_altvalue1.right | 1 1u: glob_altvalue1.tests 2 2u: glob_altvalue1.t* 3 3u: glob_altvalue1.t* 4 4u: glob_altvalue1.t*
|
D | glob_altvalue1.tests | 3 echo 1u: ${x:+glob_altvalue1.t*} 4 echo 2u: ${x:+'glob_altvalue1.t*'} 5 echo 3u: ${x:+"glob_altvalue1.t*"} 6 echo 4u: ${x:+glob_altvalue1.t\*} 7 ##echo 5u: ${x:+"glob_altvalue1.t\*"}
|
/busybox-1.35.0/shell/ash_test/ash-vars/ |
D | var_subst_in_for.right | 5 Testing: in u $empty v 6 .u. 8 Testing: in u " $empty" v 9 .u. 12 Testing: in u $empty $empty$a v 13 .u.
|
D | var_subst_in_for.tests | 8 echo 'Testing: in u $empty v' 10 for a in u $empty v; do echo ".$a."; done 12 echo 'Testing: in u " $empty" v' 14 for a in u " $empty" v; do echo ".$a."; done 16 echo 'Testing: in u $empty $empty$a v' 18 for a in u $empty $empty$a v; do echo ".$a."; done
|
/busybox-1.35.0/shell/hush_test/hush-vars/ |
D | var_subst_in_for.right | 5 Testing: in u $empty v 6 .u. 8 Testing: in u " $empty" v 9 .u. 12 Testing: in u $empty $empty$a v 13 .u.
|
D | var_subst_in_for.tests | 8 echo 'Testing: in u $empty v' 10 for a in u $empty v; do echo ".$a."; done 12 echo 'Testing: in u " $empty" v' 14 for a in u " $empty" v; do echo ".$a."; done 16 echo 'Testing: in u $empty $empty$a v' 18 for a in u $empty $empty$a v; do echo ".$a."; done
|
/busybox-1.35.0/include/ |
D | xatonum.h | 15 unsigned type xstrto##UT##_range_sfx(const char *str, int b, unsigned type l, unsigned type u, cons… 16 unsigned type xstrto##UT##_range(const char *str, int b, unsigned type l, unsigned type u) FAST_FUN… 19 unsigned type xato##UT##_range_sfx(const char *str, unsigned type l, unsigned type u, const struct … 20 unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u) FAST_FUNC; \ 23 type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) F… 24 type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \ 26 type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC;… 27 type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \ 40 unsigned narrow xstrto##UN##_range_sfx(const char *str, int b, unsigned narrow l, unsigned narrow u… 41 { return xstrto##UW##_range_sfx(str, b, l, u, sfx); } \ [all …]
|
/busybox-1.35.0/shell/hush_test/hush-test2/ |
D | strops3.right | 5 2u:YES:0 6 3u:YES:0 7 4u:YES:0
|
D | strops3.tests | 11 [[ $v =~ . ]]; echo 2u:YES:$? 12 [[ $v =~ [$v] ]]; echo 3u:YES:$? 13 [[ $v =~ [^a] ]]; echo 4u:YES:$?
|
/busybox-1.35.0/testsuite/id/ |
D | id-u-works | 1 test x$(id -u) = x$(busybox id -u)
|
/busybox-1.35.0/networking/ |
D | tcpudp.c | 370 sock = xsocket(lsa->u.sa.sa_family, tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in tcpudpsvd_main() 373 xbind(sock, &lsa->u.sa, sa_len); in tcpudpsvd_main() 391 char *addr = xmalloc_sockaddr2dotted(&lsa->u.sa); in tcpudpsvd_main() 419 conn = accept(sock, &remote.u.sa, &remote.len); in tcpudpsvd_main() 425 &remote.u.sa, &local.u.sa, sa_len); in tcpudpsvd_main() 438 remote_addr = xmalloc_sockaddr2dotted_noport(&remote.u.sa); in tcpudpsvd_main() 461 sock = xsocket(lsa->u.sa.sa_family, SOCK_DGRAM, 0); in tcpudpsvd_main() 466 xconnect(0, &remote.u.sa, sa_len); in tcpudpsvd_main() 471 xbind(sock, &lsa->u.sa, sa_len); in tcpudpsvd_main() 486 set_nport(&localp->u.sa, htons(local_port)); in tcpudpsvd_main() [all …]
|
D | nc_bloaty.c | 294 rr = connect(fd, &themaddr->u.sa, themaddr->len); in connect_w_timeout() 326 getsockname(netfd, &ouraddr->u.sa, &ouraddr->len); in dolisten() 329 addr = xmalloc_sockaddr2dotted(&ouraddr->u.sa); in dolisten() 357 xconnect(netfd, &themaddr->u.sa, themaddr->len); in dolisten() 365 &remend.u.sa, &ouraddr->u.sa, ouraddr->len); in dolisten() 378 xconnect(netfd, &remend.u.sa, ouraddr->len); in dolisten() 386 rr = accept(netfd, &remend.u.sa, &remend.len); in dolisten() 392 sv_port = get_nport(&remend.u.sa); /* save */ in dolisten() 393 port = get_nport(&themaddr->u.sa); in dolisten() 397 set_nport(&remend.u.sa, 0); /* blot out remote port# */ in dolisten() [all …]
|
D | vconfig.c | 65 } u; member 131 ifr.u.name_type = *xfind_str(name_types + 1, argv[1]); in vconfig_main() 144 ifr.u.flag = xatou_range(p, 0, 1); in vconfig_main() 149 ifr.u.VID = xatou_range(p, 0, VLAN_GROUP_ARRAY_LEN - 1); in vconfig_main() 152 ifr.u.skb_priority = xatou(p); in vconfig_main()
|
D | traceroute.c | 478 &G.from_lsa->u.sa, G.to, G.from_lsa->len); in wait_for_reply() 483 &G.from_lsa->u.sa, &G.from_lsa->len); in wait_for_reply() 578 set_nport(&dest_lsa->u.sa, htons(port + seq)); in send_probe() 581 res = xsendto(sndsock, out, len, &dest_lsa->u.sa, dest_lsa->len); in send_probe() 631 auto_string(xmalloc_sockaddr2dotted_noport(&G.from_lsa->u.sa)), in hexdump_if_verbose() 667 inet_ntoa(G.from_lsa->u.sin.sin_addr)); in packet4_ok() 750 auto_string(xmalloc_sockaddr2dotted_noport(&G.from_lsa->u.sa))); in packet6_ok() 825 char *ina = auto_string(xmalloc_sockaddr2dotted_noport(&G.from_lsa->u.sa)); in print() 832 || G.from_lsa->u.sin.sin_addr.s_addr != INADDR_ANY in print() 835 n = auto_string(xmalloc_sockaddr2host_noport(&G.from_lsa->u.sa)); in print() [all …]
|
/busybox-1.35.0/shell/ |
D | cttyhack.c | 112 } u; in cttyhack_main() local 145 if (ioctl(0, VT_GETSTATE, &u.vt) == 0) { in cttyhack_main() 147 sprintf(console + 8, "S%u" + 1, (int)u.vt.v_active); in cttyhack_main() 152 if (ioctl(0, TIOCGSERIAL, &u.sr) == 0) { in cttyhack_main() 154 sprintf(console + 8, "S%u", (int)u.sr.line); in cttyhack_main()
|
/busybox-1.35.0/modutils/ |
D | depmod.c | 56 char *u; in parse_module() local 59 for (u = ptr; *u; u++) in parse_module() 60 if (*u == '-') in parse_module() 61 *u = '_'; in parse_module()
|