/coreutils/src/ |
D | paste.c | 169 paste_parallel (size_t nfiles, char **fnamptr) in paste_parallel() argument 176 char *delbuf = xmalloc (nfiles + 2); in paste_parallel() 180 FILE **fileptr = xnmalloc (nfiles + 1, sizeof *fileptr); in paste_parallel() 192 for (files_open = 0; files_open < nfiles; ++files_open) in paste_parallel() 224 for (size_t i = 0; i < nfiles && files_open; i++) in paste_parallel() 274 if (i + 1 == nfiles) in paste_parallel() 307 if (i + 1 != nfiles) in paste_parallel() 336 paste_serial (size_t nfiles, char **fnamptr) in paste_serial() argument 343 for (; nfiles; nfiles--, fnamptr++) in paste_serial() 493 int nfiles = argc - optind; in main() local [all …]
|
D | tee.c | 40 static bool tee_files (int nfiles, char **files, bool); 189 get_next_out (FILE **descriptors, int nfiles, int idx) in get_next_out() argument 191 for (idx++; idx <= nfiles; idx++) in get_next_out() 225 tee_files (int nfiles, char **files, bool pipe_check) in tee_files() argument 247 descriptors = xnmalloc (nfiles + 1, sizeof *descriptors); in tee_files() 249 out_pollable = xnmalloc (nfiles + 1, sizeof *out_pollable); in tee_files() 258 for (i = 1; i <= nfiles; i++) in tee_files() 295 first_out = get_next_out (descriptors, nfiles, first_out); in tee_files() 313 for (i = 0; i <= nfiles; i++) in tee_files() 321 first_out = get_next_out (descriptors, nfiles, first_out); in tee_files() [all …]
|
D | wc.c | 663 get_input_fstatus (idx_t nfiles, char *const *file) in get_input_fstatus() argument 665 struct fstatus *fstatus = xnmalloc (nfiles ? nfiles : 1, sizeof *fstatus); in get_input_fstatus() 667 if (nfiles == 0 in get_input_fstatus() 668 || (nfiles == 1 in get_input_fstatus() 675 for (idx_t i = 0; i < nfiles; i++) in get_input_fstatus() 690 compute_number_width (idx_t nfiles, struct fstatus const *fstatus) in compute_number_width() argument 694 if (0 < nfiles && fstatus[0].failed <= 0) in compute_number_width() 699 for (idx_t i = 0; i < nfiles; i++) in compute_number_width() 726 idx_t nfiles; in main() local 844 nfiles = tok.n_tok; in main() [all …]
|
D | sort.c | 1516 char *const *files, size_t nfiles, in sort_buffer_size() argument 1530 for (size_t i = 0; i < nfiles; i++) in sort_buffer_size() 2987 open_input_files (struct sortfile *files, size_t nfiles, FILE ***pfps) in open_input_files() argument 2989 FILE **fps = *pfps = xnmalloc (nfiles, sizeof *fps); in open_input_files() 2993 for (i = 0; i < nfiles; i++) in open_input_files() 3014 mergefps (struct sortfile *files, size_t ntemps, size_t nfiles, in mergefps() argument 3017 struct buffer *buffer = xnmalloc (nfiles, sizeof *buffer); in mergefps() 3023 struct line const **cur = xnmalloc (nfiles, sizeof *cur); in mergefps() 3025 struct line const **base = xnmalloc (nfiles, sizeof *base); in mergefps() 3027 size_t *ord = xnmalloc (nfiles, sizeof *ord); in mergefps() [all …]
|
D | uniq.c | 484 unsigned int nfiles = 0; in main() local 513 || (posixly_correct && nfiles != 0) in main() 521 if (nfiles == 2) in main() 526 file[nfiles++] = argv[optind++]; in main() 538 else if (nfiles == 2) in main() 544 file[nfiles++] = optarg; in main()
|
D | join.c | 945 int operand_status[2], int joption_count[2], int *nfiles, in add_file_name() argument 948 int n = *nfiles; in add_file_name() 984 *nfiles = n + 1; in add_file_name() 998 int nfiles = 0; in main() local 1120 &nfiles, &prev_optc_status, &optc_status); in main() 1142 &nfiles, &prev_optc_status, &optc_status); in main() 1144 if (nfiles != 2) in main() 1146 if (nfiles == 0) in main()
|
D | csplit.c | 902 int nfiles = files_created; in create_output_file() local 906 output_filename = make_filename (nfiles); in create_output_file() 908 if (nfiles == INT_MAX) in create_output_file() 921 files_created = nfiles + fopen_ok; in create_output_file()
|
D | split.c | 1076 ofile_open (of_t *files, idx_t i_check, idx_t nfiles) in ofile_open() argument 1083 idx_t i_reopen = i_check ? i_check - 1 : nfiles - 1; in ofile_open() 1123 i_reopen = i_reopen ? i_reopen - 1 : nfiles - 1; in ofile_open()
|
/coreutils/scripts/build-older-versions/ |
D | coreutils-5.0-on-glibc-2.28.diff | 20 -static int tee (int nfiles, const char **files); 21 +static int tee_FOO (int nfiles, const char **files); 38 -tee (int nfiles, const char **files) 39 +tee_FOO (int nfiles, const char **files)
|