sbuf.h (102227) | sbuf.h (104449) |
---|---|
1/*- 2 * Copyright (c) 2000 Poul-Henning Kamp and Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2000 Poul-Henning Kamp and Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/sys/sbuf.h 102227 2002-08-21 16:20:02Z mike $ | 28 * $FreeBSD: head/sys/sys/sbuf.h 104449 2002-10-04 09:58:17Z phk $ |
29 */ 30 31#ifndef _SYS_SBUF_H_ 32#define _SYS_SBUF_H_ 33 34#include <sys/_types.h> 35 36/* --- 28 unchanged lines hidden (view full) --- 65int sbuf_printf(struct sbuf *, const char *, ...) __printflike(2, 3); 66int sbuf_vprintf(struct sbuf *, const char *, __va_list) __printflike(2, 0); 67int sbuf_putc(struct sbuf *, int); 68int sbuf_trim(struct sbuf *); 69int sbuf_overflowed(struct sbuf *); 70void sbuf_finish(struct sbuf *); 71char *sbuf_data(struct sbuf *); 72int sbuf_len(struct sbuf *); | 29 */ 30 31#ifndef _SYS_SBUF_H_ 32#define _SYS_SBUF_H_ 33 34#include <sys/_types.h> 35 36/* --- 28 unchanged lines hidden (view full) --- 65int sbuf_printf(struct sbuf *, const char *, ...) __printflike(2, 3); 66int sbuf_vprintf(struct sbuf *, const char *, __va_list) __printflike(2, 0); 67int sbuf_putc(struct sbuf *, int); 68int sbuf_trim(struct sbuf *); 69int sbuf_overflowed(struct sbuf *); 70void sbuf_finish(struct sbuf *); 71char *sbuf_data(struct sbuf *); 72int sbuf_len(struct sbuf *); |
73int sbuf_done(struct sbuf *); |
|
73void sbuf_delete(struct sbuf *); 74 75#ifdef _KERNEL 76struct uio; 77struct sbuf *sbuf_uionew(struct sbuf *, struct uio *, int *); 78int sbuf_bcopyin(struct sbuf *, const void *, size_t); 79int sbuf_copyin(struct sbuf *, const void *, size_t); 80#endif 81__END_DECLS 82 83#endif | 74void sbuf_delete(struct sbuf *); 75 76#ifdef _KERNEL 77struct uio; 78struct sbuf *sbuf_uionew(struct sbuf *, struct uio *, int *); 79int sbuf_bcopyin(struct sbuf *, const void *, size_t); 80int sbuf_copyin(struct sbuf *, const void *, size_t); 81#endif 82__END_DECLS 83 84#endif |