docs/75995: hcreate(3) documentation(?) bug

Ben Kaduk minimarmot at gmail.com
Wed Jul 2 04:35:21 UTC 2008


On Wed, Jul 2, 2008 at 12:10 AM, Ben Kaduk <minimarmot at gmail.com> wrote:
> The following reply was made to PR docs/75995; it has been noted by GNATS.
>
> From: "Ben Kaduk" <minimarmot at gmail.com>
> To: bug-followup at FreeBSD.org
> Cc:
> Subject: Re: docs/75995: hcreate(3) documentation(?) bug
> Date: Wed, 2 Jul 2008 00:03:45 -0400
>
>  It definitely looks like a documentation bug.
>
>  I've put a patch up at
>  http://stuff.mit.edu/afs/sipb.mit.edu/user/kaduk/freebsd/patches/htcreate.diff.2008.07.01
>  in case gmail mangles the whitespace.
>
>  Thanks to sbahra on #bsddocs for pointing out that we should mention that
>  errno gets set.
>
>  -Ben Kaduk
[...]
>  @@ -111,7 +112,7 @@
>  .Sh RETURN VALUES
>  The
>  .Fn hcreate
>  -function returns 0 if it cannot allocate sufficient space for the table;
>  +function returns 0 if the table creation failed;

That should be
if the table creation failed and sets errno;
the linked patch is updated.

-Ben Kaduk

>  otherwise, it returns non-zero.
>  .Pp
>  The



More information about the freebsd-doc mailing list