diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-20 15:22:22 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-20 17:36:48 +0200 |
commit | 6f06ccbc86f8a02aa32271263249657ce484eb25 (patch) | |
tree | c04eb04fcd1b7da2ec1a0072089cd95317a2cf54 /Documentation/perf_counter/cache.h | |
parent | 0780060124011b94af55830939c86cc0916be0f5 (diff) | |
download | lwn-6f06ccbc86f8a02aa32271263249657ce484eb25.tar.gz lwn-6f06ccbc86f8a02aa32271263249657ce484eb25.zip |
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) { return path[0] == '/'; } + +const char *make_absolute_path(const char *path); +const char *make_nonrelative_path(const char *path); +const char *make_relative_path(const char *abs, const char *base); +int normalize_path_copy(char *dst, const char *src); +int longest_ancestor_length(const char *path, const char *prefix_list); +char *strip_path_suffix(const char *path, const char *suffix); + +extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2))); +extern char *perf_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); + +extern char *mksnpath(char *buf, size_t n, const char *fmt, ...) + __attribute__((format (printf, 3, 4))); +extern char *perf_snpath(char *buf, size_t n, const char *fmt, ...) + __attribute__((format (printf, 3, 4))); +extern char *perf_pathdup(const char *fmt, ...) + __attribute__((format (printf, 1, 2))); + +extern size_t strlcpy(char *dest, const char *src, size_t size); + #endif /* CACHE_H */ |