Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 268) sorted by relevance

1234567891011

/coreutils/tests/mv/
Dchildproof.sh26 mkdir a b c || framework_failure_
28 echo b > b/f || framework_failure_
31 returns_ 1 cp a/f b/f c 2> /dev/null || fail=1
33 test -f b/f || fail=1
39 cp --backup=numbered a/f b/f c || fail=1
41 test -f b/f || fail=1
46 returns_ 1 mv a/f b/f c 2> /dev/null || fail=1
48 test -f b/f || fail=1
55 rm -f c/f* b/f
57 ln a/f b/g
[all …]
Dmv-n.sh24 touch a b || framework_failure_
30 touch a b || framework_failure_
31 echo n | returns_ 1 mv -vi a b 2>/dev/null > out1 || fail=1
35 touch a b || framework_failure_
36 echo y | mv -vi a b 2>/dev/null > out2 || fail=1
40 touch a b || framework_failure_
41 echo y | returns_ 1 mv -vin a b 2>/dev/null > out3 || fail=1
45 touch a b || framework_failure_
46 echo y | returns_ 1 mv -in a b 2>err3 > out3 || fail=1
51 touch a b || framework_failure_
[all …]
Dhard-2.sh26 (cd dst && touch a b c) || framework_failure_
28 ln a b || framework_failure_
33 cp --preserve=link a b c dst || fail=1
36 test -f b || fail=1
42 test -f b || fail=1
47 ib=$(ls -i b|sed 's/ b//')
54 (cd dst && touch a b c)
57 mv a b c dst || fail=1
61 test -f b && fail=1
67 test -f b || fail=1
[all …]
Ddup-source.sh27 reset_files() { rm -fr a b d; touch a; mkdir b d; }
40 $i -a ./b b d/ 2>> out || fail=1
42 returns_ 1 $i -a ./b b b/ 2>> out || fail=1
75 returns_ 1 $i ./b b d/ 2>> out || fail=1
76 returns_ 1 test -e b || fail=1
78 returns_ 1 $i --verbose ./b b b/ 2>> out || fail=1
79 test -d b || fail=1
Dhard-4.sh22 ln a b || framework_failure_
28 mv a b 2>err && fail=1
33 test -r b || fail=1
36 mv --backup=simple a b || fail=1
38 test -r b || fail=1
39 test -r b~ || fail=1
Di-4.sh22 for i in a b; do
28 mv -i a b < y >/dev/null 2>&1 || fail=1
38 rm -f a b
40 ln a b
41 mv -i a b < y 2>err && fail=1
43 test -r b || fail=1
Di-link-no.sh22 mkdir a b || framework_failure_
25 echo FUBAR > b/FUBAR || framework_failure_
26 ln b/FUBAR b/bar || framework_failure_
27 chmod a-w b/bar || framework_failure_
31 mv a/bar a/foo b < no > out 2> err || fail=1
/coreutils/gl/lib/
Dstrnumcmp-in.h74 fraccompare (char const *a, char const *b, char decimal_point) in fraccompare() argument
76 if (*a == decimal_point && *b == decimal_point) in fraccompare()
78 while (*++a == *++b) in fraccompare()
81 if (ISDIGIT (*a) && ISDIGIT (*b)) in fraccompare()
82 return *a - *b; in fraccompare()
85 if (ISDIGIT (*b)) in fraccompare()
96 else if (*b++ == decimal_point) in fraccompare()
99 while (*b == NUMERIC_ZERO) in fraccompare()
100 b++; in fraccompare()
101 return - ISDIGIT (*b); in fraccompare()
[all …]
Drand-isaac.c54 #define IF32(a, b) (ISAAC_BITS == 32 ? (a) : (b)) argument
94 isaac_word b = s->b + (++s->c); in isaac_refill() local
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()
137 s->b = b; in isaac_refill()
145 #define mix(a, b, c, d, e, f, g, h) \ argument
147 a ^= b << 11; d += a; \
148 b += c; b ^= just (c) >> 2; e += b; \
153 g += h; g ^= h << 8; b += g; \
155 a += b; \
[all …]
Dbuffer-lcm.c28 buffer_lcm (size_t a, size_t b, size_t lcm_max) in buffer_lcm() argument
34 size = b ? b : 8 * 1024; in buffer_lcm()
37 if (b) in buffer_lcm()
45 for (m = a, n = b; (r = m % n) != 0; m = n, n = r) in buffer_lcm()
50 lcm = q * b; in buffer_lcm()
51 if (lcm <= lcm_max && lcm / b == q) in buffer_lcm()
/coreutils/tests/cp/
Dlink-preserve.sh24 ln a b || framework_failure_
26 cp -d a b c || framework_failure_
28 test -f c/b || framework_failure_
32 b_inode=$(ls -i c/b|sed 's,c/.*,,')
36 rm -rf a b c
38 ln -s a b
40 cp --preserve=links -R -H a b c || fail=1
42 b_inode=$(ls -i c/b|sed 's,c/.*,,')
48 rm -rf a b c d; mkdir d; (cd d; touch a; ln -s a b)
51 b_inode=$(ls -i c/b|sed 's,c/.*,,')
[all …]
Dparent-perm.sh26 mkdir -p a/b/c a/b/d e || framework_failure_
27 touch a/b/c/foo a/b/d/foo || framework_failure_
28 cp -p --parent a/b/c/foo e || framework_failure_
33 chmod g-rx e/a e/a/b || framework_failure_
35 cp -p --parent a/b/d/foo e || fail=1
47 for dir in a a/b a/b/d; do
Dreflink-auto.sh30 returns_ 1 cp --reflink "$a_other" b || fail=1
33 cp --reflink=auto "$a_other" b || fail=1
34 test -s b || fail=1
38 cp --reflink=auto --sparse=always "$a_other" b || fail=1
39 test -s b || fail=1
42 cp --reflink=auto --reflink=never "$a_other" b || fail=1
43 test -s b || fail=1
Dcp-parents.sh28 mkdir -p a/b/c d e g
39 cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
40 test -d d/a/b/c || fail=1
49 cp -a --parents d/a/b/c e || fail=1
50 cp -a --parents sym/b/c g || fail=1
54 p=$(ls -ld e/d/a/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
55 p=$(ls -ld g/sym/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
60 mkdir -p np/b &&
62 touch np/b/file &&
63 chmod 775 np/b/file &&
[all …]
Dpreserve-mode.sh27 touch a b || framework_failure_
28 chmod 600 b || framework_failure_
29 cp --no-preserve=mode b c || fail=1
34 cp --no-preserve=mode a b || fail=1
44 rm -f a b || framework_failure_
47 cp --no-preserve=mode --preserve=all a b || fail=1
59 rm -f a b c || framework_failure_
62 cp a b || fail=1
Dacl.sh29 mkdir -p a b || framework_failure_
40 cp a/file b/ || fail=1
41 acl2=$(cd b && getfacl file) || framework_failure_
48 cp -p a/file b/ || fail=1
49 acl2=$(cd b && getfacl file) || framework_failure_
55 cp -p --attributes-only a/file b/ || fail=1
56 compare /dev/null b/file || fail=1
57 acl2=$(cd b && getfacl file) || framework_failure_
/coreutils/tests/du/
Dbasic.sh22 mkdir -p a/b d d/sub || framework_failure_
27 printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure_
32 B=$(stat --format=%B a/b/F)
40 f=$(stat --format=%b a/b/F)
41 b=$(stat --format=%b a/b)
42 a=$(stat --format=%b a)
43 bf=$(expr $b + $f)
47 $f a/b/F
48 $bf a/b
51 $f a/b/F # size of file, a/b/F
[all …]
Dbind-mount-dir-cycle-v2.sh23 cleanup_() { umount a/b/c; }
25 mkdir -p a/b/c || framework_failure_
26 mount --bind a a/b/c \
29 echo a/b/c > exp || framework_failure_
30 echo a/b >> exp || framework_failure_
32 du a/b > out 2> err || fail=1
/coreutils/tests/install/
Dinstall-C.sh60 ginstall -Cv -m$mode1 a b > out || fail=1
64 ginstall -Cv -m$mode1 a b > out || fail=1
68 ginstall -v --compare -m$mode1 a b > out || fail=1
72 ginstall -v -m$mode1 a b > out || fail=1
76 ginstall -Cv -m$mode3 a b > out || fail=1
78 ginstall -Cv -m$mode3 a b > out || fail=1
83 ln -s b d || framework_failure_
91 ginstall -Cv -m$mode1 a b > out || fail=1
93 ginstall -Cv -m$mode1 a b > out || fail=1
98 ginstall -Cv -m$mode1 a b > out || fail=1
[all …]
Dinstall-C-root.sh38 ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
42 ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
46 ginstall -v -o$u1 -g$g1 a b > out || fail=1
50 ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
52 ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
56 ginstall -Cv -o$u2 -g$g2 a b > out || fail=1
58 ginstall -Cv -o$u2 -g$g2 a b > out || fail=1
62 ginstall -Cv -o$u2 a b > out || fail=1
64 ginstall -Cv a b > out || fail=1
66 ginstall -Cv a b > out || fail=1
[all …]
/coreutils/tests/rm/
Drm1.sh23 mkdir -p b/a/p b/c b/d || framework_failure_
24 chmod ug-w b/a || framework_failure_
28 rm -rf b > out 2>&1 && fail=1
44 test -d b/a/p || fail=1
45 test -d b/c && fail=1
46 test -d b/d && fail=1
/coreutils/tests/misc/
Dcomm.pl30 my @inputs = ({IN=>{a=>"1\n3\n3\n3"}}, {IN=>{b=>"2\n2\n3\n3\n3"}});
90 ['ooo', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
96 ['ooo2', '--check-order', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
101 ['ooo3', '--nocheck-order', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}},
105 ['ooo4', {IN=>{a=>"3\n1\n0"}}, {IN=>{b=>"3\n2\n0"}}, {EXIT=>1},
112 ['ooo5', {IN=>{a=>"3\n1"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
119 ['ooo5b', {IN=>{a=>"0\n3\n1"}}, {IN=>{b=>"2\n3"}}, {EXIT=>1},
125 ['ooo5c', {IN=>{a=>"0\n3"}}, {IN=>{b=>"2\n3\n1"}}, {EXIT=>1},
131 ['ooo6', {IN=>{a=>"2\n1\n0"}}, {IN=>{b=>"2\n1\n0"}}, {EXIT=>0},
135 ['ooo7', '--check-order', {IN=>{a=>"2\n1\n0"}}, {IN=>{b=>"2\n1\n0"}},
[all …]
Dprintenv.sh49 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST2 ENV_TEST1 ENV_TEST2 > out \
51 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST1 ENV_TEST2 >> out || fail=1
53 b
55 b
57 b
74 echo b > exp || framework_failure_
75 env -- -a=b printenv -- -a > out || fail=1
80 returns_ 1 env a=b=c printenv a=b > out || fail=1
/coreutils/tests/ls/
Dm-option.sh22 seq 2000 > b || framework_failure_
27 ls -w2 -m a b > out || fail=1
31 ls -sm a b | sed 's/^[0-9]/0/;s/, [0-9][0-9]* b/, 12 b/' >> out || fail=1
34 b
35 0 a, 12 b
/coreutils/tests/ln/
Dbackup-1.sh25 touch a b || framework_failure_
27 ln b b~ || fail=1
28 ln -f --b=simple a b || fail=1

1234567891011