/coreutils/tests/du/ |
D | threshold.sh | 40 S0=$(stat --format=%s a/b/0) 41 S1=$(stat --format=%s a/b/1) 42 S2=$(stat --format=%s a/b/2) 43 S3=$(stat --format=%s a/b/3) 138 s=$(expr $Bab0123 + 1) # block size 139 dutest " -t $s" '' || fail=1 140 dutest " -a -t $s" '' || fail=1 141 dutest " -S -t $s" '' || fail=1 142 dutest " -a -S -t $s" '' || fail=1 143 dutest " -t -$s" 'a a/b a/c' || fail=1 [all …]
|
/coreutils/tests/cp/ |
D | preserve-link.sh | 31 rm -Rf s 32 mkdir s || framework_failure_ 35 touch s/f || framework_failure_ 36 ln s/f s/linkm || framework_failure_ 39 ln s/f s/linke || framework_failure_ 42 ln s/f s/fileo || framework_failure_ 45 ln s/f s/fileu || framework_failure_ 53 mkdir -p t/s/ || framework_failure_ 56 touch t/s/$f || framework_failure_ 59 ln t/s/$f t/s/linke || framework_failure_ [all …]
|
D | parent-perm.sh | 48 test $(stat --printf %A $dir|sed s/s/x/g) \ 49 = $(stat --printf %A e/$dir|sed s/s/x/g) ||
|
/coreutils/gl/lib/ |
D | randread.c | 119 struct randread_source *s = xmalloc (sizeof *s); in simple_new() local 120 s->source = source; in simple_new() 121 s->handler = randread_error; in simple_new() 122 s->handler_arg = handler_arg; in simple_new() 123 return s; in simple_new() 153 randread_free_body (struct randread_source *s) in randread_free_body() argument 155 FILE *source = s->source; in randread_free_body() 156 explicit_bzero (s, sizeof *s); in randread_free_body() 157 free (s); in randread_free_body() 180 struct randread_source *s; in randread_new() local [all …]
|
D | randint.c | 73 struct randint_source *s = xmalloc (sizeof *s); in randint_new() local 74 s->source = source; in randint_new() 75 s->randnum = s->randmax = 0; in randint_new() 76 return s; in randint_new() 93 randint_get_source (struct randint_source const *s) in randint_get_source() argument 95 return s->source; in randint_get_source() 114 randint_genmax (struct randint_source *s, randint genmax) in randint_genmax() argument 116 struct randread_source *source = s->source; in randint_genmax() 117 randint randnum = s->randnum; in randint_genmax() 118 randint randmax = s->randmax; in randint_genmax() [all …]
|
D | rand-isaac.c | 90 isaac_refill (struct isaac_state *s, isaac_word result[ISAAC_WORDS]) in isaac_refill() argument 93 isaac_word a = s->a; in isaac_refill() 94 isaac_word b = s->b + (++s->c); in isaac_refill() 97 isaac_word *m = s->m; in isaac_refill() 112 m[i] = y = ind (s->m, x) + a + b; \ in isaac_refill() 113 r[i] = b = just (ind (s->m, y >> ISAAC_WORDS_LOG) + x); \ in isaac_refill() 124 while ((m += 4) < s->m + HALF); in isaac_refill() 134 while ((m += 4) < s->m + ISAAC_WORDS); in isaac_refill() 136 s->a = a; in isaac_refill() 137 s->b = b; in isaac_refill() [all …]
|
/coreutils/src/ |
D | echo.c | 201 char const *s = argv[0]; in main() local 204 while ((c = *s++)) in main() 206 if (c == '\\' && *s) in main() 208 switch (c = *s++) in main() 221 unsigned char ch = *s; in main() 224 s++; in main() 226 ch = *s; in main() 229 s++; in main() 236 if (! ('0' <= *s && *s <= '7')) in main() 238 c = *s++; in main() [all …]
|
D | expr.c | 83 char *s; member 115 mbs_logical_cspn (char const *s, char const *accept) in mbs_logical_cspn() argument 125 for (char const *p = s; *p; ) in mbs_logical_cspn() 149 size_t i = strcspn (s, accept); in mbs_logical_cspn() 150 if (s[i]) in mbs_logical_cspn() 166 mbs_logical_substr (char const *s, size_t pos, size_t len) in mbs_logical_substr() argument 169 idx_t llen = mb_cur_max <= 1 ? strlen (s) : mbslen (s); /* logical length */ in mbs_logical_substr() 174 char const *substart = s; in mbs_logical_substr() 186 for (idx_t idx = 1; *s && vlen; idx++) in mbs_logical_substr() 188 idx_t char_bytes = mcel_scanz (s).len; in mbs_logical_substr() [all …]
|
D | tr.c | 184 char *s; member 194 return es->s[i] == c && !es->escaped[i]; in es_match() 418 free (es->s); in es_free() 431 unquote (char const *s, struct E_string *es) in unquote() argument 433 size_t len = strlen (s); in unquote() 435 es->s = xmalloc (len); in unquote() 439 for (unsigned int i = 0; s[i]; i++) in unquote() 444 switch (s[i]) in unquote() 448 switch (s[i + 1]) in unquote() 482 c = s[i + 1] - '0'; in unquote() [all …]
|
D | tsort.c | 121 struct item *p, *q, *r, *s, *t; in search_item() local 131 s = p = root->right; in search_item() 158 a = strcmp (str, s->str); in search_item() 161 r = p = s->left; in search_item() 167 r = p = s->right; in search_item() 188 if (s->balance == 0 || s->balance == -a) in search_item() 190 s->balance += a; in search_item() 200 s->left = r->right; in search_item() 201 r->right = s; in search_item() 205 s->right = r->left; in search_item() [all …]
|
D | digest.c | 569 problematic_chars (char const *s) in problematic_chars() argument 571 size_t length = strcspn (s, "\\\n\r"); in problematic_chars() 572 return s[length] != '\0'; in problematic_chars() 587 filename_unescape (char *s, size_t s_len) in filename_unescape() argument 589 char *dst = s; in filename_unescape() 593 switch (s[i]) in filename_unescape() 602 switch (s[i]) in filename_unescape() 624 *dst++ = s[i]; in filename_unescape() 628 if (dst < s + s_len) in filename_unescape() 631 return s; in filename_unescape() [all …]
|
D | od.c | 512 char const *s; in print_named_ascii() local 516 s = "del"; in print_named_ascii() 518 s = charname[masked_c]; in print_named_ascii() 523 s = buf; in print_named_ascii() 526 xprintf ("%*s", pad_remaining - next_pad + width, s); in print_named_ascii() 543 char const *s; in print_ascii() local 549 s = "\\0"; in print_ascii() 553 s = "\\a"; in print_ascii() 557 s = "\\b"; in print_ascii() 561 s = "\\f"; in print_ascii() [all …]
|
D | printf.c | 144 verify_numeric (char const *s, char const *end) in verify_numeric() argument 148 error (0, errno, "%s", quote (s)); in verify_numeric() 153 if (s == end) in verify_numeric() 154 error (0, 0, _("%s: expected a numeric value"), quote (s)); in verify_numeric() 156 error (0, 0, _("%s: value not completely converted"), quote (s)); in verify_numeric() 163 FUNC_NAME (char const *s) \ 168 if ((*s == '\"' || *s == '\'') && *(s + 1)) \ 170 unsigned char ch = *++s; \ 173 if (MB_CUR_MAX > 1 && *(s + 1)) \ 177 size_t slen = strlen (s); \ [all …]
|
D | sleep.c | 120 double s; in main() local 122 if (! (xstrtod (argv[i], &p, &s, cl_strtod) || errno == ERANGE) in main() 124 || ! (0 <= s) in main() 128 || ! apply_suffix (&s, *p)) in main() 134 seconds += s; in main()
|
/coreutils/tests/pwd/ |
D | pwd-option.sh | 35 printf %s\\n "$base/c" > exp || fail=1 38 printf %s\\n "$base/a/b" >> exp || fail=1 41 printf %s\\n "$base/a/b" >> exp || fail=1 45 printf %s\\n "$base/a/b" >> exp || fail=1 48 printf %s\\n "$base/c" >> exp || fail=1 52 printf %s\\n "$base/a/b" >> exp || fail=1 55 printf %s\\n "$base/a/b" >> exp || fail=1 58 printf %s\\n "$base/a/b" >> exp || fail=1
|
/coreutils/man/ |
D | help2man | 164 kark N_("%s: can't open `%s' (%s)"), $this_program, $inc, $! 240 kark N_("%s: no valid information found in `%s'"), $this_program, $inc 277 unlink $opt_output or kark N_("%s: can't unlink %s (%s)"), 281 or kark N_("%s: can't create %s (%s)"), $this_program, $opt_output, $!; 337 $_ = sprintf _("%s \\- manual page for %s %s") . "\n", $program, 741 close STDOUT or kark N_("%s: error writing to %s (%s)"), $this_program, 767 my $err = N_("%s: can't get `%s' info from %s%s");
|
/coreutils/tests/mv/ |
D | into-self-4.sh | 24 ln -s file s || framework_failure_ 28 returns_ 1 mv s s 2> /dev/null || fail=1 32 test -f s || fail=1
|
/coreutils/tests/date/ |
D | date-sec.sh | 33 s=$(date +%S) 34 case "$s" in 43 s=$(date --date="21:04 +0100" +%S) 44 case "$s" in
|
/coreutils/tests/chgrp/ |
D | posix-H.sh | 30 ln -s 1 1s || framework_failure_ 31 ln -s ../3 2/2s || framework_failure_ 35 chgrp --preserve-root -H -R $g2 1s 2 || fail=1 49 case $i in *s) continue;; esac 65 case $i in *s) continue;; esac
|
/coreutils/tests/od/ |
D | od-endian.sh | 39 for s in 1 2 4 8 16; do 41 od -t $t$s --endian=$e /dev/null > /dev/null 2>&1 || continue 42 printf '%s' "$in" | od -An -t $t$s --endian=$e > out1 43 in_swapped "$s" | od -An -t $t$s --endian=$eo > out2
|
/coreutils/tests/rm/ |
D | ext3-perf.sh | 54 start=$(date +%s) 63 setup_duration=$(expr $(date +%s) - $start) 71 start=$(date +%s) 72 timeout ${threshold_seconds}s rm -rf d; err=$? 73 duration=$(expr $(date +%s) - $start)
|
/coreutils/tests/split/ |
D | line-bytes.sh | 69 for s in $(seq 11); do 71 split ---io=$b -C$s in || fail=1 74 stat -c %s x* | paste -s -d ' ' >> splits 77 split ---io=$b -C$s no_eol_in || fail=1 81 stat -c %s x* | paste -s -d ' ' >> no_eol_splits
|
/coreutils/tests/readlink/ |
D | readlink-fp-loop.sh | 28 ln -s s p || framework_failure_ 29 ln -s d s || framework_failure_ 32 ln -s ../s/2 d/1 || framework_failure_ 41 ln -sf ../s/1 d/2 || framework_failure_ 51 ln -nsf ../s/3 d/2 || framework_failure_
|
/coreutils/tests/head/ |
D | head-elide-tail.pl | 65 my $s = "abcdefghijklmnopqrst"; 70 my $input = substr $s, 0, $file_size; 84 $s =~ s/(.)/$1\n/g; 85 $s .= 'u'; # test without trailing '\n' 90 my $input = substr $s, 0, 2 * $file_size;
|
/coreutils/tests/tty/ |
D | tty-eof.pl | 94 my $s = $exp->exitstatus; 95 $s == 0 96 or (warn "$ME: $cmd exited with status $s (expected 0)\n"), 101 $cmd eq 'dd' && $s == 0
|