Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2009 21:10:01 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        sam@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, luigi@FreeBSD.org, src-committers@FreeBSD.org, julian@elischer.org, svn-src-all@FreeBSD.org
Subject:   Re: svn commit: r188578 - head/sys/netinet
Message-ID:  <20090214.211001.-1962670480.imp@bsdimp.com>
In-Reply-To: <499781DF.20304@freebsd.org>
References:  <200902131514.n1DFEhft091837@svn.freebsd.org> <4997531E.3000900@elischer.org> <499781DF.20304@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <499781DF.20304@freebsd.org>
            Sam Leffler <sam@FreeBSD.org> writes:
: Julian Elischer wrote:
: > Luigi Rizzo wrote:
: >> Author: luigi
: >> Date: Fri Feb 13 15:14:43 2009
: >> New Revision: 188578
: >> URL: http://svn.freebsd.org/changeset/base/188578
: >>
: >> Log:
: >>   Use uint32_t instead of n_long and n_time, and uint16_t instead of 
: >> n_short.
: >>   Add a note next to fields in network format.
: >>     The n_* types are not enough for compiler checks on endianness, 
: >> and their
: >>   use often requires an otherwise unnecessary #include 
: >> <netinet/in_systm.h>
: >>     The typedef in in_systm.h are still there.
: >
: > There is a project out there (intel was involved frommemory) to make a 
: > compiler that knows the endianness of stuff. I know it exists because
: > it was reported that one well known piece of big endian embedded 
: > software was compiled successfully to actually run on little endian
: > machines. You can of course see why intel was interested..
: 
: linux has endian annotations for sparse.  I've thought it would be 
: worthwhile to mod freebsd but it's ugly and w/o (native) tools to use 
: seemed pointless.

I've been playing with sparse seeing if it would be useful to FreeBSD,
and how intrusive the annotations would need to be to make it useful.
It is still early days, though...

Warner



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