Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > SysV IPC supported in OS X?

SysV IPC supported in OS X?
Thread Tools
qyn
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status: Offline
Reply With Quote
Feb 25, 2003, 02:41 PM
 
Actually, despite Apple's claims to the contrary, I'm pretty sure SysV IPC is not supported in OS X. (Using msgget() returns "function not supported".)

I keep seeing references that I need to use these "Mach IPC" functions instead, but I can't seem to find any real documentation. Has anyone used these functions? Any good documentation anywhere?
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Feb 25, 2003, 04:56 PM
 
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
qyn  (op)
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status: Offline
Reply With Quote
Feb 25, 2003, 05:03 PM
 
Originally posted by smeger:
Docs for the Mach stuff are at http://developer.apple.com/techpubs/...ach/index.html
Thanks for the link, but I saw those before.

What I'd like to see is some sort of usage summary, sample code, or some such thing. All I've been able to find is a high level overview, like the one above.

Not that I'm in love with Mach IPC, I just need a replacement for the SysV stuff...
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Feb 25, 2003, 05:57 PM
 
Originally posted by qyn:
Thanks for the link, but I saw those before.

What I'd like to see is some sort of usage summary, sample code, or some such thing. All I've been able to find is a high level overview, like the one above.

Not that I'm in love with Mach IPC, I just need a replacement for the SysV stuff...
I don't know of what you're looking for, but I do know that Apple recommends against using raw Mach threads in quite a few places on their developer site. Have you considered using posix threads instead?

Here are a couple of links to pthread stuff, just because I happen to be using 'em right now for the 1st time myself:
  • http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html
  • http://www.math.arizona.edu/swig/pthreads/threads.html
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
qyn  (op)
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status: Offline
Reply With Quote
Feb 25, 2003, 08:50 PM
 
Originally posted by smeger:
I don't know of what you're looking for, but I do know that Apple recommends against using raw Mach threads in quite a few places on their developer site. Have you considered using posix threads instead?

Here are a couple of links to pthread stuff, just because I happen to be using 'em right now for the 1st time myself:
  • http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html
  • http://www.math.arizona.edu/swig/pthreads/threads.html
Oh, sorry, maybe I wasn't clear. I'm not interested in how to do threading, but how to do communication between different threads or processes. SysV IPC allowed different processes to asynchronously message each other, which is what I'm trying to do.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 26, 2003, 11:53 AM
 
SysV IPC definitely wasn't supported on 10.1, although I have a vague recollection of claims it exists on 10.2.

Mach messaging might well be the way to go. However, you might find the higher-level CoreFoundation functions are easier, such as CFMessagePort.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Mar 1, 2003, 01:15 AM
 
Hey, there's always pipes...
[vash:~] banana% killall killall
Terminated
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2