Lines Matching defs:s

65 #define	SBUF_ISDYNAMIC(s)	((s)->s_flags & SBUF_DYNAMIC)  argument
66 #define SBUF_ISDYNSTRUCT(s) ((s)->s_flags & SBUF_DYNSTRUCT) argument
67 #define SBUF_ISFINISHED(s) ((s)->s_flags & SBUF_FINISHED) argument
68 #define SBUF_HASROOM(s) ((s)->s_len < (s)->s_size - 1) argument
69 #define SBUF_FREESPACE(s) ((s)->s_size - ((s)->s_len + 1)) argument
70 #define SBUF_CANEXTEND(s) ((s)->s_flags & SBUF_AUTOEXTEND) argument
71 #define SBUF_ISSECTION(s) ((s)->s_flags & SBUF_INSECTION) argument
76 #define SBUF_SETFLAG(s, f) do { (s)->s_flags |= (f); } while (0) argument
77 #define SBUF_CLEARFLAG(s, f) do { (s)->s_flags &= ~(f); } while (0) argument
95 _assert_sbuf_integrity(const char *fun, struct sbuf *s) in _assert_sbuf_integrity()
108 _assert_sbuf_state(const char *fun, struct sbuf *s, int state) in _assert_sbuf_state()
116 #define assert_sbuf_integrity(s) _assert_sbuf_integrity(__func__, (s)) argument
117 #define assert_sbuf_state(s, i) _assert_sbuf_state(__func__, (s), (i)) argument
121 #define assert_sbuf_integrity(s) do { } while (0) argument
122 #define assert_sbuf_state(s, i) do { } while (0) argument
151 sbuf_extend(struct sbuf *s, int addlen) in sbuf_extend()
178 sbuf_newbuf(struct sbuf *s, char *buf, int length, int flags) in sbuf_newbuf()
210 sbuf_new(struct sbuf *s, char *buf, int length, int flags) in sbuf_new()
238 sbuf_uionew(struct sbuf *s, struct uio *uio, int *error) in sbuf_uionew()
268 sbuf_clear(struct sbuf *s) in sbuf_clear()
285 sbuf_setpos(struct sbuf *s, ssize_t pos) in sbuf_setpos()
310 sbuf_set_drain(struct sbuf *s, sbuf_drain_func *func, void *ctx) in sbuf_set_drain()
325 sbuf_drain(struct sbuf *s) in sbuf_drain()
359 sbuf_put_byte(struct sbuf *s, int c) in sbuf_put_byte()
388 sbuf_bcat(struct sbuf *s, const void *buf, size_t len) in sbuf_bcat()
411 sbuf_bcopyin(struct sbuf *s, const void *uaddr, size_t len) in sbuf_bcopyin()
440 sbuf_bcpy(struct sbuf *s, const void *buf, size_t len) in sbuf_bcpy()
454 sbuf_cat(struct sbuf *s, const char *str) in sbuf_cat()
476 sbuf_copyin(struct sbuf *s, const void *uaddr, size_t len) in sbuf_copyin()
516 sbuf_cpy(struct sbuf *s, const char *str) in sbuf_cpy()
544 sbuf_vprintf(struct sbuf *s, const char *fmt, __va_list ap) in sbuf_vprintf()
560 sbuf_vprintf(struct sbuf *s, const char *fmt, __va_list ap) in sbuf_vprintf()
631 sbuf_printf(struct sbuf *s, const char *fmt, ...) in sbuf_printf()
646 sbuf_putc(struct sbuf *s, int c) in sbuf_putc()
659 sbuf_trim(struct sbuf *s) in sbuf_trim()
683 sbuf_error(const struct sbuf *s) in sbuf_error()
693 sbuf_finish(struct sbuf *s) in sbuf_finish()
720 sbuf_data(struct sbuf *s) in sbuf_data()
735 sbuf_len(struct sbuf *s) in sbuf_len()
752 sbuf_delete(struct sbuf *s) in sbuf_delete()
771 sbuf_done(const struct sbuf *s) in sbuf_done()
781 sbuf_start_section(struct sbuf *s, ssize_t *old_lenp) in sbuf_start_section()
806 sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c) in sbuf_end_section()