Date: Mon, 4 Feb 2008 13:09:07 +0100 From: "Wouter Oosterveld" <wouter@fizzyflux.nl> To: freebsd-questions@freebsd.org Subject: Re: Endianness of freeBSD Message-ID: <b4950de90802040409v52d18c48xdf57b8741e35834d@mail.gmail.com> In-Reply-To: <1563a4fd0802040403x2b71eaa1yd3d8f78e7742843b@mail.gmail.com> References: <1563a4fd0802040403x2b71eaa1yd3d8f78e7742843b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- [ wouter@berenboot.xs4all.nl is binnenkort niet meer, wouter@fizzyflux.nl is mijn nieuwe email-adres. ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b4950de90802040409v52d18c48xdf57b8741e35834d>