Lines Matching defs:printErr
71 static int printErr(const char *pcszFormat, ...)
98 return printErr("Failed to open \"%s\" for writing the file list");
103 return printErr("Error writing to the makefile list.\n");
127 return printErr("Error adding file to makefile list.\n");
144 return printErr("Error closing the file list file: %s\n", strerror(errno));
164 return printErr("Failed to stat \"%s\": %s\n", pcszFile, strerror(errno));
168 return printErr("Failed to open \"%s\": %s\n", pcszFile, strerror(errno));
189 rc = printErr("Error reading \"%s\": %s\n", pcszFile, strerror(errno));
194 rc = printErr("Failed to allocate %lu bytes\n", (unsigned long)(FileStat.st_size + 1));
243 return printErr("Failed to open \"%s\" for writing: %s\n", pcszFilename, strerror(errno));
248 rc = printErr("Error writing \"%s\": %s\n", pcszFilename, strerror(errno));
253 rc = printErr("Error closing \"%s\": %s\n", pcszFilename, strerror(errno));
287 return printErr("No newline after begin-file marker found.\n");
294 return printErr("Can't parse filename after begin-file marker (line %lu).\n",
300 return printErr("No matching end-line marker for begin-file marker found (line %lu).\n",
307 return printErr("Can't allocate memory for filename.\n");
364 rc = printErr("Given argument \"%s\" is not a valid directory.\n", argv[2]);
367 rc = printErr("Syntax error: usage: filesplitter <infile> <outdir> [<list.kmk> <kmkvar>]\n");