Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 06:13:21 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r316075 - in stable/11: lib/libutil share/man/man9
Message-ID:  <201703280613.v2S6DLUW011031@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Mar 28 06:13:21 2017
New Revision: 316075
URL: https://svnweb.freebsd.org/changeset/base/316075

Log:
  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

Modified:
  stable/11/lib/libutil/hexdump.3
  stable/11/share/man/man9/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libutil/hexdump.3
==============================================================================
--- stable/11/lib/libutil/hexdump.3	Tue Mar 28 06:13:16 2017	(r316074)
+++ stable/11/lib/libutil/hexdump.3	Tue Mar 28 06:13:21 2017	(r316075)
@@ -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
 .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 eac
 .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 .

Modified: stable/11/share/man/man9/Makefile
==============================================================================
--- stable/11/share/man/man9/Makefile	Tue Mar 28 06:13:16 2017	(r316074)
+++ stable/11/share/man/man9/Makefile	Tue Mar 28 06:13:21 2017	(r316075)
@@ -1467,6 +1467,7 @@ MLINKS+=sbuf.9 sbuf_bcat.9 \
 	sbuf.9 sbuf_done.9 \
 	sbuf.9 sbuf_error.9 \
 	sbuf.9 sbuf_finish.9 \
+	sbuf.9 sbuf_hexdump.9 \
 	sbuf.9 sbuf_len.9 \
 	sbuf.9 sbuf_new.9 \
 	sbuf.9 sbuf_new_auto.9 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703280613.v2S6DLUW011031>