Deleted Added
full compact
mkctm.c (29526) mkctm.c (69793)
1/* $FreeBSD: head/usr.sbin/ctm/mkCTM/mkctm.c 69793 2000-12-09 09:35:55Z obrien $ */
2
1/* Still missing:
2 *
3 * mkctm
4 * -B regex Bogus
5 * -I regex Ignore
6 * -D int Damage
7 * -q decrease verbosity
8 * -v increase verbosity

--- 13 unchanged lines hidden (view full) ---

22#include <regex.h>
23#include <stdio.h>
24#include <fcntl.h>
25#include <string.h>
26#include <stdlib.h>
27#include <unistd.h>
28#include <md5.h>
29#include <err.h>
3/* Still missing:
4 *
5 * mkctm
6 * -B regex Bogus
7 * -I regex Ignore
8 * -D int Damage
9 * -q decrease verbosity
10 * -v increase verbosity

--- 13 unchanged lines hidden (view full) ---

24#include <regex.h>
25#include <stdio.h>
26#include <fcntl.h>
27#include <string.h>
28#include <stdlib.h>
29#include <unistd.h>
30#include <md5.h>
31#include <err.h>
32#include <paths.h>
30#include <signal.h>
31
32#define DEFAULT_IGNORE "/CVS$|/\\.#|00_TRANS\\.TBL$"
33#define DEFAULT_BOGUS "\\.core$|\\.orig$|\\.rej$|\\.o$"
34regex_t reg_ignore, reg_bogus;
35int flag_ignore, flag_bogus;
36
37int verbose;

--- 517 unchanged lines hidden (view full) ---

555 default:
556 Usage();
557 return (1);
558 }
559 argc -= optind;
560 argv += optind;
561
562 if (!logf)
33#include <signal.h>
34
35#define DEFAULT_IGNORE "/CVS$|/\\.#|00_TRANS\\.TBL$"
36#define DEFAULT_BOGUS "\\.core$|\\.orig$|\\.rej$|\\.o$"
37regex_t reg_ignore, reg_bogus;
38int flag_ignore, flag_bogus;
39
40int verbose;

--- 517 unchanged lines hidden (view full) ---

558 default:
559 Usage();
560 return (1);
561 }
562 argc -= optind;
563 argv += optind;
564
565 if (!logf)
563 logf = fopen("/dev/null", "w");
566 logf = fopen(_PATH_DEVNULL, "w");
564
565 setbuf(stdout, 0);
566
567 if (argc != 6) {
568 Usage();
569 return (1);
570 }
571

--- 22 unchanged lines hidden ---
567
568 setbuf(stdout, 0);
569
570 if (argc != 6) {
571 Usage();
572 return (1);
573 }
574

--- 22 unchanged lines hidden ---