Endianness of freeBSD
Wouter Oosterveld
wouter at fizzyflux.nl
Mon Feb 4 12:09:09 UTC 2008
Endianness depends on the hardware.
In internal kernel structures endianness does not matter, if
communicating with other machines protocols (usually) define a
bitorder.
The c-library and/or systemlibrary contains utility functions for conversion.
Regards,
Wouter Oosterveld
2008/2/4, navneet Upadhyay <navneet.upadhyay at gmail.com>:
> 1. Is FreeBSD little Endian like windows?
>
> 2. Linux is Big endian?
>
> wrote a code int i = 1; if((i >> 1) == 0) little else big
> got little on all platforms bsd,linux,windows.
>
> *Does endianness depends on OS or the hardware?*
> **
> **
> *Thanks,*
> *navneet*
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
--
[
wouter at berenboot.xs4all.nl is binnenkort niet meer,
wouter at fizzyflux.nl is mijn nieuwe email-adres.
]
More information about the freebsd-questions
mailing list