Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
strbuf.c File Reference
#include "cache.h"
#include <linux/kernel.h>

Go to the source code of this file.

Functions

int prefixcmp (const char *str, const char *prefix)
 
void strbuf_init (struct strbuf *sb, ssize_t hint)
 
void strbuf_release (struct strbuf *sb)
 
charstrbuf_detach (struct strbuf *sb, size_t *sz)
 
void strbuf_grow (struct strbuf *sb, size_t extra)
 
void strbuf_remove (struct strbuf *sb, size_t pos, size_t len)
 
void strbuf_add (struct strbuf *sb, const void *data, size_t len)
 
void strbuf_addf (struct strbuf *sb, const char *fmt,...)
 
ssize_t strbuf_read (struct strbuf *sb, int fd, ssize_t hint)
 

Variables

char strbuf_slopbuf [1]
 

Function Documentation

int prefixcmp ( const char str,
const char prefix 
)

Definition at line 4 of file strbuf.c.

void strbuf_add ( struct strbuf sb,
const void data,
size_t  len 
)

Definition at line 78 of file strbuf.c.

void strbuf_addf ( struct strbuf sb,
const char fmt,
  ... 
)

Definition at line 85 of file strbuf.c.

char* strbuf_detach ( struct strbuf sb,
size_t sz 
)

Definition at line 36 of file strbuf.c.

void strbuf_grow ( struct strbuf sb,
size_t  extra 
)

Definition at line 45 of file strbuf.c.

void strbuf_init ( struct strbuf sb,
ssize_t  hint 
)

Definition at line 20 of file strbuf.c.

ssize_t strbuf_read ( struct strbuf sb,
int  fd,
ssize_t  hint 
)

Definition at line 109 of file strbuf.c.

void strbuf_release ( struct strbuf sb)

Definition at line 28 of file strbuf.c.

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

Definition at line 73 of file strbuf.c.

Variable Documentation

char strbuf_slopbuf[1]

Definition at line 18 of file strbuf.c.