From 5b6db4774836572cc89085ff509fb49b0431e0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 29 Sep 2001 00:32:46 +0000 Subject: Add a couple of API functions I need for my pseudofs WIP. Documentation will follow when I've decided whether to keep this API or ditch it in favor of something slightly more subtle. --- sys/sys/sbuf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/sys/sbuf.h') diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h index b671c0c5bd1d..995e7450da8c 100644 --- a/sys/sys/sbuf.h +++ b/sys/sys/sbuf.h @@ -60,6 +60,7 @@ int sbuf_cat(struct sbuf *s, const char *str); int sbuf_cpy(struct sbuf *s, const char *str); int sbuf_printf(struct sbuf *s, const char *fmt, ...) __printflike(2, 3); int sbuf_putc(struct sbuf *s, int c); +int sbuf_trim(struct sbuf *s); int sbuf_overflowed(struct sbuf *s); void sbuf_finish(struct sbuf *s); char *sbuf_data(struct sbuf *s); @@ -67,6 +68,8 @@ int sbuf_len(struct sbuf *s); void sbuf_delete(struct sbuf *s); #ifdef _KERNEL +struct uio; +struct sbuf *sbuf_uionew(struct sbuf *s, struct uio *uio, int *error); int sbuf_bcopyin(struct sbuf *s, const void *uaddr, size_t len); int sbuf_copyin(struct sbuf *s, const void *uaddr, size_t len); #endif -- cgit v1.2.3