Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 35) sorted by relevance

12

/coreutils/gl/lib/
Drandperm.c70 swap (size_t *v, size_t i, size_t j) in swap() argument
73 v[i] = v[j]; in swap()
74 v[j] = t; in swap()
120 sparse_swap (sparse_map *sv, size_t *v, size_t i, size_t j) in sparse_swap() argument
123 struct sparse_ent_ *v2 = hash_remove (sv, &(struct sparse_ent_) {j,0}); in sparse_swap()
134 v2->index = v2->val = j; in sparse_swap()
226 size_t j = i + randint_choose (r, n - i); in randperm_new() local
228 sparse_swap (sv, v, i, j); in randperm_new()
230 swap (v, i, j); in randperm_new()
/coreutils/tests/rm/
Dr-3.sh33 for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j; do
35 for j in a b c d e f g h i j k l m n o p q r s t u v w x y; do
36 files="$files $i$j"
Dhash.sh29 for j in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
30 mkdir -p t/$i/$j/$y || framework_failure_
/coreutils/src/
Dset-fields.c285 for (size_t j = i + 1; j < n_frp; ++j) in set_fields() local
287 if (frp[j].lo <= frp[i].hi) in set_fields()
289 frp[i].hi = MAX (frp[j].hi, frp[i].hi); in set_fields()
290 memmove (frp + j, frp + j + 1, (n_frp - j - 1) * sizeof *frp); in set_fields()
292 j--; in set_fields()
Dpr.c1702 int j; in init_page() local
1708 for (j = columns - 1, p = column_vector; j; --j, ++p) in init_page()
1731 for (j = columns, p = column_vector; j; --j, ++p) in init_page()
1775 int j; in print_page() local
1813 for (j = 1, p = column_vector; j <= columns; ++j, ++p) in print_page()
1872 for (j = 1, p = column_vector; j <= columns; ++j, ++p) in print_page()
1946 int i, j; in store_columns() local
1967 for (j = lines_per_body; j && files_ready_to_read; --j) in store_columns()
2331 int j; in skip_to_page() local
2335 for (j = 1, p = column_vector; j <= columns; ++j, ++p) in skip_to_page()
[all …]
Dmake-prime-list.c217 unsigned j; in main() local
221 for (j = (p * p - 3) / 2; j < size; j += p) in main()
222 sieve[j] = 0; in main()
Dtsort.c264 record_relation (struct item *j, struct item *k) in record_relation() argument
268 if (!STREQ (j->str, k->str)) in record_relation()
273 p->next = j->top; in record_relation()
274 j->top = p; in record_relation()
432 struct item *j = nullptr; in tsort() local
461 if (j) in tsort()
464 record_relation (j, k); in tsort()
468 j = k; in tsort()
Dcomm.c279 int i, j; in compare_files() local
284 for (j = 0; j < 4; j++) in compare_files()
286 initbuffer (&lba[i][j]); in compare_files()
287 all_line[i][j] = &lba[i][j]; in compare_files()
Dfactor.c538 for (int j = nfactors - 1; j > i; j--) in factor_insert_multiplicity() local
540 p[j + 1] = p[j]; in factor_insert_multiplicity()
541 e[j + 1] = e[j]; in factor_insert_multiplicity()
636 for (ptrdiff_t j = nfactors - 1; j > i; j--) in mp_factor_insert() local
638 mpz_set (p[j + 1], p[j]); in mp_factor_insert()
639 e[j + 1] = e[j]; in mp_factor_insert()
717 for (int j = 0; j < off; j++) in factor_insert_refind() local
718 p += primes_diff[i + j]; in factor_insert_refind()
2118 for (int j = 0; j < qpos; j++) in factor_using_squfof() local
2120 if (queue[j].Q == r) in factor_using_squfof()
[all …]
Dshuf.c217 randint j = randint_choose (s, n_lines + 1); /* 0 .. n_lines. */ in read_input_reservoir_sampling() local
218 line = (j < k) ? (&rsrv[j]) : (&dummy); in read_input_reservoir_sampling()
341 unsigned long int j = lo_input + randint_choose (s, range); in write_random_numbers() local
342 if (printf ("%lu%c", j, eolbyte) < 0) in write_random_numbers()
358 const randint j = randint_choose (s, n_lines); in write_random_lines() local
359 char *const *p = lines + j; in write_random_lines()
Dls.c1590 int j; in signal_setup() local
1598 for (j = 0; j < nsigs; j++) in signal_setup()
1600 sigaction (sig[j], nullptr, &act); in signal_setup()
1602 sigaddset (&caught_signals, sig[j]); in signal_setup()
1608 for (j = 0; j < nsigs; j++) in signal_setup()
1609 if (sigismember (&caught_signals, sig[j])) in signal_setup()
1611 act.sa_handler = sig[j] == SIGTSTP ? stophandler : sighandler; in signal_setup()
1612 sigaction (sig[j], &act, nullptr); in signal_setup()
1615 for (j = 0; j < nsigs; j++) in signal_setup()
1617 caught_sig[j] = (signal (sig[j], SIG_IGN) != SIG_IGN); in signal_setup()
[all …]
Dcsplit.c859 intmax_t j; in split_file() local
862 for (j = 0; (controls[i].repeat_forever in split_file()
863 || j <= controls[i].repeat); j++) in split_file()
864 process_regexp (&controls[i], j); in split_file()
868 for (j = 0; (controls[i].repeat_forever in split_file()
869 || j <= controls[i].repeat); j++) in split_file()
870 process_line_count (&controls[i], j); in split_file()
Dtail.c714 size_t j; in pipe_lines() local
715 for (j = total_lines - n_lines; j; --j) in pipe_lines()
1704 size_t j; in tail_forever_inotify() local
1705 for (j = 0; j < n_files; j++) in tail_forever_inotify()
1709 if (f[j].parent_wd == ev->wd in tail_forever_inotify()
1710 && STREQ (ev->name, f[j].name + f[j].basename_start)) in tail_forever_inotify()
1715 if (j == n_files) in tail_forever_inotify()
1718 fspec = &(f[j]); in tail_forever_inotify()
1726 new_wd = inotify_add_watch (wd, f[j].name, inotify_wd_mask); in tail_forever_inotify()
1739 error (0, errno, _("cannot watch %s"), quoteaf (f[j].name)); in tail_forever_inotify()
Dsplit.c520 int j; in create() local
525 for (j = 0; j < n_open_pipes; ++j) in create()
526 if (close (open_pipes[j]) != 0) in create()
569 int j; in closeout() local
570 for (j = 0; j < n_open_pipes; ++j) in closeout()
572 if (open_pipes[j] == fd) in closeout()
574 open_pipes[j] = open_pipes[--n_open_pipes]; in closeout()
Djoin.c743 idx_t j; in join() local
744 for (j = 0; j < seq2.count - 1; ++j) in join()
745 prjoin (seq1.lines[i], seq2.lines[j]); in join()
/coreutils/tests/cp/
Dcopy-FMR.sh27 -e '&& syswrite (*STDOUT, "a" x 1024) or die "$!"}' > j || fail=1
28 valgrind --quiet --error-exitcode=3 cp --reflink=never j j2 || fail=1
29 cmp j j2 || fail=1
Dsparse-extents-2.sh70 for j in 1 2 31 100; do
72 -e 'for (1..'$j') { sysseek (*F, $n, 1)' \
82 cmp j1 j2 || fail_ "data loss i=$i j=$j"
/coreutils/tests/du/
Dfd-leak.sh31 for j in $x; do
32 f="$f $i$j"
Dinacc-dest.sh24 mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
Dmove-dir-while-traversing.sh64 long=d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
/coreutils/
Ddist-check.mk32 tar_decompress_opt_ = j
85 for j in "$(pfx)/bin/$$i" \
87 case $$j in *'[.1') continue;; esac; \
88 test -f "$$j" && : \
89 || { echo "$$j not installed"; fail=1; }; \
/coreutils/tests/mv/
Dleak-fd.sh37 for j in $b; do
38 echo $i$j
/coreutils/src/blake2/
Db2sum.c371 size_t j;
380 for( j = 0; j < outbytes; ++j )
381 printf( "%02x", hash[j] );
/coreutils/tests/od/
Dod.pl54 {IN=>{i=>'c'}}, {IN=>{j=>'d'}}, {OUT=>" d\n"}],
/coreutils/tests/shred/
Dshred-remove.sh53 a b c d e f g h i j k l m n o p q r s t u v w x y z \

12