diff options
-rw-r--r-- | tools/lib/subcmd/exec-cmd.h | 6 | ||||
-rw-r--r-- | tools/lib/subcmd/help.h | 6 | ||||
-rw-r--r-- | tools/lib/subcmd/pager.h | 6 | ||||
-rw-r--r-- | tools/lib/subcmd/parse-options.h | 7 | ||||
-rw-r--r-- | tools/lib/subcmd/run-command.h | 6 | ||||
-rw-r--r-- | tools/lib/subcmd/sigchain.h | 6 | ||||
-rw-r--r-- | tools/lib/subcmd/subcmd-util.h | 6 |
7 files changed, 22 insertions, 21 deletions
diff --git a/tools/lib/subcmd/exec-cmd.h b/tools/lib/subcmd/exec-cmd.h index f1bd3436ad5f..5d08bda31d90 100644 --- a/tools/lib/subcmd/exec-cmd.h +++ b/tools/lib/subcmd/exec-cmd.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_EXEC_CMD_H | 1 | #ifndef __SUBCMD_EXEC_CMD_H |
2 | #define __PERF_EXEC_CMD_H | 2 | #define __SUBCMD_EXEC_CMD_H |
3 | 3 | ||
4 | extern void exec_cmd_init(const char *exec_name, const char *prefix, | 4 | extern void exec_cmd_init(const char *exec_name, const char *prefix, |
5 | const char *exec_path, const char *exec_path_env); | 5 | const char *exec_path, const char *exec_path_env); |
@@ -13,4 +13,4 @@ extern int execl_cmd(const char *cmd, ...); | |||
13 | extern char *get_argv_exec_path(void); | 13 | extern char *get_argv_exec_path(void); |
14 | extern char *system_path(const char *path); | 14 | extern char *system_path(const char *path); |
15 | 15 | ||
16 | #endif /* __PERF_EXEC_CMD_H */ | 16 | #endif /* __SUBCMD_EXEC_CMD_H */ |
diff --git a/tools/lib/subcmd/help.h b/tools/lib/subcmd/help.h index 096c8bc45cd7..e145a020780c 100644 --- a/tools/lib/subcmd/help.h +++ b/tools/lib/subcmd/help.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_HELP_H | 1 | #ifndef __SUBCMD_HELP_H |
2 | #define __PERF_HELP_H | 2 | #define __SUBCMD_HELP_H |
3 | 3 | ||
4 | #include <sys/types.h> | 4 | #include <sys/types.h> |
5 | 5 | ||
@@ -31,4 +31,4 @@ int is_in_cmdlist(struct cmdnames *c, const char *s); | |||
31 | void list_commands(const char *title, struct cmdnames *main_cmds, | 31 | void list_commands(const char *title, struct cmdnames *main_cmds, |
32 | struct cmdnames *other_cmds); | 32 | struct cmdnames *other_cmds); |
33 | 33 | ||
34 | #endif /* __PERF_HELP_H */ | 34 | #endif /* __SUBCMD_HELP_H */ |
diff --git a/tools/lib/subcmd/pager.h b/tools/lib/subcmd/pager.h index d6a591a4c017..8b83714ecf73 100644 --- a/tools/lib/subcmd/pager.h +++ b/tools/lib/subcmd/pager.h | |||
@@ -1,9 +1,9 @@ | |||
1 | #ifndef __PERF_PAGER_H | 1 | #ifndef __SUBCMD_PAGER_H |
2 | #define __PERF_PAGER_H | 2 | #define __SUBCMD_PAGER_H |
3 | 3 | ||
4 | extern void pager_init(const char *pager_env); | 4 | extern void pager_init(const char *pager_env); |
5 | 5 | ||
6 | extern void setup_pager(void); | 6 | extern void setup_pager(void); |
7 | extern int pager_in_use(void); | 7 | extern int pager_in_use(void); |
8 | 8 | ||
9 | #endif /* __PERF_PAGER_H */ | 9 | #endif /* __SUBCMD_PAGER_H */ |
diff --git a/tools/lib/subcmd/parse-options.h b/tools/lib/subcmd/parse-options.h index dec893f10477..13a2cc1d6140 100644 --- a/tools/lib/subcmd/parse-options.h +++ b/tools/lib/subcmd/parse-options.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_PARSE_OPTIONS_H | 1 | #ifndef __SUBCMD_PARSE_OPTIONS_H |
2 | #define __PERF_PARSE_OPTIONS_H | 2 | #define __SUBCMD_PARSE_OPTIONS_H |
3 | 3 | ||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include <stdint.h> | 5 | #include <stdint.h> |
@@ -225,4 +225,5 @@ extern const char *parse_options_fix_filename(const char *prefix, const char *fi | |||
225 | void set_option_flag(struct option *opts, int sopt, const char *lopt, int flag); | 225 | void set_option_flag(struct option *opts, int sopt, const char *lopt, int flag); |
226 | void set_option_nobuild(struct option *opts, int shortopt, const char *longopt, | 226 | void set_option_nobuild(struct option *opts, int shortopt, const char *longopt, |
227 | const char *build_opt, bool can_skip); | 227 | const char *build_opt, bool can_skip); |
228 | #endif /* __PERF_PARSE_OPTIONS_H */ | 228 | |
229 | #endif /* __SUBCMD_PARSE_OPTIONS_H */ | ||
diff --git a/tools/lib/subcmd/run-command.h b/tools/lib/subcmd/run-command.h index 4a55393a6547..fe2befea1e73 100644 --- a/tools/lib/subcmd/run-command.h +++ b/tools/lib/subcmd/run-command.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_RUN_COMMAND_H | 1 | #ifndef __SUBCMD_RUN_COMMAND_H |
2 | #define __PERF_RUN_COMMAND_H | 2 | #define __SUBCMD_RUN_COMMAND_H |
3 | 3 | ||
4 | #include <unistd.h> | 4 | #include <unistd.h> |
5 | 5 | ||
@@ -57,4 +57,4 @@ int run_command(struct child_process *); | |||
57 | #define RUN_COMMAND_STDOUT_TO_STDERR 4 | 57 | #define RUN_COMMAND_STDOUT_TO_STDERR 4 |
58 | int run_command_v_opt(const char **argv, int opt); | 58 | int run_command_v_opt(const char **argv, int opt); |
59 | 59 | ||
60 | #endif /* __PERF_RUN_COMMAND_H */ | 60 | #endif /* __SUBCMD_RUN_COMMAND_H */ |
diff --git a/tools/lib/subcmd/sigchain.h b/tools/lib/subcmd/sigchain.h index 959d64eb5557..0c919f2874ca 100644 --- a/tools/lib/subcmd/sigchain.h +++ b/tools/lib/subcmd/sigchain.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_SIGCHAIN_H | 1 | #ifndef __SUBCMD_SIGCHAIN_H |
2 | #define __PERF_SIGCHAIN_H | 2 | #define __SUBCMD_SIGCHAIN_H |
3 | 3 | ||
4 | typedef void (*sigchain_fun)(int); | 4 | typedef void (*sigchain_fun)(int); |
5 | 5 | ||
@@ -7,4 +7,4 @@ int sigchain_pop(int sig); | |||
7 | 7 | ||
8 | void sigchain_push_common(sigchain_fun f); | 8 | void sigchain_push_common(sigchain_fun f); |
9 | 9 | ||
10 | #endif /* __PERF_SIGCHAIN_H */ | 10 | #endif /* __SUBCMD_SIGCHAIN_H */ |
diff --git a/tools/lib/subcmd/subcmd-util.h b/tools/lib/subcmd/subcmd-util.h index 321aeb11a381..fc2e45d8aaf1 100644 --- a/tools/lib/subcmd/subcmd-util.h +++ b/tools/lib/subcmd/subcmd-util.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __PERF_SUBCMD_UTIL_H | 1 | #ifndef __SUBCMD_UTIL_H |
2 | #define __PERF_SUBCMD_UTIL_H | 2 | #define __SUBCMD_UTIL_H |
3 | 3 | ||
4 | #include <stdarg.h> | 4 | #include <stdarg.h> |
5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
@@ -88,4 +88,4 @@ static inline int prefixcmp(const char *str, const char *prefix) | |||
88 | return (unsigned char)*prefix - (unsigned char)*str; | 88 | return (unsigned char)*prefix - (unsigned char)*str; |
89 | } | 89 | } |
90 | 90 | ||
91 | #endif /* __PERF_SUBCMD_UTIL_H */ | 91 | #endif /* __SUBCMD_UTIL_H */ |