Re: SysV Shared Memory Problems
Re: SysV Shared Memory Problems
- Subject: Re: SysV Shared Memory Problems
- From: Pete Yandell <email@hidden>
- Date: Sun, 25 Apr 2004 14:28:14 +1000
shmget sets errno on failure. What error are you getting back from it?
On 25/04/2004, at 1:53 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.
From sysctl -a:
kern.sysv.shmmax: 167772160
kern.sysv.shmmin: 1
kern.sysv.shmmni: 32
kern.sysv.shmseg: 8
kern.sysv.shmall: 65536
Thanks for any input. So far I absolutely love working in Xcode!
-Alec Ellsworth
Alec Ellsworth
Resilient Networks, LLC.
3701 W. Burnham Street
Suite A
Milwaukee, WI 53215
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.