diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-20 09:22:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-20 11:36:48 -0400 |
commit | 6f06ccbc86f8a02aa32271263249657ce484eb25 (patch) | |
tree | c04eb04fcd1b7da2ec1a0072089cd95317a2cf54 /Documentation/perf_counter/cache.h | |
parent | 0780060124011b94af55830939c86cc0916be0f5 (diff) |
perf_counter tools: clean up after introduction of the Git command framework
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/cache.h')
-rw-r--r-- | Documentation/perf_counter/cache.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/perf_counter/cache.h b/Documentation/perf_counter/cache.h index dc085640a57d..71080512fa86 100644 --- a/Documentation/perf_counter/cache.h +++ b/Documentation/perf_counter/cache.h | |||
@@ -94,4 +94,24 @@ static inline int is_absolute_path(const char *path) | |||
94 | { | 94 | { |
95 | return path[0] == '/'; | 95 | return path[0] == '/'; |
96 | } | 96 | } |
97 | |||
98 | const char *make_absolute_path(const char *path); | ||
99 | const char *make_nonrelative_path(const char *path); | ||
100 | const char *make_relative_path(const char *abs, const char *base); | ||
101 | int normalize_path_copy(char *dst, const char *src); | ||
102 | int longest_ancestor_length(const char *path, const char *prefix_list); | ||
103 | char *strip_path_suffix(const char *path, const char *suffix); | ||
104 | |||
105 | extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2))); | ||
106 | extern char *perf_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); | ||
107 | |||
108 | extern char *mksnpath(char *buf, size_t n, const char *fmt, ...) | ||
109 | __attribute__((format (printf, 3, 4))); | ||
110 | extern char *perf_snpath(char *buf, size_t n, const char *fmt, ...) | ||
111 | __attribute__((format (printf, 3, 4))); | ||
112 | extern char *perf_pathdup(const char *fmt, ...) | ||
113 | __attribute__((format (printf, 1, 2))); | ||
114 | |||
115 | extern size_t strlcpy(char *dest, const char *src, size_t size); | ||
116 | |||
97 | #endif /* CACHE_H */ | 117 | #endif /* CACHE_H */ |