/coreutils/gl/lib/ |
D | heap.c | 37 size_t count; /* Used as index to last element. Also is num of items. */ member 55 heap->count = 0; in heap_alloc() 81 if (heap->capacity - 1 <= heap->count) in heap_insert() 85 heap->array[++heap->count] = item; in heap_insert() 86 heapify_up (heap->array, heap->count, heap->compare); in heap_insert() 98 if (heap->count == 0) in heap_remove_top() 102 heap->array[1] = heap->array[heap->count--]; in heap_remove_top() 103 heapify_down (heap->array, heap->count, 1, heap->compare); in heap_remove_top() 111 heapify_down (void **array, size_t count, size_t initial, in heapify_down() argument 117 while (parent <= count / 2) in heapify_down() [all …]
|
/coreutils/tests/dd/ |
D | skip-seek-past-file.sh | 33 dd bs=1 skip=5 count=0 status=noxfer < file 2> err || fail=1 37 dd bs=3 skip=2 count=0 status=noxfer < file 2> err || fail=1 41 cat file | dd bs=1 skip=5 count=0 status=noxfer 2> err || fail=1 45 cat file | dd bs=3 skip=2 count=0 status=noxfer 2> err || fail=1 50 (dd bs=1 skip=1 count=0 2>/dev/null && 56 (dd bs=1 skip=1 count=0 2>/dev/null && 61 dd bs=1 seek=5 count=0 status=noxfer > file 2> err || fail=1 67 dd bs=1 skip=$OFF_T_OFLOW count=0 status=noxfer < file 2> err && fail=1 70 dd bs=1 skip=${OFF_T_OFLOW}x$OFF_T_OFLOW count=0 status=noxfer < file 2> err && 77 dd bs=1 skip=$OFF_T_MAX count=0 status=noxfer < file 2> err \
|
D | nocache.sh | 26 dd count=0 | returns_ 1 dd iflag=nocache count=0 || fail=1 34 dd if=/dev/zero of=$f conv=fdatasync count=100 || framework_failure_ 38 if ! dd if=ifile iflag=nocache count=0 2>err; then 49 dd of=ofile oflag=nocache conv=notrunc,fdatasync count=0 || fail=1 52 dd if=ifile iflag=nocache skip=10 count=10 of=/dev/null || fail=1
|
D | no-allocate.sh | 29 (ulimit -v $vm && dd bs=30M count=0) || fail=1 30 (ulimit -v $vm && dd ibs=30M count=0) || fail=1 31 (ulimit -v $vm && dd obs=30M count=0) || fail=1 43 timeout 10 dd count=1 if=/dev/zero of=tape& 47 && timeout 10 dd $dd_buf=30M $dd_op=1 count=0 $dd_file=tape)
|
D | nocache_eof.sh | 30 dd if=in.f iflag=nocache count=0 || 50 strace_dd if=in.f count=0 iflag=nocache 54 strace_dd if=in.f of=/dev/null iflag=nocache skip=10 count=300 59 strace_dd if=in.f of=/dev/null iflag=nocache bs=1M count=3000 65 strace_dd if=in.f of=/dev/null bs=1M count=1 iflag=nocache
|
D | skip-seek2.sh | 25 (dd bs=1 skip=3 count=0 && dd bs=5) < in > out 2> /dev/null || fail=1 32 (dd bs=1 skip=3 count=0 && dd bs=5 count=2) < in > out 2> /dev/null || fail=1
|
D | bytes.sh | 59 dd $operands bs=5 of=out2 count=0 2> /dev/null || fail=1 72 for count in B B1 Bx1 KBB BB KBb KBx x1 1x 1xx1; do 73 returns_ 1 dd count=$count </dev/null >/dev/null || fail=1
|
D | misc.sh | 64 if dd iflag=nofollow if=$tmp_in count=0 2> /dev/null; then 65 returns_ 1 dd iflag=nofollow if=$tmp_sym count=0 2> /dev/null || fail=1 68 if dd iflag=directory if=. count=0 2> /dev/null; then 69 dd iflag=directory count=0 <. 2> /dev/null || fail=1 70 returns_ 1 dd iflag=directory count=0 <$tmp_in 2> /dev/null || fail=1 112 dd if=/dev/null count=0x1 seek=0x1 skip=0x1 status=none 2>err || fail=1 123 dd if=$tmp_in of=$tmp_out count=00x$big status=noxfer 2>err || fail=1
|
D | sparse.sh | 49 dd if=/dev/urandom of=file.in bs=1M count=3 iflag=fullblock || fail=1 50 dd if=/dev/zero of=file.in bs=1M count=1 seek=1 conv=notrunc || fail=1 85 dd if=file.in of=manual.out bs=1M count=1 || fail=1 86 dd if=file.in of=manual.out bs=1M count=1 seek=2 conv=notrunc || fail=1
|
D | skip-seek-past-dev.sh | 44 timeout 10 dd bs=1 skip=$DEV_OFLOW count=0 status=noxfer < "$device" 2> err 51 timeout 10 dd bs=1 seek=$DEV_OFLOW count=0 status=noxfer > "$device" 2> err
|
D | not-rewound.sh | 25 (dd skip=1 count=1 bs=1; dd skip=1 bs=1) < in > out 2> /dev/null || fail=1
|
D | stats.sh | 45 dd iflag=fullblock if=/dev/zero of=fifo count=50 bs=5000000 2>err & pid=$!
|
/coreutils/src/ |
D | join.c | 83 idx_t count; /* Elements used in 'lines'. */ member 497 seq->count = 0; in initseq() 507 if (seq->count == seq->alloc) in getseq() 510 for (idx_t i = seq->count; i < seq->alloc; i++) in getseq() 514 if (get_line (fp, &seq->lines[seq->count], whichfile)) in getseq() 516 ++seq->count; in getseq() 528 seq->count = 0; in advance_seq() 675 autocount_1 = seq1.count ? seq1.lines[0]->nfields : 0; in join() 676 autocount_2 = seq2.count ? seq2.lines[0]->nfields : 0; in join() 679 if (join_header_lines && (seq1.count || seq2.count)) in join() [all …]
|
D | longlong.h | 141 #define count_leading_zeros_gcc_clz(count,x) \ argument 144 (count) = __builtin_clzll (x); \ 147 #define count_leading_zeros_gcc_clz(count,x) \ argument 150 (count) = __builtin_clzl (x); \ 155 #define count_trailing_zeros_gcc_ctz(count,x) \ argument 158 (count) = __builtin_ctzll (x); \ 161 #define count_trailing_zeros_gcc_ctz(count,x) \ argument 164 (count) = __builtin_ctzl (x); \ 234 #define count_leading_zeros(count, x) \ argument 243 (count) = __clz__b - __clz__c; \ [all …]
|
D | tsort.c | 57 size_t count; member 270 k->count++; in record_relation() 289 if (k->count == 0 && !k->printed) in scan_zeros() 323 if (k->count > 0) in detect_loop() 353 s->suc->count--; in detect_loop() 495 p->suc->count--; in tsort() 496 if (p->suc->count == 0) in tsort()
|
/coreutils/tests/timeout/ |
D | timeout-group.sh | 39 count=$1 40 until test -e int.received || test $count = 0; do 42 count=$(expr $count - 1)
|
/coreutils/tests/rm/ |
D | rm-readdir-fail.sh | 74 if (readdir_partial && *readdir_partial && count <= 3) 76 count++; 77 d->d_name[0]='0'+count; d->d_name[1]='\0';
|
/coreutils/tests/mkdir/ |
D | writable-under-readonly.sh | 38 && dd if=/dev/zero of=1 bs=8192 count=50 \ 39 && dd if=/dev/zero of=2 bs=8192 count=50 \
|
/coreutils/tests/csplit/ |
D | csplit-io-err.sh | 46 size_t count = size * nitems; 48 for (i = 0; i < count; i++)
|
/coreutils/tests/cp/ |
D | sparse.sh | 48 dd if=/dev/zero bs=$hole_size count=$maxn of=zeros || framework_failure_ 64 bs=$hole_size count=$n status=none || framework_failure_
|
/coreutils/man/ |
D | sum.x | 2 sum \- checksum and count the blocks in a file
|
/coreutils/tests/misc/ |
D | tee.sh | 97 dd count=20 bs=100K if=/dev/zero status=none | 99 dd count=0 oflag=nonblock status=none 105 read_fifo() { timeout 10 dd count=1 if=fifo of=/dev/null status=none & }
|
/coreutils/tests/cat/ |
D | cat-buf.sh | 39 dd count=1 if=fifo > out & pid=$!
|
/coreutils/gl/modules/ |
D | randperm | 10 count-leading-zeros
|
/coreutils/tests/split/ |
D | l-chunk-root.sh | 27 dd if=/dev/zero of=blob bs=8192 count=200 &&
|