Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 18:00:05 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r218647 - stable/7/share/man/man9
Message-ID:  <201102131800.p1DI05bI046386@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brucec
Date: Sun Feb 13 18:00:05 2011
New Revision: 218647
URL: http://svn.freebsd.org/changeset/base/218647

Log:
  MFC r216156:
  
  Document the fact that passing in a count of zero to the bus_space functions
  will result in undefined behaviour.
  Taken from NetBSD's bus_space(9).
  
  PR:	kern/80980

Modified:
  stable/7/share/man/man9/bus_space.9
Directory Properties:
  stable/7/share/man/man9/   (props changed)

Modified: stable/7/share/man/man9/bus_space.9
==============================================================================
--- stable/7/share/man/man9/bus_space.9	Sun Feb 13 17:56:22 2011	(r218646)
+++ stable/7/share/man/man9/bus_space.9	Sun Feb 13 18:00:05 2011	(r218647)
@@ -719,6 +719,9 @@ or which return data read from bus space
 do not obviously return an error code) do not fail.
 They could only fail
 if given invalid arguments, and in that case their behaviour is undefined.
+Functions which take a count of bytes have undefined results if the specified
+.Fa count
+is zero.
 .Sh TYPES
 Several types are defined in
 .In machine/bus.h



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