]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r307873,r314397,r314399,r314419,r314420,r314533,r316553:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 06:45:41 +0000 (06:45 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Jul 2017 06:45:41 +0000 (06:45 +0000)
commit7e0b192cf09f1a3ae7c07068e31a77adfd6a0ce6
tree3fa6fefb13e334e18fdacc4e7fd1c3a4df3fc5b7
parentbb926009674f2d9c80119ef9e4a8731b3b436214
MFC r307873,r314397,r314399,r314419,r314420,r314533,r316553:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@321108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libsbuf/Symbol.map
lib/libsbuf/Version.def
share/man/man9/sbuf.9
sys/kern/subr_prf.c
sys/sys/sbuf.h