HomeSort by: relevance | last modified time | path
    Searched refs:VBUF (Results 1 - 8 of 8) sorted by relevancy

  /src/external/ibm-public/postfix/dist/src/util/
vbuf_print.h 24 #include <vbuf.h>
29 extern VBUF *vbuf_print(VBUF *, const char *, va_list);
vbuf.h 1 /* $NetBSD: vbuf.h,v 1.2 2017/02/14 01:16:49 christos Exp $ */
8 /* vbuf 3h
12 /* #include <vbuf.h>
17 * The VBUF buffer is defined by 1) its structure, by 2) the VBUF_GET() and
23 * The VBUF buffer does not specify primitives for memory allocation or
34 typedef struct VBUF VBUF;
35 typedef int (*VBUF_GET_READY_FN) (VBUF *);
36 typedef int (*VBUF_PUT_READY_FN) (VBUF *);
37 typedef int (*VBUF_SPACE_FN) (VBUF *, ssize_t)
    [all...]
vbuf.c 1 /* $NetBSD: vbuf.c,v 1.4 2025/02/25 19:15:52 christos Exp $ */
5 /* vbuf 3
9 /* #include <vbuf.h>
12 /* VBUF *bp;
15 /* VBUF *bp;
19 /* VBUF *bp;
23 /* VBUF *bp;
27 /* VBUF *bp;
32 /* VBUF *bp;
37 /* VBUF *bp
    [all...]
vstring.c 312 static void vstring_extend(VBUF *bp, ssize_t incr)
318 * Note: vp->vbuf.len is the current buffer size (both on entry and on
342 /* vstring_buf_get_ready - vbuf callback for read buffer empty condition */
344 static int vstring_buf_get_ready(VBUF *unused_buf)
349 /* vstring_buf_put_ready - vbuf callback for write buffer full condition */
351 static int vstring_buf_put_ready(VBUF *bp)
357 /* vstring_buf_space - vbuf callback to reserve space */
359 static int vstring_buf_space(VBUF *bp, ssize_t len)
383 vp->vbuf.flags = 0;
384 vp->vbuf.len = 0
    [all...]
vstream.c 560 static int vstream_buf_get_ready(VBUF *);
561 static int vstream_buf_put_ready(VBUF *);
562 static int vstream_buf_space(VBUF *, ssize_t);
690 static void vstream_buf_init(VBUF *bp, int flags)
706 static void vstream_buf_alloc(VBUF *bp, ssize_t len)
739 static void vstream_buf_wipe(VBUF *bp)
752 VBUF *bp = &stream->buf;
901 /* vstream_buf_get_ready - vbuf callback to make buffer ready for reading */
903 static int vstream_buf_get_ready(VBUF *bp)
1035 /* vstream_buf_put_ready - vbuf callback to make buffer ready for writing *
    [all...]
vstream.h 29 #include <vbuf.h>
46 VBUF buf; /* generic intelligent buffer */
56 VBUF read_buf; /* read buffer (double-buffered) */
57 VBUF write_buf; /* write buffer (double-buffered) */
vstring.h 24 #include <vbuf.h>
32 VBUF vbuf; member in struct:VSTRING
72 #define VSTRING_SPACE(vp, len) ((vp)->vbuf.space(&(vp)->vbuf, (len)))
73 #define vstring_str(vp) ((char *) (vp)->vbuf.data)
74 #define VSTRING_LEN(vp) ((ssize_t) ((vp)->vbuf.ptr - (vp)->vbuf.data))
75 #define vstring_end(vp) ((char *) (vp)->vbuf.ptr)
77 *(vp)->vbuf.ptr = 0;
    [all...]
vbuf_print.c 12 /* VBUF *vbuf_print(bp, format, ap)
13 /* VBUF *bp;
74 #include "vbuf.h"
148 VBUF_SNPRINTF(&(vp)->vbuf, 0, INT_SPACE, "%d", n); \
160 VBUF *vbuf_print(VBUF *bp, const char *format, va_list ap)

Completed in 26 milliseconds