Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-24-2005, 11:58 AM   #1
Registered: May 2004
Location: Italy
Posts: 70

Rep: Reputation: 16
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 :-)
Old 06-27-2005, 04:05 PM   #2
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,295

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
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/

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

hope this helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is going on with IPC in linux? Hano Linux - General 8 12-06-2005 12:01 AM
Unified vs. Context diffs -- ? jonaskoelker Programming 0 07-11-2005 11:02 AM
unsaved diffs in VIM? bram2000 Linux - Software 0 06-17-2005 08:57 AM
what diffs are included in the kernel Kilka Linux - Hardware 2 12-04-2003 03:52 PM
diffs in openssl - r/h to mandrake breany Linux - Software 0 06-26-2002 03:58 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration