svn commit: r188578 - head/sys/netinet
Sam Leffler
sam at freebsd.org
Sat Feb 14 18:45:54 PST 2009
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.
Sam
More information about the svn-src-head
mailing list