Lines Matching defs:catfile
64 * The spec says the syntax is "gencat catfile msgfile...".
66 * gencat [-new] [-or] [-lang C|C++|ANSIC] catfile msgfile
85 fprintf(stderr, "Use: gencat [-new] [-or] [-lang C|C++|ANSIC] catfile msgfile [-h <header-file>]...\n");
99 char *catfile = NULL;
124 if (catfile) {
136 if (!catfile) {
137 catfile = argv[i];
139 if ((ofd = open(catfile, O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0) {
140 fprintf(stderr, "gencat: Unable to create a new %s.\n", catfile);
143 } else if ((ofd = open(catfile, O_RDONLY)) < 0) {
144 if ((ofd = open(catfile, O_WRONLY|O_CREAT, 0666)) < 0) {
145 fprintf(stderr, "gencat: Unable to create %s.\n", catfile);
151 if ((ofd = open(catfile, O_WRONLY|O_TRUNC)) < 0) {
152 fprintf(stderr, "gencat: Unable to truncate %s.\n", catfile);
167 if (catfile) {