Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2019 09:29:01 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Ian Lepore <ian@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r349233 - head/sys/sys
Message-ID:  <CAOtMX2jt1M6mQNC_JekLMRfxgo2OxeR3VkfuQZHDgx%2B_vzFNWQ@mail.gmail.com>
In-Reply-To: <54f3bc97cbb485cdcc44b81c82c149ac9e46d42f.camel@freebsd.org>
References:  <201906201435.x5KEZTqH021513@repo.freebsd.org> <54f3bc97cbb485cdcc44b81c82c149ac9e46d42f.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 20, 2019 at 9:14 AM Ian Lepore <ian@freebsd.org> wrote:
>
> On Thu, 2019-06-20 at 14:35 +0000, Alan Somers wrote:
> > Author: asomers
> > Date: Thu Jun 20 14:35:28 2019
> > New Revision: 349233
> > URL: https://svnweb.freebsd.org/changeset/base/349233
> >
> > Log:
> >   #include <sys/types.h> from sys/filio.h
> >
> >   This fixes world build after r349231
> >
> >   Reported by:        Jenkins
> >   MFC after:  2 weeks
> >   MFC-With:   349231
> >   Sponsored by:       The FreeBSD Foundation
> >
> > Modified:
> >   head/sys/sys/filio.h
> >
> > Modified: head/sys/sys/filio.h
> > =====================================================================
> > =========
> > --- head/sys/sys/filio.h      Thu Jun 20 14:34:45 2019        (r349232)
> > +++ head/sys/sys/filio.h      Thu Jun 20 14:35:28 2019        (r349233)
> > @@ -40,6 +40,7 @@
> >  #ifndef      _SYS_FILIO_H_
> >  #define      _SYS_FILIO_H_
> >
> > +#include <sys/types.h>
> >  #include <sys/ioccom.h>
> >
> >  /* Generic file-descriptor ioctl's. */
> >
>
> I wonder... is this one of those situations where it is better to use
> __int64_t in the struct, then #include <sys/_types.h>?  I think the net
> effect there would be less pollution with other types?  I've never seen
> written guidance about when to use the __names and _types.h, but I've
> always had the general impression that if you have to include a header
> from another system header, it's better to use the _header.h if it
> exists.
>
> -- Ian

Good question.  grep shows almost equal numbers of each (37 types.h
and 33 _types.h) in sys/sys.  Do you think I should change it?
-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2jt1M6mQNC_JekLMRfxgo2OxeR3VkfuQZHDgx%2B_vzFNWQ>