LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Diffs between Linux and Solaris about IPC (https://www.linuxquestions.org/questions/programming-9/diffs-between-linux-and-solaris-about-ipc-336788/)

d1s4st3r 06-24-2005 10:58 AM

Diffs between Linux and Solaris about IPC
 
Hi everyone!
I'm writing a quite big application in C for an exam at the University.
I'm writing it under Linux right now, but I'll have to run it under Solaris 9.
I know there are some differences about the use of IPC on these two platforms (expecially about message queues), and I'm asking you if someone could gently explain me those diffs.
It would be great if I could use some preprocessor macros to let the code be portable and compile on both systems, but I don't know how to proceed about this.
Any help is greatly appreciated!

Many thanks!

Byte :-)

schneidz 06-27-2005 03:05 PM

not sure if this answers your question:

an easy way to find the prcessor and os would be to use uname (man uname). you can sed-awk this return and add it to your make-file/ cofig.sh

e.g.:
schneidz@lq> uname -a -M -p
AIX lq 2 5 00yyyyyy4C00 powerpc IBM,7040-671

hope this helps
~schneidz


All times are GMT -5. The time now is 02:35 PM.