summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sbuf.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove an assertion I forgot to remove in the previous commit: sbuf_len()des2001-01-281-1/+2
| | | | | | may now be called with an unfinished sbuf. For consistency, copy the related comment from sbuf_delete() to sbuf_clear() and sbuf_len().
* Add sbuf_clear() and sbuf_overflowed().des2001-01-281-13/+49
| | | | | | | | | | Move the helper macros from sbuf.h to sbuf.c Use ints instead of size_ts. Relax the requirements for sbuf_finish(): it is now possible to finish an overflowed buffer. Make sbuf_len() return -1 instead of 0 if the sbuf overflowed. Requested by: gibbs
* String buffer APIdes2000-12-131-0/+271
OpenPOWER on IntegriCloud