Lines Matching defs:catfile
47 * The spec says the syntax is "gencat catfile msgfile...".
49 * gencat [-lang C|C++|ANSIC] catfile msgfile [-h <header-file>]...
66 " catfile msgfile [-h <header-file>]...\n");
74 char *catfile = NULL;
96 if (catfile)
105 if (!catfile) {
106 catfile = argv[i];
108 if ((ofd = open(catfile, O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0)
109 errx(1, "unable to create a new %s", catfile);
110 } else if ((ofd = open(catfile, O_RDONLY)) < 0) {
111 if ((ofd = open(catfile, O_WRONLY|O_CREAT, 0666)) < 0)
112 errx(1, "unable to create %s", catfile);
116 if ((ofd = open(catfile, O_WRONLY|O_TRUNC)) < 0)
117 errx(1, "unable to truncate %s", catfile);
128 if (catfile) {