Lines Matching refs:output_path
97 const char* output_path; member
320 params->output_path = argv[i]; in ParseParams()
477 params->output_path = value; in ParseParams()
511 if (params->output_path) return COMMAND_INVALID; in ParseParams()
588 static BROTLI_BOOL OpenOutputFile(const char* output_path, FILE** f, in OpenOutputFile() argument
592 if (!output_path) { in OpenOutputFile()
596 fd = open(output_path, O_CREAT | (force ? 0 : O_EXCL) | O_WRONLY | O_TRUNC, in OpenOutputFile()
600 PrintablePath(output_path), strerror(errno)); in OpenOutputFile()
606 PrintablePath(output_path), strerror(errno)); in OpenOutputFile()
632 static void CopyStat(const char* input_path, const char* output_path) { in CopyStat() argument
636 if (input_path == 0 || output_path == 0) { in CopyStat()
644 utime(output_path, ×); in CopyStat()
645 res = chmod(output_path, statbuf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)); in CopyStat()
648 PrintablePath(output_path), strerror(errno)); in CopyStat()
650 res = chown(output_path, (uid_t)-1, statbuf.st_gid); in CopyStat()
653 PrintablePath(output_path), strerror(errno)); in CopyStat()
655 res = chown(output_path, statbuf.st_uid, (gid_t)-1); in CopyStat()
658 PrintablePath(output_path), strerror(errno)); in CopyStat()
676 context->current_output_path = context->output_path; in NextFile()
695 context->current_output_path = context->output_path; in NextFile()
701 context->current_output_path = context->output_path; in NextFile()
703 if (context->output_path) return BROTLI_TRUE; in NextFile()
990 context.output_path = NULL; in main()