Lines Matching defs:output_path
102 const char* output_path;
331 params->output_path = argv[i];
488 params->output_path = value;
522 if (params->output_path) return COMMAND_INVALID;
605 static BROTLI_BOOL OpenOutputFile(const char* output_path, FILE** f,
609 if (!output_path) {
613 fd = open(output_path, O_CREAT | (force ? 0 : O_EXCL) | O_WRONLY | O_TRUNC,
617 PrintablePath(output_path), strerror(errno));
623 PrintablePath(output_path), strerror(errno));
649 static void CopyStat(const char* input_path, const char* output_path) {
653 if (input_path == 0 || output_path == 0) {
661 utime(output_path, ×);
662 res = chmod(output_path, statbuf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO));
665 PrintablePath(output_path), strerror(errno));
667 res = chown(output_path, (uid_t)-1, statbuf.st_gid);
670 PrintablePath(output_path), strerror(errno));
672 res = chown(output_path, statbuf.st_uid, (gid_t)-1);
675 PrintablePath(output_path), strerror(errno));
693 context->current_output_path = context->output_path;
712 context->current_output_path = context->output_path;
718 context->current_output_path = context->output_path;
720 if (context->output_path) return BROTLI_TRUE;
1045 context.output_path = NULL;