From owner-freebsd-doc Thu Sep 20 16:30: 8 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B701C37B416 for ; Thu, 20 Sep 2001 16:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8KNU1s47989; Thu, 20 Sep 2001 16:30:01 -0700 (PDT) (envelope-from gnats) Received: from h24-79-119-53.vc.shawcable.net (h24-79-126-98.vc.shawcable.net [24.79.126.98]) by hub.freebsd.org (Postfix) with ESMTP id 67E7937B414 for ; Thu, 20 Sep 2001 16:21:41 -0700 (PDT) Received: (from jh@localhost) by h24-79-119-53.vc.shawcable.net (8.11.6/8.11.4) id f8KNLew25207; Thu, 20 Sep 2001 16:21:40 -0700 (PDT) (envelope-from jhanna) Message-Id: <200109202321.f8KNLew25207@h24-79-119-53.vc.shawcable.net> Date: Thu, 20 Sep 2001 16:21:40 -0700 (PDT) From: Jonathan Hanna Reply-To: Jonathan Hanna To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/30697: mb_fixhdr correction for mbchain.9 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30697 >Category: docs >Synopsis: mb_fixhdr correction for mbchain.9 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 20 16:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jonathan Hanna >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD roller.pangolin-systems.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Sep 2 19:54:20 PDT 2001 jh@roller.pangolin-systems.com:/homes/obj/homes2/src/sys/ROLLER i386 >Description: >How-To-Repeat: >Fix: --- mbchain.9 2001/09/20 23:04:02 1.1 +++ mbchain.9 2001/09/20 23:12:43 @@ -135,7 +135,7 @@ .Fn mb_fixhdr recalculates the length of an mbuf chain and updates the .Va m_pkthdr.len -field of the first mbuf in the chain. +field of the first mbuf in the chain. It returns the calculated length. .Pp .Fn mb_reserve ensures that the object of the length specified by the @@ -191,8 +191,9 @@ .Sh RETURN VALUES All .Ft int -functions return zero if successful, -otherwise error code is returned. +functions except +.Fn mb_fixhdr +return zero if successful and an error code otherwise. .Pp .Em Note : after failure of any function, an mbuf chain is left in the broken state, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message