Lines Matching refs:input

45     "standard input. If no files are named, the standard input is sorted.]"
90 "any input file name, from left to right, ends with "
94 "regular file, is renamed to contain the input \b%\b\aformat\a.]"
95 "[+-?The first block of the first input file is sampled to check "
128 "[c:check?Check that the single input file is sorted according to the "
129 "ordering rules; give no output on the standard output. If the input "
134 "the input. The current implementation still uses one process for the "
136 "[m:merge?Merge; the input files are already sorted.]"
139 "[s:stable?Stable sort. When all keys compare equal, preserve input "
179 "[+I?Decompress the input if it is compressed.]"
188 "[+read?Force input file read by disabling memory mapping.]"
232 "\bsort -1\b has been abolished. An input file overwritten by \b-o\b is "
234 "directory as the input, at which point the input is renamed.]"
252 #define INMIN (1024) /* min input buffer size */
254 #define INMAX (1024*INBRK) /* max input buffer size */
292 char* overwrite; /* -o input overwrite tmp file */
293 char* buf; /* input buffer */
295 size_t cur; /* input buffer index */
296 size_t hit; /* input buffer index overflow */
297 size_t end; /* max input buffer index */
298 size_t bufsize; /* input reserve buffer size */
302 int chunk; /* chunk the input (no merge) */
303 int hadstdin; /* already has - on input */
304 int map; /* sfreserve() input */
308 int preserve; /* rename() tmp output to input */
309 int single; /* one input file */
439 if (*kp->input)
440 while (name = *kp->input++)
725 key->input = argv;
751 for (n = 0, i = -1; p = key->input[n]; n++)
759 error(2, "%s: format %s incompatible with %s format %s", p, fmtrec(r, 0), key->input[i], fmtrec(key->disc->data, 0));
769 if ((sp->opened = fileopen(sp, key->input[0])) && (s = sfreserve(sp->opened, SF_UNBOUND, SF_LOCKR)))
785 error(3, "%s: record format cannot be determined from data sample", key->input[0]);
892 if (sp->single = !key->input[1])
894 if (!(sp->opened = fileopen(sp, key->input[0])))
895 error(ERROR_SYSTEM|3, "%s: cannot open", key->input[0]);
897 error(ERROR_SYSTEM|3, "%s: cannot stat", key->input[0]);
955 if (!sp->map || pathstdin(key->input[0]))
1031 file = key->input[0];
1061 error(ERROR_SYSTEM|3, "%s: record boundary input seek error at %lld", file, (Sflong_t)offset + size);
1099 * check the output file for clash with the input files
1110 else if (key->input)
1120 p = key->input;
1171 for (n = 0; s = key->input[n]; n++)
1172 error(0, "%s input[%d]\t\"%s\"", error_info.id, n, s);
1312 * input the records for file ip
1316 input(register Sort_t* sp, Sfio_t* ip, const char* name)
1522 * requires single named input file
1560 file = sp->key->input[0];
1583 exit(input(sp, ip, file) < 0);
1627 * if the output would have overwritten an input
1684 while (s = *sort.key->input++)
1695 merge = sort.key->merge && sort.key->input[0] && sort.key->input[1] ? sort.key->input : (char**)0;
1702 while (s = *sort.key->input++)
1710 sort.key->input = merge;
1719 else if (input(&sort, fp, s) < 0)