diff options
author | ngie <ngie@FreeBSD.org> | 2017-07-18 06:45:13 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-07-18 06:45:13 +0000 |
commit | 2777df9f9f33a75b62becd189d65923d7e0dbe4f (patch) | |
tree | 5715dd4bc37026b08ae74a8fb2bad59e4fe9121a /lib | |
parent | f10d2e3319b597812c1139e1a7d97d9ede0dda38 (diff) | |
download | FreeBSD-src-2777df9f9f33a75b62becd189d65923d7e0dbe4f.zip FreeBSD-src-2777df9f9f33a75b62becd189d65923d7e0dbe4f.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libsbuf/Symbol.map | 8 | ||||
-rw-r--r-- | lib/libsbuf/Version.def | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/libsbuf/Symbol.map b/lib/libsbuf/Symbol.map index 164b8f3..7bbc4bf 100644 --- a/lib/libsbuf/Symbol.map +++ b/lib/libsbuf/Symbol.map @@ -21,6 +21,9 @@ FBSD_1.2 { sbuf_len; sbuf_done; sbuf_delete; + sbuf_clear_flags; + sbuf_get_flags; + sbuf_set_flags; }; FBSD_1.3 { @@ -31,3 +34,8 @@ FBSD_1.3 { FBSD_1.4 { sbuf_hexdump; }; + +FBSD_1.5 { + sbuf_putbuf; +}; + diff --git a/lib/libsbuf/Version.def b/lib/libsbuf/Version.def index fd5c6be..2894712 100644 --- a/lib/libsbuf/Version.def +++ b/lib/libsbuf/Version.def @@ -8,3 +8,6 @@ FBSD_1.3 { FBSD_1.4 { } FBSD_1.3; + +FBSD_1.5 { +} FBSD_1.4; |