mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-30 12:25:10 +01:00
r307873 (by marcel):
Include <stdarg.h> instead of <machine/stdarg.h> when compiled as
part of libsbuf. The former is the standard header, and allows us
to compile libsbuf on macOS/linux.
r314397 (by scottl):
Implement sbuf_prf(), which takes an sbuf and outputs it
to stdout in the non-kernel case and to the console+log
in the kernel case. For the kernel case it hooks the
putbuf() machinery underneath printf(9) so that the buffer
is written completely atomically and without a copy into
another temporary buffer. This is useful for fixing
compound console/log messages that become broken and
interleaved when multiple threads are competing for the
console.
r314399 (by scottl):
Add prototype for sbuf_putbuf()
r314419 (by jkim):
Include stdio.h to fix libsbuf build.
r314420 (by scottl):
Provide a comment on why stdio.h needs to be included.
r314533 (by scottl):
Expose the sbuf_putbuf() symbol to libsbuf. There are a few other symbols
that are present but not exposed, like get/set/clear flags, not sure if they
need to be exposed at this point.
r316553:
sbuf(3): expose sbuf_{clear,get,set}_flags(3) via libsbuf
These functions were added to sbuf(9) in r279992, but never
exposed to userspace. Expose them now so they can be used/tested.
42 lines
433 B
Plaintext
42 lines
433 B
Plaintext
/*
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
FBSD_1.2 {
|
|
sbuf_new;
|
|
sbuf_clear;
|
|
sbuf_setpos;
|
|
sbuf_bcat;
|
|
sbuf_bcpy;
|
|
sbuf_cat;
|
|
sbuf_cpy;
|
|
sbuf_printf;
|
|
sbuf_vprintf;
|
|
sbuf_putc;
|
|
sbuf_set_drain;
|
|
sbuf_trim;
|
|
sbuf_error;
|
|
sbuf_finish;
|
|
sbuf_data;
|
|
sbuf_len;
|
|
sbuf_done;
|
|
sbuf_delete;
|
|
sbuf_clear_flags;
|
|
sbuf_get_flags;
|
|
sbuf_set_flags;
|
|
};
|
|
|
|
FBSD_1.3 {
|
|
sbuf_start_section;
|
|
sbuf_end_section;
|
|
};
|
|
|
|
FBSD_1.4 {
|
|
sbuf_hexdump;
|
|
};
|
|
|
|
FBSD_1.5 {
|
|
sbuf_putbuf;
|
|
};
|
|
|