Lines Matching refs:out_fp
23 extern void handle_usage_help(FILE *out_fp, const char *prog_name);
25 extern void handle_usage_dump(FILE *out_fp, const char *prog_name);
27 extern void handle_usage_create(FILE *out_fp, const char *prog_name);
29 extern void handle_usage_cfg_create(FILE *out_fp, const char *prog_name);
35 void (*usage)(FILE *out_fp, const char *prog_name);
61 static void print_all_commands(FILE *out_fp) { in print_all_commands() argument
65 fprintf(out_fp, ", "); in print_all_commands()
67 fprintf(out_fp, "%s", info->command); in print_all_commands()
69 fprintf(out_fp, "\n"); in print_all_commands()
72 static void output_all_usage(FILE *out_fp, const char *prog_name) { in output_all_usage() argument
73 fprintf(out_fp, " %s <command>\n\n", prog_name); in output_all_usage()
74 fprintf(out_fp, " commands:\n "); in output_all_usage()
75 print_all_commands(out_fp); in output_all_usage()
76 fprintf(out_fp, "\n"); in output_all_usage()
80 info->usage(out_fp, prog_name); in output_all_usage()
81 fprintf(out_fp, "\n"); in output_all_usage()
85 void handle_usage_help(FILE *out_fp, const char *prog_name) { in handle_usage_help() argument
86 fprintf(out_fp, " %s help all\n", prog_name); in handle_usage_help()
87 fprintf(out_fp, " %s help <command>\n\n", prog_name); in handle_usage_help()
88 fprintf(out_fp, " commands:\n "); in handle_usage_help()
89 print_all_commands(out_fp); in handle_usage_help()