Lines Matching refs:outfile
291 mcdecode_dump(const char *device, const char *outfile) in mcdecode_dump() argument
316 if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) { in mcdecode_dump()
317 err(EXIT_FAILURE, "failed to create output file %s", outfile); in mcdecode_dump()
327 warn("failed to write to output file %s", outfile); in mcdecode_dump()
328 (void) unlink(outfile); in mcdecode_dump()
337 warn("failed to sync output file %s", outfile); in mcdecode_dump()
338 (void) unlink(outfile); in mcdecode_dump()
350 const char *outfile = NULL; in main() local
372 outfile = optarg; in main()
388 if (outfile != NULL && infile != NULL) { in main()
392 if (pa != UINT64_MAX && outfile != NULL) { in main()
396 if (pa == UINT64_MAX && outfile == NULL) { in main()
410 mcdecode_dump(argv[0], outfile); in main()