prakash bedge wrote:
>
> Hi,
>
> I am new to Solaris OS.
>
> Can I get the answer of my questions.
>
> 1. What special care should be taken while porting from linux to
> solaris-x86?
>
If you're using POSIX compliant APIs in your application, it should be
straight-forward. More than that one would have to know what kind of
application you are porting. (Porting kernel code is entirely
different, though.)
> 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.
> 3. Is there any tool which converts the source code on linux to
> solaris compatible code?
>
Not that I'm aware of. Again, if you take care to use POSIX compliant
APIs, then there might not need to be any change at all.
-- Garrett
>
>
>
> Regards,
>
> Prakash
>
>
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions.
> _____________________________________________________________________
>
> This e-mail message may contain proprietary, confidential or legally
> privileged information for the sole use of the person or entity to
> whom this message was originally addressed. Any review, e-transmission
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error
> kindly delete this e-mail from your records. If it appears that this
> mail has been forwarded to you without proper authority, please notify
> us immediately at [EMAIL PROTECTED] and delete this mail.
> _____________________________________________________________________
> ------------------------------------------------------------------------
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code