2 #ifndef __PERF_STRBUF_H 3 #define __PERF_STRBUF_H 46 #include <linux/compiler.h> 47 #include <sys/types.h> 56 #define STRBUF_INIT { 0, 0, strbuf_slopbuf } 76 assert(len < sb->
alloc);
int ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint)
int strbuf_add(struct strbuf *buf, const void *, size_t)
int strbuf_addf(struct strbuf *sb, const char *fmt,...) __printf(2
static ssize_t strbuf_avail(const struct strbuf *sb)
static int strbuf_addstr(struct strbuf *sb, const char *s)
static int __printf(2, 3)
static int strbuf_setlen(struct strbuf *sb, size_t len)
int strbuf_init(struct strbuf *buf, ssize_t hint)
int strbuf_addch(struct strbuf *sb, int c)
int strbuf_grow(struct strbuf *buf, size_t)
char * strbuf_detach(struct strbuf *buf, size_t *)
void strbuf_release(struct strbuf *buf)