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/util.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/util.h')
-rw-r--r-- | Documentation/perf_counter/util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/perf_counter/util.h b/Documentation/perf_counter/util.h index 13f8bdce7600..36e40c38e093 100644 --- a/Documentation/perf_counter/util.h +++ b/Documentation/perf_counter/util.h | |||
@@ -295,6 +295,20 @@ static inline char *gitstrchrnul(const char *s, int c) | |||
295 | } | 295 | } |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | /* | ||
299 | * Wrappers: | ||
300 | */ | ||
301 | extern char *xstrdup(const char *str); | ||
302 | extern void *xmalloc(size_t size); | ||
303 | extern void *xmemdupz(const void *data, size_t len); | ||
304 | extern char *xstrndup(const char *str, size_t len); | ||
305 | extern void *xrealloc(void *ptr, size_t size); | ||
306 | extern void *xcalloc(size_t nmemb, size_t size); | ||
307 | extern void *xmmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); | ||
308 | extern ssize_t xread(int fd, void *buf, size_t len); | ||
309 | extern ssize_t xwrite(int fd, const void *buf, size_t len); | ||
310 | extern int xdup(int fd); | ||
311 | extern FILE *xfdopen(int fd, const char *mode); | ||
298 | static inline size_t xsize_t(off_t len) | 312 | static inline size_t xsize_t(off_t len) |
299 | { | 313 | { |
300 | return (size_t)len; | 314 | return (size_t)len; |