svn commit: r188578 - head/sys/netinet

M. Warner Losh imp at bsdimp.com
Sat Feb 14 20:12:28 PST 2009


In message: <499781DF.20304 at freebsd.org>
            Sam Leffler <sam at 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


More information about the svn-src-all mailing list