From owner-svn-src-all@freebsd.org Tue Jun 30 19:06:15 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 344829909D2; Tue, 30 Jun 2015 19:06:15 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2266E19D7; Tue, 30 Jun 2015 19:06:15 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5UJ6Ft4066551; Tue, 30 Jun 2015 19:06:15 GMT (envelope-from jmg@FreeBSD.org) Received: (from jmg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5UJ6EDb066550; Tue, 30 Jun 2015 19:06:14 GMT (envelope-from jmg@FreeBSD.org) Message-Id: <201506301906.t5UJ6EDb066550@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jmg set sender to jmg@FreeBSD.org using -f From: John-Mark Gurney Date: Tue, 30 Jun 2015 19:06:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284967 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 19:06:15 -0000 Author: jmg Date: Tue Jun 30 19:06:14 2015 New Revision: 284967 URL: https://svnweb.freebsd.org/changeset/base/284967 Log: add units to the length and count so that it's clear what they are measured in... Gems like: "len is the length of the buffer." aren't useful in man pages. Modified: head/share/man/man9/hash.9 Modified: head/share/man/man9/hash.9 ============================================================================== --- head/share/man/man9/hash.9 Tue Jun 30 18:58:33 2015 (r284966) +++ head/share/man/man9/hash.9 Tue Jun 30 19:06:14 2015 (r284967) @@ -26,7 +26,7 @@ .\" $OpenBSD: hash.9,v 1.5 2003/04/17 05:08:39 jmc Exp $ .\" $FreeBSD$ .\" -.Dd October 18, 2014 +.Dd June 30, 2015 .Dt HASH 9 .Os .Sh NAME @@ -72,6 +72,13 @@ These functions can be used to hash .Dv NUL terminated strings, as well as blocks of memory. .Pp +A +.Fa len +argument is the length of the buffer in bytes. +A +.Fa count +argument is the length of the buffer in 32-bit words. +.Pp The .Fn hash32_buf function is used as a general buffer hashing function. @@ -79,7 +86,7 @@ The argument .Fa buf is used to pass in the location, and .Fa len -is the length of the buffer. +is the length of the buffer in bytes. The argument .Fa hash is used to extend an existing hash, or is passed the initial value