|
Data Structures |
struct | obuf |
| Output specific buffer. More...
|
Defines |
#define | OBUF_CREATE O_CREAT |
#define | OBUF_EXCLUSIVE O_EXCL |
#define | OBUF_TRUNCATE O_TRUNC |
#define | OBUF_APPEND O_APPEND |
#define | obuf_error(out) iobuf_error(&(out)->io) |
#define | obuf_closed(out) iobuf_closed(&(out)->io) |
#define | obuf_timedout(out) iobuf_timedout(&((out)->io)) |
#define | obuf_rewind(out) obuf_seek(out,0) |
#define | obuf_tell(out) ((out)->io.offset+(out)->bufpos) |
#define | obuf_puts(out, str) obuf_write(out,str,strlen(str)) |
#define | obuf_putstr(out, str) obuf_write(out,(str)->s,(str)->len) |
Typedefs |
typedef int(* | obuf_fn )(int, const void *, unsigned long) |
typedef obuf | obuf |
Functions |
int | obuf_init (obuf *out, int fd, obuf_fn fn, unsigned flags, unsigned bufsize) |
int | obuf_open (obuf *out, const char *filename, int oflags, int mode, unsigned bufsize) |
int | obuf_close (obuf *out) |
int | obuf_flush (obuf *out) |
int | obuf_sync (obuf *out) |
int | obuf_write_large (obuf *out, const char *data, unsigned datalen) |
int | obuf_write (obuf *out, const char *data, unsigned datalen) |
int | obuf_seek (obuf *out, unsigned offset) |
int | obuf_pad (obuf *out, unsigned width, char ch) |
int | obuf_endl (obuf *out) |
int | obuf_putc (obuf *out, char ch) |
int | obuf_put2s (obuf *out, const char *s1, const char *s2) |
int | obuf_put3s (obuf *out, const char *s1, const char *s2, const char *s3) |
int | obuf_put4s (obuf *out, const char *s1, const char *s2, const char *s3, const char *s4) |
int | obuf_put5s (obuf *out, const char *s1, const char *s2, const char *s3, const char *s4, const char *s5) |
int | obuf_put6s (obuf *out, const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6) |
int | obuf_put7s (obuf *out, const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7) |
int | obuf_putns (obuf *out, unsigned int count,...) |
int | obuf_putf (obuf *out, const char *format,...) |
int | obuf_putfv (obuf *out, const char *format, va_list ap) |
int | obuf_putsflush (obuf *out, const char *s) |
int | obuf_puti (obuf *out, long data) |
int | obuf_putiw (obuf *out, long data, unsigned width, char pad) |
int | obuf_putu (obuf *out, unsigned long data) |
int | obuf_putuw (obuf *out, unsigned long data, unsigned width, char pad) |
int | obuf_putill (obuf *out, long long data) |
int | obuf_putiwll (obuf *out, long long data, unsigned width, char pad) |
int | obuf_putull (obuf *out, unsigned long long data) |
int | obuf_putuwll (obuf *out, unsigned long long data, unsigned width, char pad) |
int | obuf_putx (obuf *out, unsigned long data) |
int | obuf_putxw (obuf *out, unsigned long data, unsigned width, char pad) |
int | obuf_putX (obuf *out, unsigned long data) |
int | obuf_putXw (obuf *out, unsigned long data, unsigned width, char pad) |
int | obuf_putxll (obuf *out, unsigned long long data) |
int | obuf_putxwll (obuf *out, unsigned long long data, unsigned width, char pad) |
int | obuf_putXll (obuf *out, unsigned long long data) |
int | obuf_putXwll (obuf *out, unsigned long long data, unsigned width, char pad) |
int | obuf_putsnumw (obuf *out, long num, unsigned width, char pad, unsigned base, const char *digits) |
int | obuf_putunumw (obuf *out, unsigned long num, unsigned width, char pad, unsigned base, const char *digits) |
int | obuf_putsllnumw (obuf *out, long long num, unsigned width, char pad, unsigned base, const char *digits) |
int | obuf_putullnumw (obuf *out, unsigned long long num, unsigned width, char pad, unsigned base, const char *digits) |
int | obuf_putnetstring (obuf *out, const char *data, unsigned datalen) |
int | obuf_sign_pad (obuf *out, int sign, unsigned width, char pad) |
Variables |
obuf | outbuf |
obuf | errbuf |
const char | obuf_dec_digits [10] |
const char | obuf_hex_lcase_digits [16] |
const char | obuf_hex_ucase_digits [16] |