summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/buffer.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
committerpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
commit0c111e2b51cac7eead56494b30c5977e4ec9a8ea (patch)
treef60b0014663435c30f2efea2b10ca4f8ecc0208c /contrib/cvs/src/buffer.h
parentc3a8ee0e80a59793349940056dfd14746ebd4905 (diff)
downloadFreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.zip
FreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.tar.gz
Import cvs-1.9.26 onto vendor branch
Diffstat (limited to 'contrib/cvs/src/buffer.h')
-rw-r--r--contrib/cvs/src/buffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/cvs/src/buffer.h b/contrib/cvs/src/buffer.h
index c632490..0556781 100644
--- a/contrib/cvs/src/buffer.h
+++ b/contrib/cvs/src/buffer.h
@@ -96,6 +96,9 @@ struct buffer_data
/* The size we allocate for each buffer_data structure. */
#define BUFFER_DATA_SIZE (4096)
+/* The type of a function passed as a memory error handler. */
+typedef void (*BUFMEMERRPROC) PROTO ((struct buffer *));
+
extern struct buffer *buf_initialize PROTO((int (*) (void *, char *, int,
int, int *),
int (*) (void *, const char *,
@@ -105,6 +108,7 @@ extern struct buffer *buf_initialize PROTO((int (*) (void *, char *, int,
int (*) (void *),
void (*) (struct buffer *),
void *));
+extern void buf_free PROTO((struct buffer *));
extern struct buffer *buf_nonio_initialize PROTO((void (*) (struct buffer *)));
extern struct buffer *stdio_buffer_initialize
PROTO((FILE *, int, void (*) (struct buffer *)));
@@ -127,6 +131,7 @@ extern int buf_send_special_count PROTO((struct buffer *, int));
extern void buf_append_data PROTO((struct buffer *,
struct buffer_data *,
struct buffer_data *));
+extern void buf_append_buffer PROTO((struct buffer *, struct buffer *));
extern int buf_read_file PROTO((FILE *, long, struct buffer_data **,
struct buffer_data **));
extern int buf_read_file_to_eof PROTO((FILE *, struct buffer_data **,
@@ -137,6 +142,7 @@ extern int buf_read_data PROTO((struct buffer *, int, char **, int *));
extern void buf_copy_lines PROTO((struct buffer *, struct buffer *, int));
extern int buf_copy_counted PROTO((struct buffer *, struct buffer *, int *));
extern int buf_chain_length PROTO((struct buffer_data *));
+extern int buf_length PROTO((struct buffer *));
extern int buf_shutdown PROTO((struct buffer *));
#ifdef SERVER_FLOWCONTROL
OpenPOWER on IntegriCloud