"Garrett D'Amore" <[EMAIL PROTECTED]> wrote:

> > 2. How to handle the Endian methods(LE/BE) in solaris?
> >
>
> In application space, htons and htonl are the common methods.  Generally 
> you only care about endianness when dealing with data being exchanged, 
> and normally you just need network byte order which is handled by htonl 
> and htons.  If you have other needs, you may need to implement it 
> yourself.  There are macros, _BIG_ENDIAN and _LITTLE_ENDIAN which will 
> report the native byte order for the machine.

But these macros are not POSIX.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to