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

MFC after:	1 week
Reviewed by:	vangyzen (earlier diff)
Sponsored by:	Dell EMC Isilon
Differential Revision:	D9912
This commit is contained in:
Enji Cooper 2017-03-21 19:10:07 +00:00
parent 7d0a282a12
commit 279e2af5d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315687

View File

@ -28,7 +28,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd February 8, 2017 .Dd March 21, 2017
.Dt HEXDUMP 3 .Dt HEXDUMP 3
.Os .Os
.Sh NAME .Sh NAME
@ -38,16 +38,6 @@
.In libutil.h .In libutil.h
.Ft void .Ft void
.Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags" .Fn hexdump "void *ptr" "int length" "const char *hdr" "int flags"
.In sys/types.h
.In sys/sbuf.h
.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 .Sh DESCRIPTION
The The
.Fn hexdump .Fn hexdump
@ -60,11 +50,6 @@ output will start with an offset count, followed by 16 hexadecimal values,
followed by 16 followed by 16
.Tn ASCII .Tn ASCII
characters. characters.
.Pp
The
.Fn sbuf_hexdump
function prints the hexdump to the supplied
.Xr sbuf 9 .
.Bl -tag -width indent .Bl -tag -width indent
.It Fa ptr .It Fa ptr
Pointer to the array of bytes to print. Pointer to the array of bytes to print.
@ -104,7 +89,7 @@ Do not print the character values on each line.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr ascii 7 , .Xr ascii 7 ,
.Xr sbuf 9 .Xr sbuf_hexdump 9
.Sh AUTHORS .Sh AUTHORS
This manual page was written by This manual page was written by
.An Scott Long . .An Scott Long .