Lines Matching defs:cat
66 static int force; /* -f flag: force overwriting all cat pages */
169 * Deals with junk files in the man or cat section directories.
273 memcpy(cat_section, "cat", 3);
348 fprintf(stderr, "%s: not writable - will only be able to write to existing cat directories\n", mandir);
383 * the preformatted cat page.
386 process_page(char *mandir, char *src, char *cat, enum Ziptype zipped)
407 cat_test = test_path(cat, &cat_mtime);
423 verbose ? "\t" : "", cat, link_name);
426 (void) unlink(cat);
427 if (link(link_name, cat) < 0)
428 warn("%s %s: link", link_name, cat);
432 insert_hashtable(links, src_ino, src_dev, strdup(cat));
435 verbose ? "\t" : "", src, cat);
439 snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat);
444 zipped == BZIP ? BZ2_CMD : zipped == GZIP ? GZ_CMD : "cat",
445 cat);
448 if (rename(tmp_file, cat) < 0)
449 warn("%s", cat);
455 * then check for junk in the corresponding cat section.
482 * Maintain a list of all cat pages that should exist,
537 * scan cat sections for junk
549 * Keep the index into the expected cat page list
563 junk_reason = "invalid cat page name";
567 junk_reason = "cat page unused due to existing " GZ_EXT;
569 junk_reason = "cat page without man page";