Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
strbuf.h File Reference
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  strbuf
 

Macros

#define STRBUF_INIT   { 0, 0, strbuf_slopbuf }
 

Functions

void strbuf_init (struct strbuf *buf, ssize_t hint)
 
void strbuf_release (struct strbuf *)
 
charstrbuf_detach (struct strbuf *, size_t *)
 
void strbuf_grow (struct strbuf *, size_t)
 
void strbuf_remove (struct strbuf *, size_t pos, size_t len)
 
void strbuf_add (struct strbuf *, const void *, size_t)
 
 __attribute__ ((format(printf, 2, 3))) extern void strbuf_addf(struct strbuf *sb
 
const char ssize_t strbuf_read (struct strbuf *, int fd, ssize_t hint)
 

Variables

char strbuf_slopbuf []
 
const charfmt
 

Macro Definition Documentation

#define STRBUF_INIT   { 0, 0, strbuf_slopbuf }

Definition at line 50 of file strbuf.h.

Function Documentation

__attribute__ ( (format(printf, 2, 3))  )
void strbuf_add ( struct strbuf ,
const void ,
size_t   
)

Definition at line 78 of file strbuf.c.

char* strbuf_detach ( struct strbuf ,
size_t  
)

Definition at line 36 of file strbuf.c.

void strbuf_grow ( struct strbuf ,
size_t   
)

Definition at line 45 of file strbuf.c.

void strbuf_init ( struct strbuf buf,
ssize_t  hint 
)

Definition at line 20 of file strbuf.c.

const char ssize_t strbuf_read ( struct strbuf ,
int  fd,
ssize_t  hint 
)

Definition at line 109 of file strbuf.c.

void strbuf_release ( struct strbuf )

Definition at line 28 of file strbuf.c.

void strbuf_remove ( struct strbuf ,
size_t  pos,
size_t  len 
)

Definition at line 73 of file strbuf.c.

Variable Documentation

const char* fmt

Definition at line 87 of file strbuf.h.

char strbuf_slopbuf[]

Definition at line 18 of file strbuf.c.