Lines Matching defs:file
62 static void show_cnt(const char *file, uintmax_t linect, uintmax_t wordct,
136 xo_open_list("file");
142 xo_open_instance("file");
145 xo_close_instance("file");
148 xo_open_instance("file");
151 xo_close_instance("file");
156 xo_close_list("file");
172 show_cnt(const char *file, uintmax_t linect, uintmax_t wordct,
192 if (file != stdin_filename)
193 xo_emit_h(xop, " {:filename/%s}\n", file);
199 cnt(const char *file)
213 if (file == NULL) {
215 file = stdin_filename;
216 } else if ((fd = fileargs_open(fa, file)) < 0) {
217 xo_warn("%s: open", file);
223 * If all we need is the number of characters and it's a regular file,
228 xo_warn("%s: fstat", file);
236 show_cnt(file, linect, wordct, charct, llct);
244 * file. Line counting is split out because it's a lot faster to get
250 xo_warn("%s: read", file);
255 show_cnt(file, linect, wordct, charct, llct);
277 show_cnt(file, linect, wordct, charct, llct);
287 xo_warn("%s: read", file);
294 show_cnt(file, linect, wordct, charct, llct);
303 xo_warn("%s", file);
334 xo_warn("%s", file);
344 show_cnt(file, linect, wordct, charct, llct);
352 xo_error("usage: wc [-Lclmw] [file ...]\n");