Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2013 18:49:02 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Bruce Evans <brde@optusnet.com.au>
Subject:   Re: svn commit: r249355 - head/lib/libkvm
Message-ID:  <20130411184049.W1641@besplex.bde.org>
In-Reply-To: <20130411082457.GS76816@FreeBSD.org>
References:  <201304110730.r3B7Uo6d067302@svn.freebsd.org> <20130411175308.Q1435@besplex.bde.org> <20130411082457.GS76816@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Apr 2013, Gleb Smirnoff wrote:

> On Thu, Apr 11, 2013 at 05:59:24PM +1000, Bruce Evans wrote:
> B> > Modified:
> B> >  head/lib/libkvm/kvm.h
> B> >
> B> > Modified: head/lib/libkvm/kvm.h
> B> > ==============================================================================
> B> > --- head/lib/libkvm/kvm.h	Thu Apr 11 07:02:27 2013	(r249354)
> B> > +++ head/lib/libkvm/kvm.h	Thu Apr 11 07:30:49 2013	(r249355)
> B> > @@ -34,7 +34,7 @@
> B> > #define	_KVM_H_
> B> >
> B> > #include <sys/cdefs.h>
> B> > -#include <sys/_types.h>
> B>
> B> The __uintXX_t types are declared here, and should be used, like the
> B> __Xsize_t types already are.
>
> Why non-standard types should be used instead of standard ones?

Sometimes because the namespace doesn't allow the standard ones, but
here I was just saying to typedef just the standard ones that you need
(only uint64_t?) as is done for size_t and ssize_t.  Including
<sys/types.h> also turns the careful ifdefs for the latter into
no-ops.

Bruce



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