Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 2003 22:37:27 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "Jacques A. Vidrine" <nectar@freebsd.org>
Cc:        cvs-src@freebsd.org
Subject:   Re: cvs commit: src/lib/libufs bread.3 cgread.3 getino.3 libufs.3 sbread.3 ufs_disk_close.3
Message-ID:  <20031009222521.W9649@gamplex.bde.org>
In-Reply-To: <20031009121355.GD94235@madman.celabo.org>
References:  <200310090945.h999jKns055269@repoman.freebsd.org> <20031009121355.GD94235@madman.celabo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Oct 2003, Jacques A. Vidrine wrote:

> On Thu, Oct 09, 2003 at 02:45:20AM -0700, Hiten Pandya wrote:
> > hmp         2003/10/09 02:45:20 PDT
> >
> >   FreeBSD src repository (doc committer)
> >
> >   Modified files:
> >     lib/libufs           bread.3 cgread.3 getino.3 libufs.3
> >                          sbread.3 ufs_disk_close.3
> >   Log:
> >   Remove unneccessary include of sys/types.h in the SYNOPSIS
> >   header.
> >
> >   Sys/param.h includes sys/types.h internally unless LOCORE is
> >   defined.

Including both is also a style bug.

> I think you removed the wrong header.  Is <sys/param.h> required in
> each of these cases?  If not, then I believe the synopsis should refer
> only to <sys/types.h>:

<sys/param.h> is a prerequisite for <sys/mount.h> and some of the other
headers.  <sys/mount.h> is a prerequisite for <ufs/ufs/ufsmount.h>,
but the mount headers are not needed for much if anything in these
interfaces.  <sys/param.h> is only needed to define MAXBSIZE otherwise.

getino.3 might be more useful if it were installed.

Bruce



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