aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r--tools/perf/util/util.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 30c5517f2f91..c673d8825883 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -290,17 +290,10 @@ static inline char *gitstrchrnul(const char *s, int c)
290 * Wrappers: 290 * Wrappers:
291 */ 291 */
292extern char *xstrdup(const char *str); 292extern char *xstrdup(const char *str);
293extern void *xmalloc(size_t size); 293extern void *xmalloc(size_t size) __attribute__((weak));
294extern void *xmemdupz(const void *data, size_t len); 294extern void *xmemdupz(const void *data, size_t len);
295extern char *xstrndup(const char *str, size_t len); 295extern char *xstrndup(const char *str, size_t len);
296extern void *xrealloc(void *ptr, size_t size); 296extern void *xrealloc(void *ptr, size_t size) __attribute__((weak));
297extern void *xcalloc(size_t nmemb, size_t size);
298extern void *xmmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
299extern ssize_t xread(int fd, void *buf, size_t len);
300extern ssize_t xwrite(int fd, const void *buf, size_t len);
301extern int xdup(int fd);
302extern FILE *xfdopen(int fd, const char *mode);
303extern int xmkstemp(char *template);
304 297
305static inline void *zalloc(size_t size) 298static inline void *zalloc(size_t size)
306{ 299{