Lines Matching refs:files
42 "[+NAME?sort - sort and/or merge files]"
45 "standard input. If no files are named, the standard input is sorted.]"
136 "[m:merge?Merge; the input files are already sorted.]"
151 "[T:tempdir?Put temporary files in \atempdir\a.]:[tempdir:=/usr/tmp]"
175 "[+m?Maximum number of intermediate merge files.]"
258 #define TEST_io 0x40000000 /* dump io files */
280 int intermediates; /* number of intermediate files */
305 int mfiles; /* multi-stage files[] count */
306 int nfiles; /* files[] count */
307 int xfiles; /* max files[] count */
312 Sfio_t* files[OPEN_MAX > 68 ? 64 : (OPEN_MAX-4)];
594 if (z <= 0 || z > elementsof(sp->files))
595 z = elementsof(sp->files);
858 sp->xfiles = elementsof(sp->files);
1099 * check the output file for clash with the input files
1180 * close sp->files and push fp if not 0
1190 rstempclose(sp->rec, sp->files[i]);
1191 sp->files[i] = 0;
1195 sp->files[sp->mfiles++] = fp;
1237 if (!(fp = sp->files[sp->nfiles]))
1241 sp->files[sp->nfiles] = fp;
1267 if (rsmerge(sp->rec, fp, sp->files + sp->mfiles, sp->nfiles - sp->mfiles, 0))
1553 if (!(sp->files[f++] = rstempwrite(sp->rec, (Sfio_t*)0)))
1578 sp->files[i] = sp->files[j++];
1580 sp->files[i++] = 0;
1717 sort.files[sort.nfiles++] = fp;
1733 if (rsmerge(sort.rec, sort.op, sort.files, sort.nfiles, merge ? RS_TEXT : RS_OTEXT))