Lines Matching refs:out_file
166 static file_info out_file; variable
867 has_out_file = out_file.name != NULL; in init()
870 if (has_out_file && !strcmp(out_file.name, "-")) { in init()
871 out_file.file = stdout; in init()
872 out_file.name = "stdout"; in init()
875 out_file.file = fopen(out_file.name, "w+"); in init()
878 if (has_out_file && !out_file.file) { in init()
879 log_error("Could not open file: \"%s\" error: \"%s\"\n", out_file.name, in init()
928 log_info("Output file set to: \"%s\"\n", out_file.name); in init()
955 out_file.name = optarg; in handle_options()
1215 if (!out_file.file) { in output()
1222 rule_map_print(out_file.file, e->r); in output()
1223 fprintf(out_file.file, "\n"); in output()
1234 if (out_file.name && strcmp(out_file.name, "stdout") && out_file.file) { in cleanup()
1235 log_info("Closing file: %s\n", out_file.name); in cleanup()
1236 fclose(out_file.file); in cleanup()