Re: SysV Shared Memory Problems
Re: SysV Shared Memory Problems
- Subject: Re: SysV Shared Memory Problems
- From: Paul Russell <email@hidden>
- Date: Wed, 28 Apr 2004 17:44:43 -0700
On Apr 24, 2004, at 9:05 PM, Alec Ellsworth wrote:
Hi All,
I'm trying to port one of my apps from FreeBSD to OSX and am having
a problem during runtime. This app is a processor emulator for a
proprietary architecture and uses SysV shared memory for IPC. On
FreeBSD 4 and 5 (with SysV shared memory turned on) I don't have a
problem allocating large amounts of shared space, but under OSX I'm
getting a -1 returned if I try to allocate more than 1024 _bytes_!
Here's the code line that returns false:
id=shmget(key,kreq*1024, 0777 | IPC_CREAT);
Any time kreq>1, it fails. I've made sure I'm set up for larger
spaces via sysctl, but I must be missing something. My app only
allocates the block once and there is no other shm activity before
this point.
I have similar code which works - the only difference is that I don't
or any permissions into the shmflags param - I just pass IPC_CREAT on
its own - you might want to try that.
Paul
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.