Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 145) sorted by relevance

123456

/busybox-1.35.0/networking/
Dtls_sp_c32.c84 const uint64_t* r = (void*)rr; in sp_256_to_bin_8() local
88 r += 4; in sp_256_to_bin_8()
90 r--; in sp_256_to_bin_8()
91 move_to_unaligned64(a, SWAP_BE64(*r)); in sp_256_to_bin_8()
96 static void sp_256_to_bin_8(const sp_digit* r, uint8_t* a) in sp_256_to_bin_8() argument
100 sp_256_norm_8(r); in sp_256_to_bin_8()
102 r += 8; in sp_256_to_bin_8()
104 r--; in sp_256_to_bin_8()
105 move_to_unaligned32(a, SWAP_BE32(*r)); in sp_256_to_bin_8()
121 uint64_t* r = (void*)rr; in sp_256_from_bin_8() local
[all …]
Dtls_fe.c143 static void fprime_add(byte *r, const byte *a, const byte *modulus)
145 raw_add(r, a);
146 raw_try_sub(r, modulus);
151 static void fprime_sub(byte *r, const byte *a, const byte *modulus)
153 raw_add(r, modulus);
154 raw_try_sub(r, a);
155 raw_try_sub(r, modulus);
160 static void fprime_mul(byte *r, const byte *a, const byte *b,
166 XMEMSET(r, 0, F25519_SIZE);
173 c |= ((word16)r[j]) << 1;
[all …]
/busybox-1.35.0/shell/ash_test/ash-vars/
Dvar_bash3.tests2 r=${a//b/\041#}
3 echo 1 $r
8 r=${a//b/\\041#}
9 echo 4 $r
15 r=${a//b/$b}
16 echo 7 $r
22 r="${a//b/$b}"
23 echo 10 $r
29 r="${a//b/$b}"
30 echo 13 $r
[all …]
Dvar_bash4.tests20 r=${v/\*/_\\_\z_}
21 echo 'Unquoted =: ' "$r"
23 r="${v/\*/_\\_\z_}"
24 echo 'Quoted =: ' "$r"
28 r=${v/\\*/_\\_\z_}
29 echo 'Unquoted =: ' "$r"
31 r="${v/\\*/_\\_\z_}"
32 echo 'Quoted =: ' "$r"
42 r=${v/\b/_\\_\z_}
43 echo 'Unquoted =: ' "$r"
[all …]
Dvar_wordsplit_ifs3.right4 Unquoted%:<r>
8 Unquoted#:<r>
11 Quoted%:<q w e r t >
12 Quoted#:< w e r t y>
Dvar_bash5.tests6 r='e/f'
9 echo "3 ${v/$s/$r}"
13 r='e\f'
16 echo "6 ${v/$s/$r}"
20 r='e\\f'
23 echo "9 ${v/$s/$r}"
/busybox-1.35.0/shell/hush_test/hush-vars/
Dvar_bash3.tests2 r=${a//b/\041#}
3 echo 1 $r
8 r=${a//b/\\041#}
9 echo 4 $r
15 r=${a//b/$b}
16 echo 7 $r
22 r="${a//b/$b}"
23 echo 10 $r
29 r="${a//b/$b}"
30 echo 13 $r
[all …]
Dvar_bash4.tests20 r=${v/\*/_\\_\z_}
21 echo 'Unquoted =: ' "$r"
23 r="${v/\*/_\\_\z_}"
24 echo 'Quoted =: ' "$r"
28 r=${v/\\*/_\\_\z_}
29 echo 'Unquoted =: ' "$r"
31 r="${v/\\*/_\\_\z_}"
32 echo 'Quoted =: ' "$r"
42 r=${v/\b/_\\_\z_}
43 echo 'Unquoted =: ' "$r"
[all …]
Dvar_wordsplit_ifs3.right4 Unquoted%:<r>
8 Unquoted#:<r>
11 Quoted%:<q w e r t >
12 Quoted#:< w e r t y>
Dvar_bash5.tests6 r='e/f'
9 echo "3 ${v/$s/$r}"
13 r='e\f'
16 echo "6 ${v/$s/$r}"
20 r='e\\f'
23 echo "9 ${v/$s/$r}"
/busybox-1.35.0/libbb/
Dkernel_version.c22 int r; in get_linux_version_code() local
26 r = 1; in get_linux_version_code()
28 r <<= 8; in get_linux_version_code()
30 r += atoi(++t); in get_linux_version_code()
33 } while (r < 0x1000000); in get_linux_version_code()
34 return r - 0x1000000; in get_linux_version_code()
Dplatform.c40 int r; in vasprintf() local
45 r = vsnprintf(buf, 128, format, p); in vasprintf()
50 if (r < 128) { in vasprintf()
53 return (*string_ptr ? r : -1); in vasprintf()
56 *string_ptr = malloc(r+1); in vasprintf()
57 r = (*string_ptr ? vsnprintf(*string_ptr, r+1, format, p2) : -1); in vasprintf()
60 return r; in vasprintf()
69 int r; in dprintf() local
73 r = vasprintf(&string_ptr, format, p); in dprintf()
75 if (r >= 0) { in dprintf()
[all …]
Dstrrstr.c17 char *r = NULL; in strrstr() local
24 return r; in strrstr()
25 r = p; in strrstr()
55 const char *r = strrstr(test_array[i].h, test_array[i].n); in BBUNIT_DEFINE_TEST() local
56 if (r == NULL) in BBUNIT_DEFINE_TEST()
57 r = test_array[i].h - 1; in BBUNIT_DEFINE_TEST()
58 BBUNIT_ASSERT_EQ(r, test_array[i].h + test_array[i].pos); in BBUNIT_DEFINE_TEST()
Dget_line_from_file.c130 char *r;
133 r = fgets(&linebuf[idx], 0x100, file);
134 if (!r) {
159 char *r = xmalloc_fgets_internal(file, &sz);
160 if (r && r[sz - 1] == '\n')
161 r[--sz] = '\0';
162 return r; /* not xrealloc(r, sz + 1)! */
175 char *r = xmalloc_fgets_internal(file, &sz);
176 if (!r)
177 return r;
[all …]
Dcorrect_password.c53 int r; in get_passwd() local
57 r = getspnam_r(pw->pw_name, &spw, buffer, SHADOW_BUFSIZE, &result); in get_passwd()
58 pass = (r || !result) ? "aa" : result->sp_pwdp; in get_passwd()
75 int r; in check_password() local
83 r = (strcmp(encrypted, pw_pass) == 0); in check_password()
85 return r; in check_password()
103 int r; in ask_and_check_password_extended() local
115 r = check_password(pw, plaintext); in ask_and_check_password_extended()
117 return r; in ask_and_check_password_extended()
Dsysconf.c14 long r = sysconf(_SC_ARG_MAX); in bb_arg_max() local
19 if ((unsigned long)r > 64*1024*1024) in bb_arg_max()
20 r = 64*1024*1024; in bb_arg_max()
22 return r; in bb_arg_max()
Dfclose_nonstdin.c18 int r = ferror(f); /* NB: does NOT set errno! */ in fclose_if_not_stdin() local
19 if (r) in fclose_if_not_stdin()
22 return (r | fclose(f)); /* fclose does set errno on error */ in fclose_if_not_stdin()
23 return r; in fclose_if_not_stdin()
Dxatonum_template.c24 unsigned type r; in xstrtou() local
37 r = XSTR_STRTOU(numstr, &e, base); in xstrtou()
52 if (XSTR_UTYPE_MAX / suffixes->mult < r) in xstrtou()
54 r *= suffixes->mult; in xstrtou()
67 if (r >= lower && r <= upper) in xstrtou()
68 return r; in xstrtou()
129 type r; in xstrto() local
140 r = xstrtou(_range_sfx)(p, base, 0, u, suffixes); in xstrto()
143 r = -r; in xstrto()
146 if (r < lower || r > upper) { in xstrto()
[all …]
/busybox-1.35.0/networking/libiproute/
Diprule.c56 struct rtmsg *r = NLMSG_DATA(n); in print_rule() local
64 len -= NLMSG_LENGTH(sizeof(*r)); in print_rule()
69 parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); in print_rule()
71 if (r->rtm_family == AF_INET) in print_rule()
73 else if (r->rtm_family == AF_INET6) in print_rule()
85 if (r->rtm_src_len != host_len) { in print_rule()
87 rt_addr_n2a(r->rtm_family, RTA_DATA(tb[RTA_SRC])), in print_rule()
88 r->rtm_src_len in print_rule()
91 fputs_stdout(format_host(r->rtm_family, in print_rule()
96 } else if (r->rtm_src_len) { in print_rule()
[all …]
Diproute.c70 struct rtmsg *r = NLMSG_DATA(n); in print_route() local
85 len -= NLMSG_LENGTH(sizeof(*r)); in print_route()
90 parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); in print_route()
97 tid = r->rtm_table; in print_route()
99 if (r->rtm_family == AF_INET6) in print_route()
101 else if (r->rtm_family == AF_INET) in print_route()
104 if (r->rtm_family == AF_INET6) { in print_route()
107 if (!(r->rtm_flags & RTM_F_CLONED)) { in print_route()
111 if (r->rtm_flags & RTM_F_CLONED) { in print_route()
115 if (r->rtm_type != RTN_LOCAL) { in print_route()
[all …]
/busybox-1.35.0/coreutils/
Dexpr.c217 static int cmp_common(VALUE *l, VALUE *r, int op) in cmp_common() argument
222 rr = r->u.i; in cmp_common()
223 if (l->type == STRING || r->type == STRING) { in cmp_common()
225 tostring(r); in cmp_common()
226 ll = strcmp(l->u.s, r->u.s); in cmp_common()
247 static arith_t arithmetic_common(VALUE *l, VALUE *r, int op) in arithmetic_common() argument
251 if (!toarith(l) || !toarith(r)) in arithmetic_common()
254 ri = r->u.i; in arithmetic_common()
346 VALUE *r, *i1, *i2; in eval6() local
360 r = eval6(); in eval6()
[all …]
Dsum.c44 int fd, r; in sum_file() local
59 r = (fd && close(fd) != 0); in sum_file()
60 if (!bytes_read && !r) in sum_file()
71 r = 0; in sum_file()
74 s += buf[r++]; in sum_file()
83 r = (s & 0xffff) + ((s & 0xffffffff) >> 16); in sum_file()
84 s = (r & 0xffff) + (r >> 16); in sum_file()
/busybox-1.35.0/testsuite/
Ddc.tests123 r="`basename "$f" .dc`_results.txt"
124 test -f "$r" || continue
127 "{ { dc $f 2>&1; echo E:\$? >&2; } | diff -u - $r; echo E:\$?; } 2>&1" \
133 r="`basename "$f" .dc`_results.txt"
134 test -f "$r" || continue
137 "{ { dc -x $f 2>&1; echo E:\$? >&2; } | diff -u - $r; echo E:\$?; } 2>&1" \
/busybox-1.35.0/shell/hush_test/hush-redir/
Dredir_stdin1.tests2 echo read2 | $THIS_SH -c 'read r <redir_stdin1.tests
3 echo $r
4 read r
5 echo $r
/busybox-1.35.0/shell/ash_test/ash-redir/
Dredir_stdin1.tests2 echo read2 | $THIS_SH -c 'read r <redir_stdin1.tests
3 echo $r
4 read r
5 echo $r

123456