summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-28 06:13:21 +0000
committerngie <ngie@FreeBSD.org>2017-03-28 06:13:21 +0000
commit93828a44b5ed52374d903b2cbfe916854c641175 (patch)
tree0cc68fd09527a3a731ff09cc434ddde134026f3f /lib/libutil
parent2a317bc917832a4b40c4b69aa496672156144bda (diff)
downloadFreeBSD-src-93828a44b5ed52374d903b2cbfe916854c641175.zip
FreeBSD-src-93828a44b5ed52374d903b2cbfe916854c641175.tar.gz
MFC r313436,r313437,r313438,r314587,r315687:
r313436: Clarify #includes for hexdump(3) vs sbuf_hexdump(9) hexdump(3) only requires libutil.h, whereas sbuf_hexdump(9) requires sys/types.h (for ssize_t) and sys/sbuf.h r313437: Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describes sbuf_hexdump(9)'s behavior r313438: Clean up trailing and leading whitespace for variables to make it consistent with the rest of the file and style.Makefile(9) a bit more r314587: Correct MLINKS for sbuf_hexdump(9) sbuf_hexdump(9) should be linked to sbuf(9), not hexdump(3). Another review will be posted to deduplicate the sbuf_hexdump reference in in hexdump(3) or at the very least make the information less duplicative. r315687: Document sbuf_hexdump(9) in just sbuf(9) - Remove duplicate references to sbuf_hexdump(9) from hexdump(3). sbuf_hexdump(9) already pointed back to hexdump(3) for implementation details. - Refer to sbuf_hexdump(9) instead of sbuf(9) for completeness
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/hexdump.318
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/libutil/hexdump.3 b/lib/libutil/hexdump.3
index 9fa96f8..76db989 100644
--- a/lib/libutil/hexdump.3
+++ b/lib/libutil/hexdump.3
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 8, 2014
+.Dd March 21, 2017
.Dt HEXDUMP 3
.Os
.Sh NAME
@@ -36,17 +36,8 @@
.Nd "dump a block of bytes to standard out in hexadecimal form"
.Sh SYNOPSIS
.In libutil.h
-.In sys/sbuf.h
.Ft void
.Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags"
-.Ft void
-.Fo sbuf_hexdump
-.Fa "struct sbuf *sb"
-.Fa "void *ptr"
-.Fa "int length"
-.Fa "const char *hdr"
-.Fa "int flags"
-.Fc
.Sh DESCRIPTION
The
.Fn hexdump
@@ -59,11 +50,6 @@ output will start with an offset count, followed by 16 hexadecimal values,
followed by 16
.Tn ASCII
characters.
-.Pp
-The
-.Fn sbuf_hexdump
-function prints the hexdump to the supplied
-.Xr sbuf 9 .
.Bl -tag -width indent
.It Fa ptr
Pointer to the array of bytes to print.
@@ -103,7 +89,7 @@ Do not print the character values on each line.
.El
.Sh SEE ALSO
.Xr ascii 7 ,
-.Xr sbuf 9
+.Xr sbuf_hexdump 9
.Sh AUTHORS
This manual page was written by
.An Scott Long .
OpenPOWER on IntegriCloud